Skip to content

Commit a97d871

Browse files
authored
Merge pull request #106241 from TimShererWithAquent/us1669724e
Azure CLI syntax blocks.
2 parents 71d0c3b + 6ae135b commit a97d871

11 files changed

+48
-52
lines changed

articles/cognitive-services/Anomaly-Detector/quickstarts/detect-data-anomalies-csharp-sdk.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ dotnet build
5151

5252
The build output should contain no warnings or errors.
5353

54-
```console
54+
```output
5555
...
5656
Build succeeded.
5757
0 Warning(s)

articles/cognitive-services/Custom-Vision-Service/logo-detector-mobile.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,15 @@ The app requires an Azure service principal account to deploy services to your A
102102

103103
You can create a service principal by using either Azure Cloud Shell or the Azure CLI, as shown here. To begin, sign in and select the subscription you want to use.
104104

105-
```console
105+
```azurecli
106106
az login
107107
az account list
108108
az account set --subscription "<subscription name or subscription id>"
109109
```
110110

111111
Then create your service principal. (This process might take some time to finish.)
112112

113-
```console
113+
```azurecli
114114
az ad sp create-for-rbac --name <servicePrincipalName> --password <yourSPStrongPassword>
115115
```
116116

articles/cognitive-services/Face/QuickStarts/csharp-sdk.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ dotnet build
5858

5959
The build output should contain no warnings or errors.
6060

61-
```console
61+
```output
6262
...
6363
Build succeeded.
6464
0 Warning(s)

articles/cognitive-services/LUIS/luis-how-to-azure-subscription.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,21 +76,21 @@ Resource `kind`:
7676

7777
1. Sign in to the Azure CLI:
7878

