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
+49-8Lines changed: 49 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,17 @@
1
1
# Booting Azure Container Service
2
2
3
-
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.
3
+
## Prerequisites
4
4
5
-
## Install and configure the Azure CLI
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.
6
+
2. Some form of *nix-based terminal - MacOS, Ubuntu, CentOS, Bash on Windows, etc
7
+
<br>Where the following is present:
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).
9
+
4. SSH Key - This is used to deploy the cluster.
10
+
5. jq - to parse the JSON responses from the CLI. [jq download page](https://stedolan.github.io/jq/)
6
11
7
-
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).
12
+
## Configure the Azure CLI
8
13
9
-
After installing the CLI, log in to your Azure Account:
14
+
After installing the CLI, log in to your Azure Account by typing `az login` and output would look similar to this:
10
15
```
11
16
~ $ az login
12
17
To sign in, use a web browser to open the page https://aka.ms/devicelogin and enter the code F7DLMNOPE to authenticate.
@@ -26,14 +31,26 @@ To sign in, use a web browser to open the page https://aka.ms/devicelogin and en
26
31
]
27
32
```
28
33
29
-
TODO: handle multiple subscriptions?
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}"
38
+
```
30
39
31
40
## Create an Azure Service Principle
32
41
33
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.
34
43
35
44
```
36
-
$ az ad sp create-for-rbac --name="http://workflow-on-acs" --role="Contributor" --scopes="/subscriptions/<SUBSCRIPTION ID>"
45
+
SP_JSON=`az ad sp create-for-rbac --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
50
+
```
51
+
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
+
```
37
54
{
38
55
"appId": "58b21231-3dd7-4546-bd37-9df88812331f",
39
56
"name": "http://workflow-on-acs",
@@ -44,6 +61,32 @@ $ az ad sp create-for-rbac --name="http://workflow-on-acs" --role="Contributor"
44
61
45
62
## Create Your ACS Kubernetes Cluster
46
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:
65
+
66
+
### Path 1: Azure 'az' CLI
67
+
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.
69
+
70
+
```
71
+
RG_NAME=myresourcegroup
72
+
az resource group create --name "${RG_NAME}" --location southcentralus
73
+
```
74
+
75
+
2. Execute the command to deploy the cluster. The dns-prefix and ssh-key-value must be replaced with your own values.
76
+
77
+
```
78
+
az acs create --resource-group="${RG_NAME}" --location="southcentralus" /
0 commit comments