Skip to content

Commit 825b33e

Browse files
Azure CLI code blocks
1 parent 3ee8e84 commit 825b33e

7 files changed

+22
-21
lines changed

articles/azure-monitor/insights/container-insights-azure-redhat-setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ The Log Analytics workspace has to be created before you enable monitoring using
108108
109109
The output resembles the following:
110110
111-
```azurecli
111+
```output
112112
provisioningState : Succeeded
113113
```
114114

articles/azure-monitor/insights/container-insights-enable-existing-clusters.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ az aks enable-addons -a monitoring -n MyExistingManagedCluster -g MyExistingMana
3131

3232
The output will resemble the following:
3333

34-
```azurecli
34+
```output
3535
provisioningState : Succeeded
3636
```
3737

@@ -47,7 +47,7 @@ If you would rather integrate with an existing workspace, perform the following
4747
4848
The output will resemble the following:
4949
50-
```azurecli
50+
```output
5151
Name CloudName SubscriptionId State IsDefault
5252
------------------------------------ ----------- ------------------------------------ ------- -----------
5353
Microsoft Azure AzureCloud 68627f8c-91fO-4905-z48q-b032a81f8vy0 Enabled True
@@ -63,7 +63,7 @@ If you would rather integrate with an existing workspace, perform the following
6363
6464
3. The following example displays the list of workspaces in your subscriptions in the default JSON format.
6565
66-
```
66+
```azurecli
6767
az resource list --resource-type Microsoft.OperationalInsights/workspaces -o json
6868
```
6969
@@ -282,7 +282,7 @@ If you choose to use the Azure CLI, you first need to install and use the CLI lo
282282
283283
The configuration change can take a few minutes to complete. When it's completed, a message is displayed that's similar to the following and includes the result:
284284
285-
```azurecli
285+
```output
286286
provisioningState : Succeeded
287287
```
288288

articles/azure-monitor/insights/container-insights-optout-openshift.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ az group deployment create --resource-group <ResourceGroupName> --template-file
100100

101101
The configuration change can take a few minutes to complete. When it's completed, a message similar to the following that includes the result is returned:
102102

103-
```azurecli
103+
```output
104104
ProvisioningState : Succeeded
105105
```
106106

articles/azure-monitor/insights/container-insights-optout.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ az group deployment create --resource-group <ResourceGroupName> --template-file
135135

136136
The configuration change can take a few minutes to complete. When it's completed, a message similar to the following that includes the result is returned:
137137

138-
```azurecli
138+
```output
139139
ProvisioningState : Succeeded
140140
```
141141

articles/container-instances/container-instances-volume-gitrepo.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,13 @@ To mount a gitRepo volume for a private Git repository, specify credentials in t
7777

7878
For example, the Azure CLI `--gitrepo-url` parameter for a private GitHub repository would appear similar to the following (where "gituser" is the GitHub user name, and "abcdef1234fdsa4321abcdef" is the user's personal access token):
7979

80-
```azurecli
80+
```console
8181
--gitrepo-url https://gituser:[email protected]/GitUser/some-private-repository
8282
```
8383

8484
For an Azure Repos Git repository, specify any user name (you can use "azurereposuser" as in the following example) in combination with a valid PAT:
8585

86-
```azurecli
86+
```console
8787
--gitrepo-url https://azurereposuser:[email protected]/your-org/_git/some-private-repository
8888
```
8989

articles/container-registry/container-registry-faq.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,8 @@ ACR supports [custom roles](container-registry-roles.md) that provide different
212212
Then you can assign the `AcrPull` or `AcrPush` role to a user (the following example uses `AcrPull`):
213213

214214
```azurecli
215-
az role assignment create --scope resource_id --role AcrPull --assignee [email protected]
216-
```
215+
az role assignment create --scope resource_id --role AcrPull --assignee [email protected]
216+
```
217217

218218
Or, assign the role to a service principle identified by its application ID:
219219

@@ -235,9 +235,9 @@ The assignee is then able to authenticate and access images in the registry.
235235
az acr repository list -n myRegistry
236236
```
237237

238-
To pull an image:
239-
240-
```azurecli
238+
* To pull an image:
239+
240+
```console
241241
docker pull myregistry.azurecr.io/hello-world
242242
```
243243

@@ -271,9 +271,10 @@ To troubleshoot common environment and registry issues, see [Check the health of
271271
- If `docker pull` fails continuously, then there could be a problem with the Docker daemon. The problem can generally be mitigated by restarting the Docker daemon.
272272
- If you continue to see this issue after restarting Docker daemon, then the problem could be some network connectivity issues with the machine. To check if general network on the machine is healthy, run the following command to test endpoint connectivity. The minimum `az acr` version that contains this connectivity check command is 2.2.9. Upgrade your Azure CLI if you are using an older version.
273273

274-
```azurecli
275-
az acr check-health -n myRegistry
276-
```
274+
```azurecli
275+
az acr check-health -n myRegistry
276+
```
277+
277278
- You should always have a retry mechanism on all Docker client operations.
278279

279280
### Docker pull is slow

articles/logic-apps/logic-apps-enterprise-integration-create-integration-account.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,13 @@ To make this change, you can use either the Azure portal by following the steps
135135

136136
1. At the command prompt, enter the [**az resource** command](https://docs.microsoft.com/cli/azure/resource?view=azure-cli-latest#az-resource-update), and set `skuName` to the higher tier that you want.
137137

138-
```Azure CLI
138+
```azurecli
139139
az resource update --resource-group {ResourceGroupName} --resource-type Microsoft.Logic/integrationAccounts --name {IntegrationAccountName} --subscription {AzureSubscriptionID} --set sku.name={SkuName}
140140
```
141141

142142
For example, if you have the Basic tier, you can set `skuName` to `Standard`:
143143

144-
```Azure CLI
144+
```azurecli
145145
az resource update --resource-group FabrikamIntegration-RG --resource-type Microsoft.Logic/integrationAccounts --name Fabrikam-Integration --subscription XXXXXXXXXXXXXXXXX --set sku.name=Standard
146146
```
147147

@@ -159,13 +159,13 @@ To make this change, use the [Azure CLI](https://docs.microsoft.com/cli/azure/ge
159159

160160
1. At the command prompt, enter the [**az resource** command](https://docs.microsoft.com/cli/azure/resource?view=azure-cli-latest#az-resource-update) and set `skuName` to the lower tier that you want.
161161

162-
```Azure CLI
162+
```azurecli
163163
az resource update --resource-group <resourceGroupName> --resource-type Microsoft.Logic/integrationAccounts --name <integrationAccountName> --subscription <AzureSubscriptionID> --set sku.name=<skuName>
164164
```
165165

166166
For example, if you have the Standard tier, you can set `skuName` to `Basic`:
167167

168-
```Azure CLI
168+
```azurecli
169169
az resource update --resource-group FabrikamIntegration-RG --resource-type Microsoft.Logic/integrationAccounts --name Fabrikam-Integration --subscription XXXXXXXXXXXXXXXXX --set sku.name=Basic
170170
```
171171

0 commit comments

Comments
 (0)