Skip to content

Commit eb7bc81

Browse files
authored
Merge pull request #86706 from IEvangelist/slugger
[CogSvcs] Fixed incorrect code slugs
2 parents dafccc3 + 0cdbd28 commit eb7bc81

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

articles/cognitive-services/containers/azure-kubernetes-recipe.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,19 @@ To deploy the container to the Azure Kubernetes Service, the container images ne
5757

5858
1. Sign in to the Azure CLI
5959

60-
```azurecli
60+
```azurecli-interactive
6161
az login
6262
```
6363
6464
1. Create a resource group named `cogserv-container-rg` to hold every resource created in this procedure.
6565
66-
```azurecli
66+
```azurecli-interactive
6767
az group create --name cogserv-container-rg --location westus
6868
```
6969
7070
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.
7171
72-
```azurecli
72+
```azurecli-interactive
7373
az acr create --resource-group cogserv-container-rg --name pattyregistry --sku Basic
7474
```
7575
@@ -99,7 +99,7 @@ To deploy the container to the Azure Kubernetes Service, the container images ne
9999
100100
1. Sign in to your container registry. You need to login before you can push images to your registry.
101101
102-
```azurecli
102+
```azurecli-interactive
103103
az acr login --name pattyregistry
104104
```
105105
@@ -169,7 +169,7 @@ The following steps are needed to get the required information to connect your c
169169
170170
1. Create service principal.
171171
172-
```azurecli
172+
```azurecli-interactive
173173
az ad sp create-for-rbac --skip-assignment
174174
```
175175
@@ -188,7 +188,7 @@ The following steps are needed to get the required information to connect your c
188188
189189
1. Get your container registry ID.
190190
191-
```azurecli
191+
```azurecli-interactive
192192
az acr show --resource-group cogserv-container-rg --name pattyregistry --query "id" --o table
193193
```
194194
@@ -203,15 +203,15 @@ The following steps are needed to get the required information to connect your c
203203
204204
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.
205205
206-
```azurecli
206+
```azurecli-interactive
207207
az role assignment create --assignee <appId> --scope <acrId> --role Reader
208208
```
209209
210210
## Create Azure Kubernetes Service
211211
212212
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`.
213213
214-
```azurecli
214+
```azurecli-interactive
215215
az aks create --resource-group cogserv-container-rg --name patty-kube --node-count 2 --service-principal <appId> --client-secret <client-secret> --generate-ssh-keys
216216
```
217217
@@ -279,7 +279,7 @@ The following steps are needed to get the required information to connect your c
279279
280280
1. Get credentials of the Kubernetes cluster.
281281
282-
```azurecli
282+
```azurecli-interactive
283283
az aks get-credentials --resource-group cogserv-container-rg --name patty-kube
284284
```
285285
@@ -392,7 +392,7 @@ Change the URL in the browser to the external IP of the `language-frontend` cont
392392

393393
When you are done with the cluster, delete the Azure resource group.
394394

395-
```azure-cli
395+
```azurecli-interactive
396396
az group delete --name cogserv-container-rg
397397
```
398398

articles/cognitive-services/containers/container-reuse-recipe.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,15 @@ Follow these steps to use the Dockerfile and place the new image in your private
114114

115115
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.
116116

117-
```azure-cli
117+
```azurecli
118118
az login
119119
```
120120

121121
1. Sign in to your private registry with Azure CLI from a console.
122122

123123
Replace the values in the angle brackets, `<my-registry>`, with your own registry name.
124124

125-
```azure-cli
125+
```azurecli
126126
az acr login --name <my-registry>
127127
```
128128

0 commit comments

Comments
 (0)