Repository: jclouds-labs
Updated Branches:
  refs/heads/2.0.x eec594dd1 -> 3589dbeda


Update Azure ARM credentials instructions


Project: http://git-wip-us.apache.org/repos/asf/jclouds-labs/repo
Commit: http://git-wip-us.apache.org/repos/asf/jclouds-labs/commit/3589dbed
Tree: http://git-wip-us.apache.org/repos/asf/jclouds-labs/tree/3589dbed
Diff: http://git-wip-us.apache.org/repos/asf/jclouds-labs/diff/3589dbed

Branch: refs/heads/2.0.x
Commit: 3589dbeda4d4934f27faccbc63ae2cdf4b36caf3
Parents: eec594d
Author: Ignasi Barrera <[email protected]>
Authored: Wed Oct 25 15:17:39 2017 +0200
Committer: Ignasi Barrera <[email protected]>
Committed: Wed Oct 25 15:19:12 2017 +0200

----------------------------------------------------------------------
 azurecompute-arm/README.md | 27 ++++++++++++++++-----------
 1 file changed, 16 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/3589dbed/azurecompute-arm/README.md
----------------------------------------------------------------------
diff --git a/azurecompute-arm/README.md b/azurecompute-arm/README.md
index a5a9956..ed8abd4 100644
--- a/azurecompute-arm/README.md
+++ b/azurecompute-arm/README.md
@@ -13,24 +13,21 @@ Install and configure Azure CLI following these 
[steps](http://azure.microsoft.c
 Using the Azure CLI, run the following commands to create a service principal
 
 ```bash
-# Set mode to ARM
-azure config mode arm
-
 # Enter your Microsoft account credentials when prompted
-azure login
+az login
 
 # Set current subscription to create a service principal
-azure account set <Subscription-id>
+az account set --subscription <Subscription-id>
 
-# Create an AAD application with your information.
-azure ad app create --name <name> --password <password> --home-page 
<home-page> --identifier-uris <identifier-uris>
+# Create an AD application with your information.
+az ad app create --display-name <name> --password <password> --homepage 
<home-page> --identifier-uris <identifier-uris>
 
-# For example: azure ad app create --name "jcloudsarm"  --password abcd 
--home-page "https://jcloudsarm"; --identifier-uris "https://jcloudsarm";
+# For example: az ad app create --display-name "jcloudsarm" --password abcd 
--homepage "https://jcloudsarm"; --identifier-uris "https://jcloudsarm";
 
 # Output will include a value for `Application Id`, which will be used for the 
live tests
 
 # Create a Service Principal
-azure ad sp create <Application-id>
+az ad sp create --id <Application-id>
 
 # Output will include a value for `Object Id`, to be used in the next step 
 ```
@@ -39,13 +36,21 @@ Run the following commands to assign roles to the service 
principal
 
 ```bash
 # Assign roles for this service principal
-azure role assignment create --objectId <Object-id> -o Contributor -c 
/subscriptions/<Subscription-id>/
+az role assignment create --role Contributor --assignee <ObjectId>
+```
+
+Look up the the tenant Id
+
+```bash
+az account show
+
+# output will be a JSON which will include the `Tenant id`
 ```
 
 Verify service principal
 
 ```bash
-azure login -u <Application-id> -p <password> --service-principal --tenant 
<Tenant-id>
+az login -u <Application-id> -p <password> --service-principal --tenant 
<Tenant-id>
 ```
 
 ## Run Live Tests

Reply via email to