Skip to content

Commit 991795c

Browse files
committed
fix commands
1 parent 00210bc commit 991795c

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

articles/azure-resource-manager/troubleshooting/quickstart-troubleshoot-bicep-deployment.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,20 @@ Now that you've fixed the validation error, it's time to deploy the file. But, y
103103

104104
```azurecli
105105
az group create --name troubleshootRG --location westus
106-
az deployment group create --resource-group troubleshootRG --template-file troubleshoot.bicep --parameters prefixName=longNamewith##Charactersthatarenotallowed
106+
az deployment group create \
107+
--resource-group troubleshootRG \
108+
--template-file troubleshoot.bicep \
109+
--parameters prefixName=longNamewith!!Charactersthatarenotallowed
107110
```
108111

109112
# [PowerShell](#tab/azure-powershell)
110113

111114
```azurepowershell
112115
New-AzResourceGroup -Name troubleshootRG -Location westus
113-
New-AzResourceGroupDeployment -ResourceGroupName troubleshootRG -TemplateFile troubleshoot.bicep -prefixName longNamewith##Charactersthatarenotallowed
116+
New-AzResourceGroupDeployment `
117+
-ResourceGroupName troubleshootRG `
118+
-TemplateFile troubleshoot.bicep `
119+
-prefixName longNamewith!!Charactersthatarenotallowed
114120
```
115121

116122
---
@@ -183,6 +189,8 @@ resource storageAccount 'Microsoft.Storage/storageAccounts@2021-06-01' = {
183189
output storageAccountName string = storageAccountName
184190
```
185191

192+
You can deploy that Bicep file without any errors.
193+
186194
## Clean up resources
187195

188196
When the Azure resources are no longer needed, delete the resource group. You can delete the resource group from Cloud Shell or the portal.

0 commit comments

Comments
 (0)