79-
```console
79+
```azurecli
8080
az login
8181
```
8282
8383
This opens a browser to allow you to select the correct account and provide authentication.
8484
8585
1. Create a **LUIS authoring resource**, of kind `LUIS.Authoring`, named `my-luis-authoring-resource` in the _existing_ resource group named `my-resource-group` for the `westus` region.
8686
87-
```console
87+
```azurecli
8888
az cognitiveservices account create -n my-luis-authoring-resource -g my-resource-group --kind LUIS.Authoring --sku F0 -l westus --yes
8989
```
9090
9191
1. Create a **LUIS prediction endpoint resource**, of kind `LUIS`, named `my-luis-prediction-resource` in the _existing_ resource group named `my-resource-group` for the `westus` region. If you want a higher throughput than the free tier, change `F0` to `S0`. Learn more about [pricing tiers and throughput](luis-boundaries.md#key-limits).
9292
93-
```console
93+
```azurecli
9494
az cognitiveservices account create -n my-luis-prediction-resource -g my-resource-group --kind LUIS --sku F0 -l westus --yes
9595
```
9696

articles/cognitive-services/cognitive-services-apis-create-account-cli.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ In this quickstart, you'll learn how to sign up for Azure Cognitive Services and
2929

3030
Install the [Azure CLI](https://docs.microsoft.com/cli/azure/install-azure-cli?view=azure-cli-latest). To sign into your local installation of the CLI, run the [az login](https://docs.microsoft.com/cli/azure/reference-index#az-login) command:
3131

32-
```console
32+
```azurecli-interactive
3333
az login
3434
```
3535

@@ -151,7 +151,7 @@ az cognitiveservices account create \
151151

152152
To log into your local installation of the Command-Line Interface(CLI), use the [az login](https://docs.microsoft.com/cli/azure/reference-index?view=azure-cli-latest#az-login) command.
153153

154-
```console
154+
```azurecli-interactive
155155
az login
156156
```
157157

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

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,11 @@ To deploy the container to the Azure Kubernetes Service, the container images ne
7575
7676
Save the results to get the **loginServer** property. This will be part of the hosted container's address, used later in the `language.yml` file.
7777
78-
```console
79-
> az acr create --resource-group cogserv-container-rg --name pattyregistry --sku Basic
78+
```azurecli-interactive
79+
az acr create --resource-group cogserv-container-rg --name pattyregistry --sku Basic
80+
```
81+
82+
```output
8083
{
8184
"adminUserEnabled": false,
8285
"creationDate": "2019-01-02T23:49:53.783549+00:00",
@@ -131,8 +134,7 @@ To deploy the container to the Azure Kubernetes Service, the container images ne
131134
132135
When the process is done, the results should be similar to:
133136
134-
```console
135-
> docker push pattyregistry.azurecr.io/language-frontend:v1
137+
```output
136138
The push refers to repository [pattyregistry.azurecr.io/language-frontend]
137139
82ff52ee6c73: Pushed
138140
07599c047227: Pushed
@@ -175,8 +177,7 @@ The following steps are needed to get the required information to connect your c
175177
176178
Save the results `appId` value for the assignee parameter in step 3, `<appId>`. Save the `password` for the next section's client-secret parameter `<client-secret>`.
177179
178-
```console
179-
> az ad sp create-for-rbac --skip-assignment
180+
```output
180181
{
181182
"appId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
182183
"displayName": "azure-cli-2018-12-31-18-39-32",
@@ -194,8 +195,7 @@ The following steps are needed to get the required information to connect your c
194195
195196
Save the output for the scope parameter value, `<acrId>`, in the next step. It looks like:
196197
197-
```console
198-
> az acr show --resource-group cogserv-container-rg --name pattyregistry --query "id" --o table
198+
```output
199199
/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/cogserv-container-rg/providers/Microsoft.ContainerRegistry/registries/pattyregistry
200200
```
201201
@@ -217,8 +217,7 @@ The following steps are needed to get the required information to connect your c
217217
218218
This step may take a few minutes. The result is:
219219
220-
```console
221-
> az aks create --resource-group cogserv-container-rg --name patty-kube --node-count 2 --service-principal <appId> --client-secret <client-secret> --generate-ssh-keys
220+
```output
222221
{
223222
"aadProfile": null,
224223
"addonProfiles": null,
@@ -295,8 +294,7 @@ This section uses the **kubectl** CLI to talk with the Azure Kubernetes Service.
295294
296295
The response looks like:
297296
298-
```console
299-
> kubectl get nodes
297+
```output
300298
NAME STATUS ROLES AGE VERSION
301299
aks-nodepool1-13756812-0 Ready agent 6m v1.9.11
302300
aks-nodepool1-13756812-1 Ready agent 6m v1.9.11
@@ -332,8 +330,7 @@ This section uses the **kubectl** CLI to talk with the Azure Kubernetes Service.
332330
333331
The response is:
334332
335-
```console
336-
> kubectl apply -f language.yml
333+
```output
337334
service "language-frontend" created
338335
deployment.apps "language-frontend" created
339336
service "language" created
@@ -348,8 +345,7 @@ For the two containers, verify the `language-frontend` and `language` services a
348345
kubectl get all
349346
```
350347

351-
```console
352-
> kubectl get all
348+
```output
353349
NAME READY STATUS RESTARTS AGE
354350
pod/language-586849d8dc-7zvz5 1/1 Running 0 13h
355351
pod/language-frontend-68b9969969-bz9bg 1/1 Running 1 13h

articles/container-service/dcos-swarm/container-service-dcos-acr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Run the following command to login to the Azure Container Registry. Replace the
9797

9898
This command stores the authentication values locally under the `~/.docker` path.
9999

100-
```azurecli-interactive
100+
```console
101101
docker -H tcp://localhost:2375 login --username=myContainerRegistry23489 --password=//=ls++q/m+w+pQDb/xCi0OhD=2c/hST mycontainerregistry.azurecr.io
102102
```
103103

articles/container-service/dcos-swarm/container-service-dcos-manage-tutorial.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ms.custom: mvc
1313

1414
[!INCLUDE [ACS deprecation](../../../includes/container-service-deprecation.md)]
1515

16-
DC/OS provides a distributed platform for running modern and containerized applications. With Azure Container Service, provisioning of a production ready DC/OS cluster is simple and quick. This quick start details basic steps needed to deploy a DC/OS cluster and run basic workload.
16+
DC/OS provides a distributed platform for running modern and containerized applications. With Azure Container Service, provisioning of a production ready DC/OS cluster is simple and quick. This quickstart details basic steps needed to deploy a DC/OS cluster and run basic workload.
1717

1818
> [!div class="checklist"]
1919
> * Create an ACS DC/OS cluster
@@ -61,7 +61,7 @@ ip=$(az network public-ip list --resource-group myResourceGroup --query "[?conta
6161

6262
To create the SSH tunnel, run the following command and follow the on-screen instructions. If port 80 is already in use, the command fails. Update the tunneled port to one not in use, such as `85:localhost:80`.
6363

64-
```azurecli
64+
```console
6565
sudo ssh -i ~/.ssh/id_rsa -fNL 80:localhost:80 -p 2200 azureuser@$ip
6666
```
6767

@@ -75,7 +75,7 @@ az acs dcos install-cli
7575

7676
Before the CLI can be used with the cluster, it must be configured to use the SSH tunnel. To do so, run the following command, adjusting the port if needed.
7777

78-
```azurecli
78+
```console
7979
dcos config set core.dcos_url http://localhost
8080
```
8181

@@ -111,19 +111,19 @@ The default scheduling mechanism for an ACS DC/OS cluster is Marathon. Marathon
111111

112112
Run the following command to schedule the application to run on the DC/OS cluster.
113113

114-
```azurecli
114+
```console
115115
dcos marathon app add marathon-app.json
116116
```
117117

118118
To see the deployment status for the app, run the following command.
119119

120-
```azurecli
120+
```console
121121
dcos marathon app list
122122
```
123123

124124
When the **TASKS** column value switches from *0/1* to *1/1*, application deployment has completed.
125125

126-
```azurecli
126+
```output
127127
ID MEM CPUS TASKS HEALTH DEPLOYMENT WAITING CONTAINER CMD
128128
/test 32 1 0/1 --- --- False DOCKER None
129129
```
@@ -160,19 +160,19 @@ In the previous example, a single instance application was created. To update th
160160

161161
Update the application using the `dcos marathon app update` command.
162162

163-
```azurecli
163+
```console
164164
dcos marathon app update demo-app-private < marathon-app.json
165165
```
166166

167167
To see the deployment status for the app, run the following command.
168168

169-
```azurecli
169+
```console
170170
dcos marathon app list
171171
```
172172

173173
When the **TASKS** column value switches from *1/3* to *3/1*, application deployment has completed.
174174

175-
```azurecli
175+
```output
176176
ID MEM CPUS TASKS HEALTH DEPLOYMENT WAITING CONTAINER CMD
177177
/test 32 1 1/3 --- --- False DOCKER None
178178
```
@@ -217,13 +217,13 @@ Create a file named **nginx-public.json** and copy the following contents into i
217217

218218
Run the following command to schedule the application to run on the DC/OS cluster.
219219

220-
```azurecli
220+
```console
221221
dcos marathon app add nginx-public.json
222222
```
223223

224224
Get the public IP address of the DC/OS public cluster agents.
225225

226-
```azurecli
226+
```azurecli
227227
az network public-ip list --resource-group myResourceGroup --query "[?contains(name,'dcos-agent')].[ipAddress]" -o tsv
228228
```
229229

@@ -251,7 +251,7 @@ az acs scale --resource-group myResourceGroup --name myDCOSCluster --new-agent-c
251251

252252
When no longer needed, you can use the [az group delete](/cli/azure/group#az-group-delete) command to remove the resource group, DC/OS cluster, and all related resources.
253253

254-
```azurecli
254+
```azurecli
255255
az group delete --name myResourceGroup --no-wait
256256
```
257257

articles/container-service/dcos-swarm/container-service-dcos-quickstart.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ms.custom: mvc
1313

1414
[!INCLUDE [ACS deprecation](../../../includes/container-service-deprecation.md)]
1515

16-
DC/OS provides a distributed platform for running modern and containerized applications. With Azure Container Service, provisioning of a production ready DC/OS cluster is simple and quick. This quick start details the basic steps needed to deploy a DC/OS cluster and run basic workload.
16+
DC/OS provides a distributed platform for running modern and containerized applications. With Azure Container Service, provisioning of a production ready DC/OS cluster is simple and quick. This quickstart details the basic steps needed to deploy a DC/OS cluster and run basic workload.
1717

1818
If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
1919

@@ -123,19 +123,19 @@ The default scheduling mechanism for an ACS DC/OS cluster is Marathon. Marathon
123123

124124
Run the following command to schedule the application to run on the DC/OS cluster.
125125

126-
```azurecli
126+
```console
127127
dcos marathon app add marathon-app.json
128128
```
129129

130130
To see the deployment status for the app, run the following command.
131131

132-
```azurecli
132+
```console
133133
dcos marathon app list
134134
```
135135

136136
When the **WAITING** column value switches from *True* to *False*, application deployment has completed.
137137

138-
```azurecli
138+
```output
139139
ID MEM CPUS TASKS HEALTH DEPLOYMENT WAITING CONTAINER CMD
140140
/test 32 1 1/1 --- --- False DOCKER None
141141
```
@@ -160,7 +160,7 @@ az group delete --name myResourceGroup --no-wait
160160

161161
## Next steps
162162

163-
In this quick start, you’ve deployed a DC/OS cluster and have run a simple Docker container on the cluster. To learn more about Azure Container Service, continue to the ACS tutorials.
163+
In this quickstart, you’ve deployed a DC/OS cluster and have run a simple Docker container on the cluster. To learn more about Azure Container Service, continue to the ACS tutorials.
164164

165165
> [!div class="nextstepaction"]
166166
> [Manage an ACS DC/OS Cluster](container-service-dcos-manage-tutorial.md)

articles/container-service/kubernetes/container-service-tutorial-kubernetes-prepare-acr.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ docker images
7070

7171
Output:
7272

73-
```bash
73+
```output
7474
REPOSITORY TAG IMAGE ID CREATED SIZE
7575
azure-vote-front latest 4675398c9172 13 minutes ago 694MB
7676
redis latest a1b99da73d05 7 days ago 106MB
@@ -99,7 +99,7 @@ docker images
9999

100100
Output:
101101

102-
```bash
102+
```output
103103
REPOSITORY TAG IMAGE ID CREATED SIZE
104104
azure-vote-front latest eaf2b9c57e5e 8 minutes ago 716 MB
105105
mycontainerregistry082.azurecr.io/azure-vote-front v1 eaf2b9c57e5e 8 minutes ago 716 MB
@@ -129,7 +129,7 @@ az acr repository list --name <acrName> --output table
129129

130130
Output:
131131

132-
```azurecli
132+
```output
133133
Result
134134
----------------
135135
azure-vote-front
@@ -143,7 +143,7 @@ az acr repository show-tags --name <acrName> --repository azure-vote-front --out
143143

144144
Output:
145145

146-
```azurecli
146+
```output
147147
Result
148148
--------
149149
v1

0 commit comments

Comments
 (0)