Skip to content

Commit 7bb2df2

Browse files
authored
Merge pull request #104511 from john-par/1669724-update-documents-with-correct-azure-cli-tags-02-14
1669724, update documents with correct azure cli tags 02-14
2 parents 49c6a0e + efd6f9f commit 7bb2df2

12 files changed

+46
-42
lines changed

articles/aks/deployment-center-launcher.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ In this tutorial, you will:
3434

3535
1. To create the AKS cluster, run the following commands:
3636

37-
```cmd
37+
```azurecli
3838
# Create a resource group in the South India location:
3939
4040
az group create --name azooaks --location southindia

articles/dev-spaces/get-started-java.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Azure Dev Spaces requires minimal local machine setup. Most of your dev space's
2626
### Sign in to Azure CLI
2727
Sign in to Azure. Type the following command in a terminal window:
2828

29-
```cmd
29+
```azurecli
3030
az login
3131
```
3232

@@ -36,28 +36,28 @@ az login
3636
#### If you have multiple Azure subscriptions...
3737
You can view your subscriptions by running:
3838

39-
```cmd
39+
```azurecli
4040
az account list --output table
4141
```
4242

4343
Locate the subscription which has *True* for *IsDefault*.
4444
If this isn't the subscription you want to use, you can change the default subscription:
4545

46-
```cmd
46+
```azurecli
4747
az account set --subscription <subscription ID>
4848
```
4949

5050
## Create a Kubernetes cluster enabled for Azure Dev Spaces
5151

5252
At the command prompt, create the resource group in a [region that supports Azure Dev Spaces][supported-regions].
5353

54-
```cmd
54+
```azurecli
5555
az group create --name MyResourceGroup --location <region>
5656
```
5757

5858
Create a Kubernetes cluster with the following command:
5959

60-
```cmd
60+
```azurecli
6161
az aks create -g MyResourceGroup -n MyAKS --location <region> --generate-ssh-keys
6262
```
6363

@@ -67,7 +67,7 @@ It takes a few minutes to create the cluster.
6767

6868
Enter the following Azure CLI command, using the resource group that contains your AKS cluster, and your AKS cluster name. The command configures your cluster with support for Azure Dev Spaces.
6969

70-
```cmd
70+
```azurecli
7171
az aks use-dev-spaces -g MyResourceGroup -n MyAKS
7272
```
7373

articles/dev-spaces/get-started-netcore.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Azure Dev Spaces requires minimal local machine setup. Most of your dev space's
2323
### Sign in to Azure CLI
2424
Sign in to Azure. Type the following command in a terminal window:
2525

26-
```cmd
26+
```azurecli
2727
az login
2828
```
2929

@@ -33,28 +33,28 @@ az login
3333
#### If you have multiple Azure subscriptions...
3434
You can view your subscriptions by running:
3535

36-
```cmd
36+
```azurecli
3737
az account list --output table
3838
```
3939

4040
Locate the subscription which has *True* for *IsDefault*.
4141
If this isn't the subscription you want to use, you can change the default subscription:
4242

43-
```cmd
43+
```azurecli
4444
az account set --subscription <subscription ID>
4545
```
4646

4747
## Create a Kubernetes cluster enabled for Azure Dev Spaces
4848

4949
At the command prompt, create the resource group in a [region that supports Azure Dev Spaces][supported-regions].
5050

51-
```cmd
51+
```azurecli
5252
az group create --name MyResourceGroup --location <region>
5353
```
5454

5555
Create a Kubernetes cluster with the following command:
5656

57-
```cmd
57+
```azurecli
5858
az aks create -g MyResourceGroup -n MyAKS --location <region> --generate-ssh-keys
5959
```
6060

@@ -64,7 +64,7 @@ It takes a few minutes to create the cluster.
6464

6565
Enter the following Azure CLI command, using the resource group that contains your AKS cluster, and your AKS cluster name. The command configures your cluster with support for Azure Dev Spaces.
6666

67-
```cmd
67+
```azurecli
6868
az aks use-dev-spaces -g MyResourceGroup -n MyAKS
6969
```
7070

