Repository: jclouds-labs Updated Branches: refs/heads/master adb4087ab -> 58cb92b7c
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/58cb92b7 Tree: http://git-wip-us.apache.org/repos/asf/jclouds-labs/tree/58cb92b7 Diff: http://git-wip-us.apache.org/repos/asf/jclouds-labs/diff/58cb92b7 Branch: refs/heads/master Commit: 58cb92b7ce95a0cb09ae7a838304021c3e86b4fb Parents: adb4087 Author: Ignasi Barrera <[email protected]> Authored: Wed Oct 25 15:17:39 2017 +0200 Committer: Ignasi Barrera <[email protected]> Committed: Wed Oct 25 15:17:59 2017 +0200 ---------------------------------------------------------------------- azurecompute-arm/README.md | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/58cb92b7/azurecompute-arm/README.md ---------------------------------------------------------------------- diff --git a/azurecompute-arm/README.md b/azurecompute-arm/README.md index 50ebedb..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,13 @@ 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 -azure account show -s <Subscription-id> --json +az account show # output will be a JSON which will include the `Tenant id` ``` @@ -53,7 +50,7 @@ azure account show -s <Subscription-id> --json 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
