Skip to content

Commit 64d2fee

Browse files
committed
remove interactive tags from powershell code segments.
1 parent 0fff46e commit 64d2fee

File tree

7 files changed

+67
-66
lines changed

7 files changed

+67
-66
lines changed

articles/container-apps/background-processing.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ A Log Analytics workspace is required for the Container Apps environment. The f
4444

4545
Note that the `Get-AzOperationalInsightsWorkspaceSharedKey` command may result in a warning message, however the command will still succeed.
4646

47-
```azurepowershell-interactive
47+
```azurepowershell
4848
$WorkspaceArgs = @{
4949
Name = 'myworkspace'
5050
ResourceGroupName = $ResourceGroupName
@@ -59,7 +59,7 @@ $WorkspaceSharedKey = (Get-AzOperationalInsightsWorkspaceSharedKey -ResourceGrou
5959

6060
To create the environment, run the following command:
6161

62-
```azurepowershell-interactive
62+
```azurepowershell
6363
$EnvArgs = @{
6464
EnvName = $ContainerAppsEnvironment
6565
ResourceGroupName = $ResourceGroupName
@@ -86,7 +86,7 @@ STORAGE_ACCOUNT_NAME="<storage account name>"
8686

8787
# [Azure PowerShell](#tab/azure-powershell)
8888

89-
```azurepowershell-interactive
89+
```azurepowershell
9090
$StorageAcctName = "<storage account name>"
9191
```
9292

@@ -107,7 +107,7 @@ az storage account create \
107107

108108
# [Azure PowerShell](#tab/azure-powershell)
109109

110-
```azurepowershell-interactive
110+
```azurepowershell
111111
$StorageAcctArgs = @{
112112
Name = $StorageAcctName
113113
ResourceGroupName = $ResourceGroupName
@@ -132,7 +132,7 @@ QUEUE_CONNECTION_STRING=`az storage account show-connection-string -g $RESOURCE_
132132

133133
Here we use Azure CLI as there isn't an equivalent PowerShell cmdlet to get the connection string for the storage account queue.
134134

135-
```azurepowershell-interactive
135+
```azurepowershell
136136
$QueueConnectionString = (Get-AzStorageAccount -ResourceGroupName $ResourceGroupName -Name $StorageAcctName).Context.ConnectionString
137137
```
138138
<!--
@@ -155,7 +155,7 @@ az storage queue create \
155155

156156
# [Azure PowerShell](#tab/azure-powershell)
157157

158-
```azurepowershell-interactive
158+
```azurepowershell
159159
$Queue = New-AzStorageQueue -Name 'myqueue' -Context $StorageAcct.Context
160160
```
161161

@@ -174,7 +174,7 @@ az storage message put \
174174

175175
# [Azure PowerShell](#tab/azure-powershell)
176176

177-
```azurepowershell-interactive
177+
```azurepowershell
178178
$QueueMessage = [Microsoft.Azure.Storage.Queue.CloudQueueMessage]::new("Hello Queue Reader App")
179179
$Queue.CloudQueue.AddMessageAsync($QueueMessage).GetAwaiter().GetResult()
180180
```
@@ -281,7 +281,7 @@ az deployment group create --resource-group "$RESOURCE_GROUP" \
281281

282282
# [Azure PowerShell](#tab/azure-powershell)
283283

284-
```azurepowershell-interactive
284+
```azurepowershell
285285
$Params = @{
286286
environment_name = $ContainerAppsEnvironment
287287
location = $Location
@@ -322,7 +322,7 @@ az monitor log-analytics query \
322322

323323
# [Azure PowerShell](#tab/azure-powershell)
324324

325-
```azurepowershell-interactive
325+
```azurepowershell
326326
$queryResults = Invoke-AzOperationalInsightsQuery -WorkspaceId $WorkspaceId -Query "ContainerAppConsoleLogs_CL | where ContainerAppName_s == 'queuereader' and Log_s contains 'Message ID' | project Time=TimeGenerated, AppName=ContainerAppName_s, Revision=RevisionName_s, Container=ContainerName_s, Message=Log_s | take 5"
327327
$queryResults.Results
328328
```
@@ -348,7 +348,7 @@ az group delete \
348348

349349
# [Azure PowerShell](#tab/azure-powershell)
350350

351-
```azurepowershell-interactive
351+
```azurepowershell
352352
Remove-AzResourceGroup -Name $ResourceGroupName -Force
353353
```
354354

articles/container-apps/get-started-existing-container-image.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ A Log Analytics workspace is required for the Container Apps environment. The f
4646

4747
Note that the `Get-AzOperationalInsightsWorkspaceSharedKey` will result in a warning, but the command will still succeed.
4848

49-
```azurepowershell-interactive
49+
```azurepowershell
5050
$WorkspaceArgs = @{
5151
Name = 'myworkspace'
5252
ResourceGroupName = $ResourceGroupName
@@ -61,7 +61,7 @@ $WorkspaceSharedKey = (Get-AzOperationalInsightsWorkspaceSharedKey -ResourceGrou
6161

6262
To create the environment, run the following command:
6363

64-
```azurepowershell-interactive
64+
```azurepowershell
6565
$EnvArgs = @{
6666
EnvName = $ContainerAppsEnvironment
6767
ResourceGroupName = $ResourceGroupName
@@ -118,7 +118,7 @@ az containerapp create \
118118

119119
# [Azure PowerShell](#tab/azure-powershell)
120120

121-
```azurepowershell-interactive
121+
```azurepowershell
122122
$ContainerImageName = "<CONTAINER_IMAGE_NAME>"
123123
$RegistryServer = "<REGISTRY_SERVER>"
124124
$RegistryUsername = "<REGISTRY_USERNAME>"
@@ -127,7 +127,7 @@ $RegistryPassword = "<REGISTRY_PASSWORD>"
127127

128128
(Replace the \<placeholders\> with your values.)
129129

130-
```azurepowershell-interactive
130+
```azurepowershell
131131
$EnvId = (Get-AzContainerAppManagedEnv -ResourceGroupName $ResourceGroupName -EnvName $ContainerAppsEnvironment).Id
132132
133133
$TemplateObj = New-AzContainerAppTemplateObject -Name my-container-app -Image $ContainerImageName
@@ -176,13 +176,13 @@ If you have enabled ingress on your container app, you can add `--query properti
176176

177177
# [Azure PowerShell](#tab/azure-powershell)
178178

179-
```azurepowershell-interactive
179+
```azurepowershell
180180
$TemplateObj = New-AzContainerAppTemplateObject -Name my-container-app -Image "<REGISTRY_CONTAINER_NAME>"
181181
```
182182

183183
(Replace the \<REGISTRY_CONTAINER_NAME\> with your value.)
184184

185-
```azurepowershell-interactive
185+
```azurepowershell
186186
$EnvId = (Get-AzContainerAppManagedEnv -ResourceGroupName $ResourceGroupName -EnvName $ContainerAppsEnvironment).Id
187187
188188
$ContainerAppArgs = @{
@@ -220,7 +220,7 @@ az monitor log-analytics query \
220220

221221
# [Azure PowerShell](#tab/azure-powershell)
222222

223-
```azurepowershell-interactive
223+
```azurepowershell
224224
$queryResults = Invoke-AzOperationalInsightsQuery -WorkspaceId $WorkspaceId -Query "ContainerAppConsoleLogs_CL | where ContainerAppName_s == 'my-container-app' | project ContainerAppName_s, Log_s, TimeGenerated"
225225
$queryResults.Results
226226
```
@@ -242,7 +242,7 @@ az group delete --name $RESOURCE_GROUP
242242

243243
# [Azure PowerShell](#tab/azure-powershell)
244244

245-
```azurepowershell-interactive
245+
```azurepowershell
246246
Remove-AzResourceGroup -Name $ResourceGroupName -Force
247247
```
248248

articles/container-apps/get-started.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ az containerapp env create \
4040

4141
A Log Analytics workspace is required for the Container Apps environment. The following commands create a Log Analytics workspace and save the workspace ID and primary shared key to variables.
4242

43-
```azurepowershell-interactive
43+
```azurepowershell
4444
$WorkspaceArgs = @{
4545
Name = 'myworkspace'
4646
ResourceGroupName = $ResourceGroupName
@@ -55,7 +55,7 @@ $WorkspaceSharedKey = (Get-AzOperationalInsightsWorkspaceSharedKey -ResourceGrou
5555

5656
To create the environment, run the following command:
5757

58-
```azurepowershell-interactive
58+
```azurepowershell
5959
$EnvArgs = @{
6060
EnvName = $ContainerAppsEnvironment
6161
ResourceGroupName = $ResourceGroupName
@@ -94,7 +94,7 @@ By setting `--ingress` to `external`, you make the container app available to pu
9494

9595
# [Azure PowerShell](#tab/azure-powershell)
9696

97-
```azurepowershell-interactive
97+
```azurepowershell
9898
$ImageParams = @{
9999
Name = 'my-container-app'
100100
Image = 'mcr.microsoft.com/azuredocs/containerapps-helloworld:latest'
@@ -133,7 +133,7 @@ The `create` command returned the fully qualified domain name for the container
133133

134134
Get the fully qualified domain name for the container app.
135135

136-
```azurepowershell-interactive
136+
```azurepowershell
137137
(Get-AzContainerApp -Name $AppArgs.Name -ResourceGroupName $ResourceGroupName).IngressFqdn
138138
```
139139

@@ -160,7 +160,7 @@ az group delete --name $RESOURCE_GROUP
160160

161161
# [Azure PowerShell](#tab/azure-powershell)
162162

163-
```azurepowershell-interactive
163+
```azurepowershell
164164
Remove-AzResourceGroup -Name $ResourceGroupName -Force
165165
```
166166

articles/container-apps/microservices-dapr.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ A Log Analytics workspace is required for the Container Apps environment. The f
5959

6060
Note that the `Get-AzOperationalInsightsWorkspaceSharedKey` may result in a warning, but the command will still succeed.
6161

62-
```azurepowershell-interactive
62+
```azurepowershell
6363
$WorkspaceArgs = @{
6464
Name = 'myworkspace'
6565
ResourceGroupName = $ResourceGroupName
@@ -74,7 +74,7 @@ $WorkspaceSharedKey = (Get-AzOperationalInsightsWorkspaceSharedKey -ResourceGrou
7474

7575
To create the environment, run the following command:
7676

77-
```azurepowershell-interactive
77+
```azurepowershell
7878
$EnvArgs = @{
7979
EnvName = $ContainerAppsEnvironment
8080
ResourceGroupName = $ResourceGroupName
@@ -105,7 +105,7 @@ STORAGE_ACCOUNT_NAME="<storage account name>"
105105

106106
# [Azure PowerShell](#tab/azure-powershell)
107107

108-
```azurepowershell-interactive
108+
```azurepowershell
109109
$StorageAcctName = "<storage account name>"
110110
```
111111

@@ -124,7 +124,7 @@ STORAGE_ACCOUNT_CONTAINER="mycontainer"
124124

125125
Set the storage account container name.
126126

127-
```azurepowershell-interactive
127+
```azurepowershell
128128
$StorageAcctContainerName = 'mycontainer'
129129
```
130130

@@ -145,7 +145,7 @@ az storage account create \
145145

146146
# [Azure PowerShell](#tab/azure-powershell)
147147

148-
```azurepowershell-interactive
148+
```azurepowershell
149149
$StorageAcctArgs = @{
150150
Name = $StorageAcctName
151151
ResourceGroupName = $ResourceGroupName
@@ -168,7 +168,7 @@ STORAGE_ACCOUNT_KEY=`az storage account keys list --resource-group $RESOURCE_GRO
168168

169169
# [Azure PowerShell](#tab/azure-powershell)
170170

171-
```azurepowershell-interactive
171+
```azurepowershell
172172
$StorageAcctKey = (Get-AzStorageAccountKey -ResourceGroupName $ResourceGroupName -Name $StorageAcctName)| Where-Object {$_.KeyName -eq "key1"}
173173
```
174174

@@ -234,8 +234,9 @@ az containerapp env dapr-component set \
234234

235235
# [Azure PowerShell](#tab/azure-powershell)
236236

237-
```azurepowershell-interactive
238-
$AcctName = New-AzContainerAppDaprMetadataObject -Name "accountName" -Value $StorageAcctContainerName
237+
```azurepowershell
238+
239+
$AcctName = New-AzContainerAppDaprMetadataObject -Name "accountName" -Value $StorageAcctName
239240
240241
$AcctKey = New-AzContainerAppDaprMetadataObject -Name "accountKey" -SecretRef "account-key"
241242
@@ -290,7 +291,7 @@ This command deploys:
290291

291292
# [Azure PowerShell](#tab/azure-powershell)
292293

293-
```azurepowershell-interactive
294+
```azurepowershell
294295
$EnvId = (Get-AzContainerAppManagedEnv -ResourceGroupName $ResourceGroupName -EnvName $ContainerAppsEnvironment).Id
295296
296297
$EnvVars = New-AzContainerAppEnvironmentVarObject -Name APP_PORT -Value 3000
@@ -348,7 +349,7 @@ az containerapp create \
348349

349350
# [Azure PowerShell](#tab/azure-powershell)
350351

351-
```azurepowershell-interactive
352+
```azurepowershell
352353
353354
$TemplateArgs = @{
354355
Name = 'pythonapp'
@@ -417,7 +418,7 @@ az monitor log-analytics query \
417418

418419
# [Azure PowerShell](#tab/azure-powershell)
419420

420-
```azurepowershell-interactive
421+
```azurepowershell
421422
$queryResults = Invoke-AzOperationalInsightsQuery -WorkspaceId $WorkspaceId -Query "ContainerAppConsoleLogs_CL | where ContainerAppName_s == 'nodeapp' and (Log_s contains 'persisted' or Log_s contains 'order') | project ContainerAppName_s, Log_s, TimeGenerated | take 5 "
422423
$queryResults.Results
423424
@@ -452,7 +453,7 @@ az group delete --resource-group $RESOURCE_GROUP
452453

453454
# [Azure PowerShell](#tab/azure-powershell)
454455

455-
```azurepowershell-interactive
456+
```azurepowershell
456457
Remove-AzResourceGroup -Name $ResourceGroupName -Force
457458
```
458459

0 commit comments

Comments
 (0)