diff --git a/providers/azurecompute-arm/README.md b/providers/azurecompute-arm/README.md index 50ebedbe41..ed8abd49e1 100644 --- a/providers/azurecompute-arm/README.md +++ b/providers/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 +az account set --subscription -# Create an AAD application with your information. -azure ad app create --name --password --home-page --identifier-uris +# Create an AD application with your information. +az ad app create --display-name --password --homepage --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 +az ad sp create --id # Output will include a value for `Object Id`, to be used in the next step ``` @@ -39,13 +36,13 @@ Run the following commands to assign roles to the service principal ```bash # Assign roles for this service principal -azure role assignment create --objectId -o Contributor -c /subscriptions// +az role assignment create --role Contributor --assignee ``` Look up the the tenant Id ```bash -azure account show -s --json +az account show # output will be a JSON which will include the `Tenant id` ``` @@ -53,7 +50,7 @@ azure account show -s --json Verify service principal ```bash -azure login -u -p --service-principal --tenant +az login -u -p --service-principal --tenant ``` ## Run Live Tests