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: articles/cognitive-services/containers/azure-kubernetes-recipe.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,19 +57,19 @@ To deploy the container to the Azure Kubernetes Service, the container images ne
57
57
58
58
1. Sign in to the Azure CLI
59
59
60
-
```azurecli
60
+
```azurecli-interactive
61
61
az login
62
62
```
63
63
64
64
1. Create a resource group named `cogserv-container-rg` to hold every resource created in this procedure.
65
65
66
-
```azurecli
66
+
```azurecli-interactive
67
67
az group create --name cogserv-container-rg --location westus
68
68
```
69
69
70
70
1. Create your own Azure Container Registry with the format of your name then `registry`, such as `pattyregistry`. Do not use dashes or underline characters in the name.
71
71
72
-
```azurecli
72
+
```azurecli-interactive
73
73
az acr create --resource-group cogserv-container-rg --name pattyregistry --sku Basic
74
74
```
75
75
@@ -99,7 +99,7 @@ To deploy the container to the Azure Kubernetes Service, the container images ne
99
99
100
100
1. Sign in to your container registry. You need to login before you can push images to your registry.
101
101
102
-
```azurecli
102
+
```azurecli-interactive
103
103
az acr login --name pattyregistry
104
104
```
105
105
@@ -169,7 +169,7 @@ The following steps are needed to get the required information to connect your c
169
169
170
170
1. Create service principal.
171
171
172
-
```azurecli
172
+
```azurecli-interactive
173
173
az ad sp create-for-rbac --skip-assignment
174
174
```
175
175
@@ -188,7 +188,7 @@ The following steps are needed to get the required information to connect your c
188
188
189
189
1. Get your container registry ID.
190
190
191
-
```azurecli
191
+
```azurecli-interactive
192
192
az acr show --resource-group cogserv-container-rg --name pattyregistry --query "id" --o table
193
193
```
194
194
@@ -203,15 +203,15 @@ The following steps are needed to get the required information to connect your c
203
203
204
204
1. To grant the correct access for the AKS cluster to use images stored in your container registry, create a role assignment. Replace `<appId>` and `<acrId>` with the values gathered in the previous two steps.
205
205
206
-
```azurecli
206
+
```azurecli-interactive
207
207
az role assignment create --assignee <appId> --scope <acrId> --role Reader
208
208
```
209
209
210
210
## Create Azure Kubernetes Service
211
211
212
212
1. Create the Kubernetes cluster. All the parameter values are from previous sections except the name parameter. Choose a name that indicates who created it and its purpose, such as `patty-kube`.
213
213
214
-
```azurecli
214
+
```azurecli-interactive
215
215
az aks create --resource-group cogserv-container-rg --name patty-kube --node-count 2 --service-principal <appId> --client-secret <client-secret> --generate-ssh-keys
216
216
```
217
217
@@ -279,7 +279,7 @@ The following steps are needed to get the required information to connect your c
279
279
280
280
1. Get credentials of the Kubernetes cluster.
281
281
282
-
```azurecli
282
+
```azurecli-interactive
283
283
az aks get-credentials --resource-group cogserv-container-rg --name patty-kube
284
284
```
285
285
@@ -392,7 +392,7 @@ Change the URL in the browser to the external IP of the `language-frontend` cont
392
392
393
393
When you are done with the cluster, delete the Azure resource group.
Copy file name to clipboardExpand all lines: articles/cognitive-services/containers/container-reuse-recipe.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,15 +114,15 @@ Follow these steps to use the Dockerfile and place the new image in your private
114
114
115
115
1. Sign in to Azure CLI from a console. This command opens a browser and requires authentication. Once authenticated, you can close the browser and continue working in the console.
116
116
117
-
```azure-cli
117
+
```azurecli
118
118
az login
119
119
```
120
120
121
121
1. Sign in to your private registry with Azure CLI from a console.
122
122
123
123
Replace the values in the angle brackets, `<my-registry>`, with your own registry name.
0 commit comments