Skip to content

Commit 8b71c28

Browse files
authored
Merge pull request #104276 from TimShererWithAquent/us1669724a
[Azure CLI code blocks]
2 parents 5bbffed + 852ac41 commit 8b71c28

7 files changed

+36
-35
lines changed

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

Lines changed: 2 additions & 2 deletions
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
@@ -192,7 +192,7 @@ The Log Analytics workspace has to be created before you enable monitoring using
192192
193193
The output resembles the following:
194194
195-
```azurecli
195+
```output
196196
provisioningState : Succeeded
197197
```
198198

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

Lines changed: 10 additions & 10 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
@@ -77,7 +77,7 @@ If you would rather integrate with an existing workspace, perform the following
7777
7878
The output will resemble the following:
7979
80-
```azurecli
80+
```output
8181
provisioningState : Succeeded
8282
```
8383
@@ -268,7 +268,7 @@ If you choose to use the Azure CLI, you first need to install and use the CLI lo
268268
269269
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:
270270
271-
```powershell
271+
```output
272272
provisioningState : Succeeded
273273
```
274274
@@ -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
@@ -302,7 +302,7 @@ kubectl get ds omsagent --namespace=kube-system
302302
303303
The output should resemble the following, which indicates that it was deployed properly:
304304
305-
```
305+
```output
306306
User@aksuser:~$ kubectl get ds omsagent --namespace=kube-system
307307
NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE
308308
omsagent 2 2 2 2 2 beta.kubernetes.io/os=linux 1d
@@ -316,7 +316,7 @@ kubectl get deployment omsagent-rs -n=kube-system
316316

317317
The output should resemble the following, which indicates that it was deployed properly:
318318

319-
```
319+
```output
320320
User@aksuser:~$ kubectl get deployment omsagent-rs -n=kube-system
321321
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
322322
omsagent 1 1 1 1 3h
@@ -332,7 +332,7 @@ kubectl get ds omsagent --namespace=kube-system
332332

333333
The output should resemble the following, which indicates that it was deployed properly:
334334

335-
```
335+
```output
336336
User@aksuser:~$ kubectl get ds omsagent --namespace=kube-system
337337
NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE
338338
omsagent 2 2 2 2 2 beta.kubernetes.io/os=linux 1d
@@ -348,7 +348,7 @@ az aks show -g <resourceGroupofAKSCluster> -n <nameofAksCluster>
348348

349349
After a few minutes, the command completes and returns JSON-formatted information about solution. The results of the command should show the monitoring add-on profile and resembles the following example output:
350350

351-
```
351+
```output
352352
"addonProfiles": {
353353
"omsagent": {
354354
"config": {

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

Lines changed: 2 additions & 2 deletions
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

@@ -118,7 +118,7 @@ New-AzResourceGroupDeployment -Name opt-out -ResourceGroupName <ResourceGroupNam
118118

119119
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:
120120

121-
```powershell
121+
```output
122122
ProvisioningState : Succeeded
123123
```
124124

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

Lines changed: 2 additions & 2 deletions
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

@@ -153,7 +153,7 @@ New-AzResourceGroupDeployment -Name opt-out -ResourceGroupName <ResourceGroupNam
153153

154154
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:
155155

156-
```powershell
156+
```output
157157
ProvisioningState : Succeeded
158158
```
159159

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: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,13 @@ ACR supports Docker Registry HTTP API V2. The APIs can be accessed at
110110

111111
If you are on bash:
112112

113-
```bash
113+
```azurecli
114114
az acr repository show-manifests -n myRegistry --repository myRepository --query "[?tags[0]==null].digest" -o tsv | xargs -I% az acr repository delete -n myRegistry -t myRepository@%
115115
```
116116

117117
For Powershell:
118118

119-
```powershell
119+
```azurecli
120120
az acr repository show-manifests -n myRegistry --repository myRepository --query "[?tags[0]==null].digest" -o tsv | %{ az acr repository delete -n myRegistry -t myRepository@$_ }
121121
```
122122

@@ -147,13 +147,13 @@ docker push myregistry.azurecr.io/1gb:latest
147147

148148
You should be able to see that the storage usage has increased in the Azure portal, or you can query usage using the CLI.
149149

150-
```bash
150+
```azurecli
151151
az acr show-usage -n myregistry
152152
```
153153

154154
Delete the image using the Azure CLI or portal and check the updated usage in a few minutes.
155155

156-
```bash
156+
```azurecli
157157
az acr repository delete -n myregistry --image 1gb
158158
```
159159

@@ -212,12 +212,12 @@ 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

220-
```
220+
```azurecli
221221
az role assignment create --scope resource_id --role AcrPull --assignee 00000000-0000-0000-0000-000000000000
222222
```
223223

@@ -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)