You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jclouds.apache.org by na...@apache.org on 2018/01/08 14:52:53 UTC
[32/50] [abbrv] jclouds git commit: Update Azure ARM credentials
instructions
Update Azure ARM credentials instructions
Project: http://git-wip-us.apache.org/repos/asf/jclouds/repo
Commit: http://git-wip-us.apache.org/repos/asf/jclouds/commit/e1e89b5f
Tree: http://git-wip-us.apache.org/repos/asf/jclouds/tree/e1e89b5f
Diff: http://git-wip-us.apache.org/repos/asf/jclouds/diff/e1e89b5f
Branch: refs/heads/master
Commit: e1e89b5ffb1053b3ee750309c6b1e16976184c69
Parents: 7d3b1be
Author: Ignasi Barrera <na...@apache.org>
Authored: Wed Oct 25 15:17:39 2017 +0200
Committer: Ignasi Barrera <na...@apache.org>
Committed: Wed Oct 25 15:17:59 2017 +0200
----------------------------------------------------------------------
providers/azurecompute-arm/README.md | 21 +++++++++------------
1 file changed, 9 insertions(+), 12 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/jclouds/blob/e1e89b5f/providers/azurecompute-arm/README.md
----------------------------------------------------------------------
diff --git a/providers/azurecompute-arm/README.md b/providers/azurecompute-arm/README.md
index 50ebedb..ed8abd4 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 <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