@@ -251,4 +251,4 @@ Refresh the web app in the browser, and go to the About page. You should see you
251251
> [Learn about multi-service development](multi-service-netcore.md)
252252
253253

254-
[supported-regions]: https://azure.microsoft.com/global-infrastructure/services/?products=kubernetes-service
254+
[supported-regions]: https://azure.microsoft.com/global-infrastructure/services/?products=kubernetes-service

articles/dev-spaces/get-started-nodejs.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Azure Dev Spaces requires minimal local machine setup. Most of your dev space's
2323
### Sign in to Azure CLI
2424
Sign in to Azure. Type the following command in a terminal window:
2525

26-
```cmd
26+
```azurecli
2727
az login
2828
```
2929

@@ -33,28 +33,28 @@ az login
3333
#### If you have multiple Azure subscriptions...
3434
You can view your subscriptions by running:
3535

36-
```cmd
36+
```azurecli
3737
az account list --output table
3838
```
3939

4040
Locate the subscription which has *True* for *IsDefault*.
4141
If this isn't the subscription you want to use, you can change the default subscription:
4242

43-
```cmd
43+
```azurecli
4444
az account set --subscription <subscription ID>
4545
```
4646

4747
## Create a Kubernetes cluster enabled for Azure Dev Spaces
4848

4949
At the command prompt, create the resource group in a [region that supports Azure Dev Spaces][supported-regions].
5050

51-
```cmd
51+
```azurecli
5252
az group create --name MyResourceGroup --location <region>
5353
```
5454

5555
Create a Kubernetes cluster with the following command:
5656

57-
```cmd
57+
```azurecli
5858
az aks create -g MyResourceGroup -n MyAKS --location <region> --generate-ssh-keys
5959
```
6060

@@ -64,7 +64,7 @@ It takes a few minutes to create the cluster.
6464

6565
Enter the following Azure CLI command, using the resource group that contains your AKS cluster, and your AKS cluster name. The command configures your cluster with support for Azure Dev Spaces.
6666

67-
```cmd
67+
```azurecli
6868
az aks use-dev-spaces -g MyResourceGroup -n MyAKS
6969
```
7070

@@ -278,4 +278,4 @@ In this configuration, the container is configured to start *nodemon*. When serv
278278
> [Learn about multi-service development](multi-service-nodejs.md)
279279
280280

281-
[supported-regions]: https://azure.microsoft.com/global-infrastructure/services/?products=kubernetes-service
281+
[supported-regions]: https://azure.microsoft.com/global-infrastructure/services/?products=kubernetes-service

articles/dev-spaces/how-to/dev-spaces-business-continuity.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Repeat this process for each cluster.
3535

3636
You can also enable Dev Spaces at the command line:
3737

38-
```cmd
38+
```azurecli
3939
az aks use-dev-spaces -g <resource group name> -n <cluster name>
4040
```
4141

@@ -51,7 +51,7 @@ Once you've properly configured a backup cluster running your team's baseline, y
5151

5252
Select a different cluster with the following CLI command:
5353

54-
```cmd
54+
```azurecli
5555
az aks use-dev-spaces -g <new resource group name> -n <new cluster name>
5656
```
5757

articles/dev-spaces/how-to/github-actions.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ In this guide, you will learn how to:
3333

3434
Create an Azure Container Registry (ACR):
3535

36-
```cmd
36+
```azurecli
3737
az acr create --resource-group MyResourceGroup --name <acrName> --sku Basic
3838
```
3939

@@ -46,27 +46,27 @@ Save the *loginServer* value from the output because it is used in a later step.
4646

4747
Use [az ad sp create-for-rbac][az-ad-sp-create-for-rbac] to create a service principal. For example:
4848

49-
```cmd
49+
```azurecli
5050
az ad sp create-for-rbac --sdk-auth --skip-assignment
5151
```
5252

5353
Save the JSON output because it is used in a later step.
5454

5555
Use [az aks show][az-aks-show] to display the *ID* of your AKS cluster:
5656

