From 6b3cf8c4b8e30f2b21a2479f26b057c4c06ce2ab Mon Sep 17 00:00:00 2001 From: Kenichi Omichi Date: Thu, 30 Apr 2020 00:00:26 -0700 Subject: [PATCH] Update azure with az command (#6042) As the download page[1], the command name is "az", not "azure". This replaces "azure" command with "az" command for fixing it. In addition, "az account list-locations" is correct command line to know available location as [2]. [1]: https://docs.microsoft.com/en-gb/azure/xplat-cli-install [2]: https://docs.microsoft.com/en-us/cli/azure/account?view=azure-cli-latest#az-account-list-locations --- docs/azure.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/azure.md b/docs/azure.md index c93e19543..de2e007d0 100644 --- a/docs/azure.md +++ b/docs/azure.md @@ -11,21 +11,21 @@ Not all features are supported yet though, for a list of the current status have Before creating the instances you must first set the `azure_` variables in the `group_vars/all/all.yml` file. All of the values can be retrieved using the azure cli tool which can be downloaded here: -After installation you have to run `azure login` to get access to your account. +After installation you have to run `az login` to get access to your account. ### azure\_tenant\_id + azure\_subscription\_id -run `azure account show` to retrieve your subscription id and tenant id: +run `az account show` to retrieve your subscription id and tenant id: `azure_tenant_id` -> Tenant ID field `azure_subscription_id` -> ID field ### azure\_location -The region your instances are located, can be something like `westeurope` or `westcentralus`. A full list of region names can be retrieved via `azure location list` +The region your instances are located, can be something like `westeurope` or `westcentralus`. A full list of region names can be retrieved via `az account list-locations` ### azure\_resource\_group -The name of the resource group your instances are in, can be retrieved via `azure group list` +The name of the resource group your instances are in, can be retrieved via `az group list` ### azure\_vmtype @@ -33,29 +33,29 @@ The type of the vm. Supported values are `standard` or `vmss`. If vm is type of ### azure\_vnet\_name -The name of the virtual network your instances are in, can be retrieved via `azure network vnet list` +The name of the virtual network your instances are in, can be retrieved via `az network vnet list` ### azure\_subnet\_name -The name of the subnet your instances are in, can be retrieved via `azure network vnet subnet list --resource-group RESOURCE_GROUP --vnet-name VNET_NAME` +The name of the subnet your instances are in, can be retrieved via `az network vnet subnet list --resource-group RESOURCE_GROUP --vnet-name VNET_NAME` ### azure\_security\_group\_name -The name of the network security group your instances are in, can be retrieved via `azure network nsg list` +The name of the network security group your instances are in, can be retrieved via `az network nsg list` ### azure\_aad\_client\_id + azure\_aad\_client\_secret These will have to be generated first: - Create an Azure AD Application with: -`azure ad app create --display-name kubernetes --identifier-uris http://kubernetes --homepage http://example.com --password CLIENT_SECRET` +`az ad app create --display-name kubernetes --identifier-uris http://kubernetes --homepage http://example.com --password CLIENT_SECRET` display name, identifier-uri, homepage and the password can be chosen Note the AppId in the output. - Create Service principal for the application with: -`azure ad sp create --id AppId` +`az ad sp create --id AppId` This is the AppId from the last command - Create the role assignment with: -`azure role assignment create --role "Owner" --assignee http://kubernetes --subscription SUBSCRIPTION_ID` +`az role assignment create --role "Owner" --assignee http://kubernetes --subscription SUBSCRIPTION_ID` azure\_aad\_client\_id must be set to the AppId, azure\_aad\_client\_secret is your chosen secret.