Skip to content

Commit 64431c9

Browse files
committed
new az commands, cleaner dc locations
1 parent b08687b commit 64431c9

1 file changed

Lines changed: 4 additions & 25 deletions

File tree

  • src/quickstart/provider/azure-acs

src/quickstart/provider/azure-acs/boot.md

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ Next, create an Azure Service Principal that will be used to provision the ACS K
5252
$ export SP_JSON=`az ad sp create-for-rbac -n="http://acsk8sdeis" --role="Contributor" --scopes="/subscriptions/${SUBSCRIPTION_ID}"`
5353
$ export SP_NAME=`echo $SP_JSON | jq -r '.name'`
5454
$ export SP_PASS=`echo $SP_JSON | jq -r '.password'`
55-
$ export SP_TENANT=`echo $SP_JSON | jq -r '.tenant'`
5655
$ echo $SP_JSON
5756
```
5857

@@ -72,33 +71,13 @@ Azure supports two methods to build an ACS Kubernetes cluster, through the Azure
7271

7372
### Path 1: Azure 'az' CLI
7473

75-
Create an empty Azure resource group to hold the ACS Kubernetes cluster. The location of the resource group can be set to any available Azure datacenter. To see the possible locations use `az account list-locations`. Remember to reference the location by the `name` attribute:
76-
77-
```
78-
{
79-
"displayName": "West Central US",
80-
"id": "/subscriptions/57ac26cf-a9f0-4908-b300-9a4e9a0fb205/locations/westcentralus",
81-
"latitude": "40.890",
82-
"longitude": "-110.234",
83-
"name": "westcentralus",
84-
"subscriptionId": null
85-
},
86-
{
87-
"displayName": "West US 2",
88-
"id": "/subscriptions/57ac26cf-a9f0-4908-b300-9a4e9a0fb205/locations/westus2",
89-
"latitude": "47.233",
90-
"longitude": "-119.852",
91-
"name": "westus2",
92-
"subscriptionId": null
93-
}
94-
]
95-
```
74+
Create an empty Azure resource group to hold the ACS Kubernetes cluster. The location of the resource group can be set to any available Azure datacenter. To see the possible locations run `az account list-locations --query [].name --output tsv`
9675

9776
Create an environment variable to hold the resource group name:
9877

9978
```
10079
$ export RG_NAME=myresourcegroup
101-
$ az resource group create --name "${RG_NAME}" --location southcentralus
80+
$ az group create --name "${RG_NAME}" --location southcentralus
10281
```
10382

10483
Execute the command to deploy the cluster. The `dns-prefix` and `ssh-key-value` must be replaced with your own values.
@@ -114,7 +93,7 @@ $ az acs create --resource-group="${RG_NAME}" --location="southcentralus" \
11493
--ssh-key-value @/home/myusername/.ssh/id_rsa.pub
11594
```
11695

117-
> Note: When `az acs create` starts the only output will be `waiting for AAD role to propagate..`. This verifies the service principal is propagated and has appropriate permissions. If this passes the output will change to `... propagate.done`, the provisioning process runs silently in the background, and after a few minutes the `az` command should return with information about the deployment created as shown below. If `... propagate.done` is not displayed after a few minutes, then there is a problem with the service principal credentials.
96+
> Note: When `az acs create` starts, the provisioning process runs entirely silent in the background. After a few minutes the `az` command should return with information about the deployment created as shown below.
11897
11998
```
12099
{
@@ -194,7 +173,7 @@ $ export K8S_FQDN=`az acs list -g $RG_NAME --query [0].masterProfile.fqdn --outp
194173
$ echo $K8S_FQDN
195174
```
196175

197-
Download the Kubeconfig from the master to the local machine, make sure to use the right SSH identity and master FQDN:
176+
Download the Kubeconfig from the master to the local machine, make sure to use the same SSH credentials used to create the cluster:
198177

199178
```
200179
$ scp -i ~/.ssh/id_rsa k8sadmin@$K8S_FQDN:.kube/config ~/.kube/k8sanddeis.config

0 commit comments

Comments
 (0)