57-
```cmd
57+
```azurecli
5858
az aks show -g MyResourceGroup -n MyAKS --query id
5959
```
6060

6161
Use [az acr show][az-acr-show] to display the *ID* of the ACR:
6262

63-
```cmd
63+
```azurecli
6464
az acr show --name <acrName> --query id
6565
```
6666

6767
Use [az role assignment create][az-role-assignment-create] to give *Contributor* access to your AKS cluster and *AcrPush* access to your ACR.
6868

69-
```cmd
69+
```azurecli
7070
az role assignment create --assignee <ClientId> --scope <AKSId> --role Contributor
7171
az role assignment create --assignee <ClientId> --scope <ACRId> --role AcrPush
7272
```
@@ -152,7 +152,7 @@ If you merge your changes into the *master* branch in your fork, another action
152152

153153
## Clean up your Azure resources
154154

155-
```cmd
155+
```azurecli
156156
az group delete --name MyResourceGroup --yes --no-wait
157157
```
158158

articles/dev-spaces/how-to/install-dev-spaces.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,13 @@ Before you can install Dev Spaces using the CLI, you need:
2020

2121
Use the `use-dev-spaces` command to enable Dev Spaces on your AKS cluster and follow the prompts.
2222

23-
```cmd
23+
```azurecli
2424
az aks use-dev-spaces -g myResourceGroup -n myAKSCluster
2525
```
2626

2727
The above command enables Dev Spaces on the *myAKSCluster* cluster in the *myResourceGroup* group and creates a *default* dev space.
2828

29-
```cmd
30-
$ az aks use-dev-spaces -g myResourceGroup -n myAKSCluster
31-
29+
```console
3230
'An Azure Dev Spaces Controller' will be created that targets resource 'myAKSCluster' in resource group 'myResourceGroup'. Continue? (y/N): y
3331

3432
Creating and selecting Azure Dev Spaces Controller 'myAKSCluster' in resource group 'myResourceGroup' that targets resource 'myAKSCluster' in resource group 'myResourceGroup'...2m 24s

articles/jenkins/deploy-jenkins-app-service-plugin.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,13 @@ For the **Docker registry URL** value, supply the URL by using the format https:
204204
### For Azure App Service on Linux
205205
206206
1. To verify your web app, run the following command in the Azure CLI:
207-
```CLI
207+
208+
```azurecli
208209
az acr repository list -n <myRegistry> -o json
209210
```
211+
210212
The following message is displayed:
213+
211214
```CLI
212215
["calculator"]
213216
```

articles/jenkins/jenkins-azure-functions-deploy.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,19 @@ The following steps show how to create a Java function using the Azure CLI:
2626

2727
1. Create a resource group, replacing the **&lt;resource_group>** placeholder with your resource group name.
2828

29-
```cli
29+
```azurecli
3030
az group create --name <resource_group> --location eastus
3131
```
3232
3333
1. Create an Azure storage account, replacing the placeholders with the appropriate values.
3434
35-
```cli
35+
```azurecli
3636
az storage account create --name <storage_account> --location eastus --resource-group <resource_group> --sku Standard_LRS
3737
```
3838
3939
1. Create the test function app, replacing the placeholders with the appropriate values.
4040
41-
```cli
41+
```azurecli
4242
az functionapp create --resource-group <resource_group> --consumption-plan-location eastus --name <function_app> --storage-account <storage_account>
4343
```
4444
@@ -144,7 +144,7 @@ It's now time to run the Jenkins job.
144144
If you're not going to continue to use this application, delete
145145
the resources you created with the following step:
146146
147-
```cli
147+
```azurecli
148148
az group delete -y --no-wait -n <resource_group>
149149
```
150150

articles/service-fabric-mesh/service-fabric-mesh-faq.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,11 @@ If you see this happen, you can validate that the system shut it down by running
4141

4242
For example:
4343

44-
```cli
45-
~$ az mesh app show --resource-group myResourceGroup --name helloWorldApp
44+
```azurecli
45+
az mesh app show --resource-group myResourceGroup --name helloWorldApp
46+
```
47+
48+
```output
4649
{
4750
"debugParams": null,
4851
"description": "Service Fabric Mesh HelloWorld Application!",

0 commit comments

Comments
 (0)