You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/quickstart/provider/azure-acs/boot.md
+26-23Lines changed: 26 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
## Prerequisites
4
4
5
-
1. Azure Accout - If you do not already have a Azure Cloud account, you can start a trial with $200 of free credit [here](https://azure.microsoft.com/en-us/free/). After completing sign up, you must add your billing information.
5
+
1. Azure Account - If you do not already have a Azure Cloud account, you can start a trial with $200 of free credit [here](https://azure.microsoft.com/en-us/free/). After completing sign up, you must add your billing information.
6
6
2. Some form of *nix-based terminal - MacOS, Ubuntu, CentOS, Bash on Windows, etc
7
7
<br>Where the following is present:
8
8
3. Azure CLI - The Azure CLI (2.0) provides the `az` command and allows you to interact with Azure through the command line. Install the CLI by following the instructions on [GitHub for the Azure CLI](https://github.com/Azure/azure-cli).
@@ -13,7 +13,7 @@
13
13
14
14
After installing the CLI, log in to your Azure Account by typing `az login` and output would look similar to this:
15
15
```
16
-
~ $ az login
16
+
$ az login
17
17
To sign in, use a web browser to open the page https://aka.ms/devicelogin and enter the code F7DLMNOPE to authenticate.
18
18
[
19
19
{
@@ -34,22 +34,22 @@ To sign in, use a web browser to open the page https://aka.ms/devicelogin and en
34
34
Replace the value of SUBSCRIPTION_ID with the desired subscription id where you want to deploy from the previous step. We also set the active subscription to deploy to.
az account set --subscription="${SUBSCRIPTION_ID}"
37
+
$ az account set --subscription="${SUBSCRIPTION_ID}"
38
38
```
39
39
40
40
## Create an Azure Service Principle
41
41
42
42
Next, create an Azure Service Principle that will be used to provision the ACS Kubernetes Cluster. Service Principles are entities that have permission to create resources on your behalf. New Service Principles must be given a unique name, a role, and an Azure subscription that the Service Principle may modify.
43
43
44
44
```
45
-
SP_JSON=`az ad sp create-for-rbac -n="http://acsk8sdeis" --role="Contributor" --scopes="/subscriptions/${SUBSCRIPTION_ID}"`
46
-
SP_NAME=`echo $SP_JSON | jq -r '.name'`
47
-
SP_PASS=`echo $SP_JSON | jq -r '.password'`
48
-
SP_TENANT=`echo $SP_JSON | jq -r '.tenant'`
49
-
echo $SP_JSON
45
+
$ export SP_JSON=`az ad sp create-for-rbac -n="http://acsk8sdeis" --role="Contributor" --scopes="/subscriptions/${SUBSCRIPTION_ID}"`
This should display an output similar to this. jq has also automatically extracted these values for use in the creation of the cluster.
52
+
This should display an output similar to this. `jq` has also automatically extracted these values for use in the creation of the cluster.
53
53
```
54
54
{
55
55
"appId": "58b21231-3dd7-4546-bd37-9df88812331f",
@@ -61,21 +61,21 @@ This should display an output similar to this. jq has also automatically extrac
61
61
62
62
## Create Your ACS Kubernetes Cluster
63
63
64
-
You can build the Kubernetes cluster on ACS using primarily the Azure web Portal (UI) or entirely using the Azure command line (CLI). Choose one of the two paths:
64
+
You can build the Kubernetes cluster on ACS using primarily the Azure Web Portal (UI) or entirely using the Azure command line (CLI). Choose one of the two paths:
65
65
66
66
### Path 1: Azure 'az' CLI
67
67
68
68
1. Create an empty Azure resource group to deploy your cluster. The location of the resource group value can be changed to any datacenter. `az account list-locations` gives the name of all locations.
69
69
70
70
```
71
-
RG_NAME=myresourcegroup
72
-
az resource group create --name "${RG_NAME}" --location southcentralus
71
+
$ export RG_NAME=myresourcegroup
72
+
$ az resource group create --name "${RG_NAME}" --location southcentralus
73
73
```
74
74
75
75
2. Execute the command to deploy the cluster. The dns-prefix and ssh-key-value must be replaced with your own values.
76
76
77
77
```
78
-
az acs create --resource-group="${RG_NAME}" --location="southcentralus" \
78
+
$ az acs create --resource-group="${RG_NAME}" --location="southcentralus" \
0 commit comments