Skip to content

Commit 1e9415b

Browse files
committed
Validation bulk update: Fix code tags for Azure CLI code blocks - batch 6
1 parent f80833c commit 1e9415b

10 files changed

+48
-45
lines changed

articles/chaos-studio/chaos-studio-quickstart-dns-outage.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ First you register a fault provider on the subscription where your network secur
3939
1. Launch a [Cloud Shell](https://shell.azure.com/).
4040
1. Replace **$SUBSCRIPTION_ID** with the Azure subscription ID containing the network security group you wish to use in your experiment and run the following command to ensure the provider will be registered on the correct subscription.
4141

42-
```bash
42+
```azurecli
4343
az account set --subscription $SUBSCRIPTION_ID
4444
```
4545

4646
1. Drag and drop the **AzureNetworkSecurityGroupChaos.json** into the cloud shell window to upload the file.
4747
1. Replace **$SUBSCRIPTION_ID** used in the prior step and execute the following command to register the AzureNetworkSecurityGroupChaos fault provider.
4848

49-
```bash
49+
```azurecli
5050
az rest --method put --url "https://management.azure.com/subscriptions/$SUBSCRIPTION_ID/providers/microsoft.chaos/chaosProviderConfigurations/AzureNetworkSecurityGroupChaos?api-version=2021-06-21-preview" --body @AzureNetworkSecurityGroupChaos.json --resource "https://management.azure.com"
5151
```
5252

@@ -168,6 +168,6 @@ Follow these steps if you're not going to continue to using any faults related t
168168
1. Launch a [Cloud Shell](https://shell.azure.com/).
169169
1. Replace **$SUBSCRIPTION_ID** with the Azure subscription ID where the network security group fault provider was provisioned and run the following command.
170170

171-
```bash
171+
```azurecli
172172
az rest --method delete --url "https://management.azure.com/subscriptions/$SUBSCRIPTION_ID/providers/microsoft.chaos/chaosProviderConfigurations/AzureNetworkSecurityGroupChaos?api-version=2021-06-21-preview" --resource "https://management.azure.com"
173173
```

articles/chaos-studio/chaos-studio-samples-rest-api.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,95 +31,95 @@ The Squall REST APIs can be used to start and stop experiments, query target sta
3131

3232
#### Enumerate details about the Microsoft.Chaos Resource Provider
3333

34-
```bash
34+
```azurecli
3535
az rest --method get --url "https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Chaos?api-version={apiVersion}" --resource "https://management.azure.com"
3636
```
3737

3838
#### List all the operations of the Chaos Studio Resource Provider
3939

40-
```bash
40+
```azurecli
4141
az rest --method get --url "https://management.azure.com/providers/Microsoft.Chaos/operations?api-version={apiVersion}" --resource "https://management.azure.com"
4242
```
4343

4444
#### List Chaos Provider Configurations
4545

46-
```bash
46+
```azurecli
4747
az rest --method get --url "https://management.azure.com/subscriptions/{subscriptionId}/providers/microsoft.chaos/chaosProviderConfigurations/?api-version={apiVersion}" --resource "https://management.azure.com" --verbose
4848
```
4949

5050
#### Create Chaos Provider Configuration
5151

52-
```bash
52+
```azurecli
5353
az rest --method put --url "https://management.azure.com/subscriptions/{subscriptionId}/providers/microsoft.chaos/chaosProviderConfigurations/{chaosProviderType}?api-version={apiVersion}" --body @{providerSettings.json} --resource "https://management.azure.com"
5454
```
5555

5656
### Chaos Target and Agent Commands
5757

5858
#### List All the Targets or Agents Under a Subscription
5959

60-
```bash
60+
```azurecli
6161
az rest --method get --url "https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Chaos/chaosTargets/?api-version={apiVersion}" --url-parameter "chaosProviderType={chaosProviderType}" --resource "https://management.azure.com"
6262
```
6363

6464
### Chaos Experiment Commands
6565

6666
#### List all experiments in a resource group
6767

68-
```bash
68+
```azurecli
6969
az rest --method get --url "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/chaosExperiments?api-version={apiVersion}" --resource "https://management.azure.com"
7070
```
7171

7272
#### Get an experiment configuration details by name
7373

74-
```bash
74+
```azurecli
7575
az rest --method get --url "https://management.azure.com/{experimentId}?api-version={apiVersion}" --resource "https://management.azure.com"
7676
```
7777

7878
#### Create or update an experiment
7979

80-
```bash
80+
```azurecli
8181
az rest --method put --url "https://management.azure.com/{experimentId}?api-version={apiVersion}" --body @{experimentName.json} --resource "https://management.azure.com"
8282
```
8383

8484
#### Delete an experiment
8585

86-
```bash
86+
```azurecli
8787
az rest --method delete --url "https://management.azure.com/{experimentId}?api-version={apiVersion}" --resource "https://management.azure.com" --verbose
8888
```
8989

9090
#### Start an experiment
9191

92-
```bash
92+
```azurecli
9393
az rest --method get --url "https://management.azure.com/{experimentId}/start?api-version={apiVersion}" --resource "https://management.azure.com"
9494
```
9595

9696
#### Get statuses (History) of an experiment
9797

98-
```bash
98+
```azurecli
9999
az rest --method get --url "https://management.azure.com/{experimentId}/statuses?api-version={apiVersion}" --resource "https://management.azure.com"
100100
```
101101

102102
#### Get status of an experiment
103103

104-
```bash
104+
```azurecli
105105
az rest --method get --url "https://management.azure.com/{experimentId}/status?api-version={apiVersion}" --resource "https://management.azure.com"
106106
```
107107

108108
#### Cancel (Stop) an experiment
109109

110-
```bash
110+
```azurecli
111111
az rest --method get --url "https://management.azure.com/{experimentId}/cancel?api-version={apiVersion}" --resource "https://management.azure.com"
112112
```
113113

114114
#### List the details of the last two experiment executions
115115

116-
```bash
116+
```azurecli
117117
az rest --method get --url "https://management.azure.com/{experimentId}/executiondetails?api-version={apiVersion}" --resource "https://management.azure.com"
118118
```
119119

120120
#### List the details of a specific experiment execution
121121

122-
```bash
122+
```azurecli
123123
az rest --method get --url "https://management.azure.com/{experimentId}/executiondetails/{executionDetailsId}?api-version={apiVersion}" --resource "https://management.azure.com"
124124
```
125125

articles/chaos-studio/chaos-studio-targets-capabilities.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ An experiment can only inject faults on onboarded targets with the corresponding
5252
## Listing capability names and parameters
5353
For reference, a list of capability names, fault URNs, and parameters is available [in our fault library](chaos-studio-fault-library.md), but you can use the HTTP response to creating a capability or do a GET on an existing capability to get this information on demand. For example, doing a GET on a VM shutdown capability:
5454

55-
```bash
55+
```azurecli
5656
az rest --method get --url "https://management.azure.com/subscriptions/fd9ccc83-faf6-4121-9aff-2a2d685ca2a2/resourceGroups/myRG/providers/Microsoft.Compute/virtualMachines/myVM/providers/Microsoft.Chaos/targets/Microsoft-VirtualMachine/capabilities/shutdown-1.0?api-version=2021-08-11-preview"
5757
```
5858

@@ -83,7 +83,7 @@ Will return the following JSON:
8383

8484
The `properties.urn` property is used to define the fault you want to run in a chaos experiment. To understand the schema for this fault's parameters, you can GET the schema referenced by `properties.parametersSchema`.
8585

86-
```bash
86+
```azurecli
8787
az rest --method get --url "https://schema-tc.eastus.chaos-prod.azure.com/targetTypes/Microsoft-VirtualMachine/capabilityTypes/Shutdown-1.0/parametersSchema.json"
8888
```
8989

articles/chaos-studio/chaos-studio-tutorial-aks-portal.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ Before you can run Chaos Mesh faults in Chaos Studio, you need to install Chaos
2929

3030
1. Run the following commands in an [Azure Cloud Shell](../cloud-shell/overview.md) window where you have the active subscription set to be the subscription where your AKS cluster is deployed. Replace `$RESOURCE_GROUP` and `$CLUSTER_NAME` with the resource group and name of your cluster resource.
3131

32-
```bash
32+
```azurecli
3333
az aks get-credentials -g $RESOURCE_GROUP -n $CLUSTER_NAME
34+
```
35+
36+
```bash
3437
helm repo add chaos-mesh https://charts.chaos-mesh.org
3538
helm repo update
3639
kubectl create ns chaos-testing

articles/cognitive-services/Computer-vision/spatial-analysis-container.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -252,20 +252,20 @@ Use the Azure CLI to create an instance of Azure IoT Hub. Replace the parameters
252252
```bash
253253
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
254254
```
255-
```bash
255+
```azurecli
256256
sudo az login
257257
```
258-
```bash
258+
```azurecli
259259
sudo az account set --subscription "<name or ID of Azure Subscription>"
260260
```
261-
```bash
261+
```azurecli
262262
sudo az group create --name "<resource-group-name>" --location "<your-region>"
263263
```
264264
See [Region Support](https://azure.microsoft.com/global-infrastructure/services/?products=cognitive-services) for available regions.
265-
```bash
265+
```azurecli
266266
sudo az iot hub create --name "<iothub-group-name>" --sku S1 --resource-group "<resource-group-name>"
267267
```
268-
```bash
268+
```azurecli
269269
sudo az iot hub device-identity create --hub-name "<iothub-name>" --device-id "<device-name>" --edge-enabled
270270
```
271271

@@ -306,7 +306,7 @@ Next, register the host computer as an IoT Edge device in your IoT Hub instance,
306306

307307
You need to connect the IoT Edge device to your Azure IoT Hub. You need to copy the connection string from the IoT Edge device you created earlier. Alternatively, you can run the below command in the Azure CLI.
308308

309-
```bash
309+
```azurecli
310310
sudo az iot hub device-identity connection-string show --device-id my-edge-device --hub-name test-iot-hub-123
311311
```
312312

@@ -418,20 +418,20 @@ Use the Azure CLI to create an instance of Azure IoT Hub. Replace the parameters
418418
```bash
419419
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
420420
```
421-
```bash
421+
```azurecli
422422
sudo az login
423423
```
424-
```bash
424+
```azurecli
425425
sudo az account set --subscription "<name or ID of Azure Subscription>"
426426
```
427-
```bash
427+
```azurecli
428428
sudo az group create --name "<resource-group-name>" --location "<your-region>"
429429
```
430430
See [Region Support](https://azure.microsoft.com/global-infrastructure/services/?products=cognitive-services) for available regions.
431-
```bash
431+
```azurecli
432432
sudo az iot hub create --name "<iothub-name>" --sku S1 --resource-group "<resource-group-name>"
433433
```
434-
```bash
434+
```azurecli
435435
sudo az iot hub device-identity create --hub-name "<iothub-name>" --device-id "<device-name>" --edge-enabled
436436
```
437437

@@ -472,7 +472,7 @@ Next, register the VM as an IoT Edge device in your IoT Hub instance, using a [c
472472

473473
You need to connect the IoT Edge device to your Azure IoT Hub. You need to copy the connection string from the IoT Edge device you created earlier. Alternatively, you can run the below command in the Azure CLI.
474474

475-
```bash
475+
```azurecli
476476
sudo az iot hub device-identity connection-string show --device-id my-edge-device --hub-name test-iot-hub-123
477477
```
478478

articles/confidential-computing/quick-create-confidential-vm-arm-amd.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,13 @@ To create and deploy a confidential VM using an ARM template through the Azure C
7777

7878
1. Sign in to your Azure account in the Azure CLI.
7979

80-
```powershell-interactive
80+
```azurecli
8181
az login
8282
```
8383
8484
1. Set your Azure subscription. Replace `<subscription-id>` with your subscription identifier. Make sure to use a subscription that meets the [prerequisites](#prerequisites).
8585
86-
```powershell-interactive
86+
```azurecli
8787
az account set --subscription <subscription-id>
8888
```
8989
@@ -101,14 +101,14 @@ To create and deploy a confidential VM using an ARM template through the Azure C
101101
102102
If the resource group you specified doesn't exist, create a resource group with that name.
103103
104-
```powershell-interactive
104+
```azurecli
105105
az group create -n $resourceGroup -l $region
106106
```
107107
108108
1. Deploy your VM to Azure using ARM template with custom parameter file
109109
110110
111-
```powershell-interactive
111+
```azurecli
112112
az deployment group create `
113113
-g $resourceGroup `
114114
-n $deployName `

articles/container-apps/background-processing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ QUEUE_CONNECTION_STRING=`az storage account show-connection-string -g $RESOURCE_
107107

108108
# [PowerShell](#tab/powershell)
109109

110-
```powershell
110+
```azurecli
111111
$QUEUE_CONNECTION_STRING=(az storage account show-connection-string -g $RESOURCE_GROUP --name $STORAGE_ACCOUNT_NAME --query connectionString --out json) -replace '"',''
112112
```
113113

articles/container-apps/microservices-dapr-azure-resource-manager.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,11 @@ Next, retrieve the Log Analytics Client ID and client secret.
216216

217217
Make sure to run each query separately to give enough time for the request to complete.
218218

219-
```bash
219+
```azurecli
220220
LOG_ANALYTICS_WORKSPACE_CLIENT_ID=`az monitor log-analytics workspace show --query customerId -g $RESOURCE_GROUP -n $LOG_ANALYTICS_WORKSPACE -o tsv | tr -d '[:space:]'`
221221
```
222222

223-
```bash
223+
```azurecli
224224
LOG_ANALYTICS_WORKSPACE_CLIENT_SECRET=`az monitor log-analytics workspace get-shared-keys --query primarySharedKey -g $RESOURCE_GROUP -n $LOG_ANALYTICS_WORKSPACE -o tsv | tr -d '[:space:]'`
225225
```
226226

@@ -236,7 +236,7 @@ $LOG_ANALYTICS_WORKSPACE_CLIENT_ID=(Get-AzOperationalInsightsWorkspace -Resource
236236
$LOG_ANALYTICS_WORKSPACE_CLIENT_SECRET=(Get-AzOperationalInsightsWorkspaceSharedKey -ResourceGroupName $RESOURCE_GROUP -Name $LOG_ANALYTICS_WORKSPACE).PrimarySharedKey
237237
--->
238238

239-
```powershell
239+
```azurecli
240240
$LOG_ANALYTICS_WORKSPACE_CLIENT_SECRET=(az monitor log-analytics workspace get-shared-keys --query primarySharedKey -g $RESOURCE_GROUP -n $LOG_ANALYTICS_WORKSPACE --out tsv)
241241
```
242242

@@ -308,7 +308,7 @@ Get the storage account key with the following command:
308308

309309
# [Bash](#tab/bash)
310310

311-
```bash
311+
```azurecli
312312
STORAGE_ACCOUNT_KEY=`az storage account keys list --resource-group $RESOURCE_GROUP --account-name $STORAGE_ACCOUNT --query '[0].value' --out tsv`
313313
```
314314

articles/container-apps/microservices-dapr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ Get the storage account key with the following command:
139139

140140
# [Bash](#tab/bash)
141141

142-
```bash
142+
```azurecli
143143
STORAGE_ACCOUNT_KEY=`az storage account keys list --resource-group $RESOURCE_GROUP --account-name $STORAGE_ACCOUNT --query '[0].value' --out tsv`
144144
```
145145

articles/container-apps/monitor.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Set the name of your resource group and Log Analytics workspace, and then retrie
4848

4949
# [Bash](#tab/bash)
5050

51-
```bash
51+
```azurecli
5252
RESOURCE_GROUP="my-containerapps"
5353
LOG_ANALYTICS_WORKSPACE="containerapps-logs"
5454
@@ -57,7 +57,7 @@ LOG_ANALYTICS_WORKSPACE_CLIENT_ID=`az monitor log-analytics workspace show --que
5757

5858
# [PowerShell](#tab/powershell)
5959

60-
```powershell
60+
```azurecli
6161
$RESOURCE_GROUP="my-containerapps"
6262
$LOG_ANALYTICS_WORKSPACE="containerapps-logs"
6363

0 commit comments

Comments
 (0)