Skip to content

Commit 4048c87

Browse files
authored
Merge pull request #190227 from dksimpson/azure-docs-pr-20220126-validation-6
Validation bulk update: Fix code tags for Azure CLI code blocks - batch 5
2 parents 1a4ea96 + 78c092f commit 4048c87

14 files changed

+57
-39
lines changed

articles/azure-functions/bring-dependency-to-functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ First, you need to create an Azure Storage Account. In the account, you also nee
173173
174174
After you created the storage account and file share, use the [az webapp config storage-account add](/cli/azure/webapp/config/storage-account#az_webapp_config_storage_account_add) command to attach the file share to your functions app, as shown in the following example.
175175
176-
```console
176+
```azurecli
177177
az webapp config storage-account add \
178178
--name < Function-App-Name > \
179179
--resource-group < Resource-Group > \

articles/azure-functions/functions-reference-node.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ For Windows function apps, target the version in Azure by setting the `WEBSITE_N
544544

545545
For Linux function apps, run the following Azure CLI command to update the Node version.
546546

547-
```bash
547+
```azurecli
548548
az functionapp config set --linux-fx-version "node|14" --name "<MY_APP_NAME>" --resource-group "<MY_RESOURCE_GROUP_NAME>"
549549
```
550550

articles/azure-functions/functions-versions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ A pre-upgrade validator is available to help identify potential issues when migr
128128

129129
To migrate an app from 3.x to 4.x, set the `FUNCTIONS_EXTENSION_VERSION` application setting to `~4` with the following Azure CLI command:
130130

131-
```bash
131+
```azurecli
132132
az functionapp config appsettings set --settings FUNCTIONS_EXTENSION_VERSION=~4 -n <APP_NAME> -g <RESOURCE_GROUP_NAME>
133133
134134
# For Windows function apps only, also enable .NET 6.0 that is needed by the runtime

articles/azure-monitor/containers/container-insights-enable-aks-policy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Monitoring Addon require following roles on the managed identity used by Azure P
5555

5656
2. Create the policy definition with the following command:
5757

58-
``` sh
58+
```azurecli
5959
az cloud set -n <AzureCloud | AzureChinaCloud | AzureUSGovernment> # set the Azure cloud
6060
az login # login to cloud environment
6161
az account set -s <subscriptionId>
@@ -66,7 +66,7 @@ Monitoring Addon require following roles on the managed identity used by Azure P
6666

6767
- Create the policy assignment with the following command:
6868

69-
``` sh
69+
```azurecli
7070
az policy assignment create --name aks-monitoring-addon --policy "(Preview)AKS-Monitoring-Addon" --assign-identity --identity-scope /subscriptions/<subscriptionId> --role Contributor --scope /subscriptions/<subscriptionId> --location <locatio> --role Contributor --scope /subscriptions/<subscriptionId> -p "{ \"workspaceResourceId\": { \"value\": \"/subscriptions/<subscriptionId>/resourcegroups/<resourceGroupName>/providers/microsoft.operationalinsights/workspaces/<workspaceName>\" } }"
7171
```
7272

articles/azure-monitor/containers/container-insights-enable-arc-enabled-clusters.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Run the following commands to locate the full Azure Resource Manager identifier
6969
7070
3. The following example displays the list of workspaces in your subscriptions in the default JSON format.
7171
72-
```
72+
```azurecli
7373
az resource list --resource-type Microsoft.OperationalInsights/workspaces -o json
7474
```
7575
@@ -183,7 +183,7 @@ az k8s-extension show --name azuremonitor-containers --cluster-name <cluster-nam
183183

184184
The following command only deletes the extension instance, but doesn't delete the Log Analytics workspace. The data within the Log Analytics resource is left intact.
185185

186-
```bash
186+
```azurecli
187187
az k8s-extension delete --name azuremonitor-containers --cluster-type connectedClusters --cluster-name <cluster-name> --resource-group <resource-group>
188188
```
189189

articles/azure-resource-manager/bicep/deploy-cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ To pass in an object, for example, to set tags, use JSON. For example, your Bice
143143

144144
In this case, you can pass in a JSON string to set the parameter as shown in the following Bash script:
145145

146-
```bash
146+
```azurecli
147147
tags='{"Owner":"Contoso","Cost Center":"2345-324"}'
148148
az deployment group create --name addstorage --resource-group myResourceGroup \
149149
--template-file $bicepFile \

articles/azure-resource-manager/templates/deploy-cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ To pass in an object, for example, to set tags, use JSON. For example, your temp
226226

227227
In this case, you can pass in a JSON string to set the parameter as shown in the following Bash script:
228228

229-
```bash
229+
```azurecli
230230
tags='{"Owner":"Contoso","Cost Center":"2345-324"}'
231231
az deployment group create --name addstorage --resource-group myResourceGroup \
232232
--template-file $templateFile \

articles/azure-sql-edge/tutorial-deploy-azure-resources.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,14 +243,14 @@ Deploy the Azure resources required by this Azure SQL Edge tutorial. These can b
243243
244244
15. Update the connection string in the IoT Edge configuration file on the Edge device. The following commands use Azure CLI for deployments.
245245
246-
```powershell
246+
```azurecli
247247
$script = "/etc/iotedge/configedge.sh '" + $connString + "'"
248248
az vm run-command invoke -g $ResourceGroup -n $EdgeDeviceId --command-id RunShellScript --script $script
249249
```
250250
251251
16. Create an Azure Machine Learning workspace within the resource group.
252252
253-
```powershell
253+
```azurecli
254254
az ml workspace create -w $MyWorkSpace -g $ResourceGroup
255255
```
256256

articles/azure-vmware/attach-disk-pools-to-azure-vmware-solution-hosts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ az extension add --name vmware
115115

116116
Create and attach an iSCSI datastore in the Azure VMware Solution private cloud cluster using `Microsoft.StoragePool` provided iSCSI target. The disk pool attaches to a virtual network through a delegated subnet, which is done with the Microsoft.StoragePool/diskPools resource provider. If the subnet isn't delegated, the deployment fails.
117117

118-
```bash
118+
```azurecli
119119
#Initialize input parameters
120120
resourceGroupName='<yourRGName>'
121121
name='<desiredDataStoreName>'

articles/azure-web-pubsub/quickstart-serverless.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -360,35 +360,35 @@ Use the following commands to create these items.
360360
361361
1. If you haven't done so already, sign in to Azure:
362362
363-
```bash
363+
```azurecli
364364
az login
365365
```
366366
367367
1. Create a resource group or you can skip by re-using the one of Azure Web PubSub service:
368368
369-
```bash
369+
```azurecli
370370
az group create -n WebPubSubFunction -l <REGION>
371371
```
372372
373373
1. Create a general-purpose storage account in your resource group and region:
374374
375-
```bash
375+
```azurecli
376376
az storage account create -n <STORAGE_NAME> -l <REGION> -g WebPubSubFunction
377377
```
378378
379379
1. Create the function app in Azure:
380380
381381
# [JavaScript](#tab/javascript)
382382
383-
```bash
383+
```azurecli
384384
az functionapp create --resource-group WebPubSubFunction --consumption-plan-location <REGION> --runtime node --runtime-version 14 --functions-version 3 --name <FUNCIONAPP_NAME> --storage-account <STORAGE_NAME>
385385
```
386386
> [!NOTE]
387387
> If you're running the function version other than v3.0, please check [Azure Functions runtime versions documentation](../azure-functions/functions-versions.md#languages) to set `--runtime-version` parameter to supported value.
388388
389389
# [C#](#tab/csharp)
390390
391-
```bash
391+
```azurecli
392392
az functionapp create --resource-group WebPubSubFunction --consumption-plan-location <REGION> --runtime dotnet --functions-version 3 --name <FUNCIONAPP_NAME> --storage-account <STORAGE_NAME>
393393
```
394394

0 commit comments

Comments
 (0)