Skip to content

Commit 1cd60c9

Browse files
authored
Merge pull request #118159 from rdeveen/patch-8
Fix deny-settings-excluded-principals and DenySettingsExcludedPrincipal
2 parents 29392bd + d26b3e4 commit 1cd60c9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

articles/azure-resource-manager/bicep/deployment-stacks.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ New-AzResourceGroupDeploymentStack `
626626
-TemplateFile "<bicep-file-name>" `
627627
-DenySettingsMode "DenyDelete" `
628628
-DenySettingsExcludedAction "Microsoft.Compute/virtualMachines/write Microsoft.StorageAccounts/delete" `
629-
-DenySettingsExcludedPrincipal "<object-id>" "<object-id>"
629+
-DenySettingsExcludedPrincipal "<object-id> <object-id>"
630630
```
631631

632632
# [CLI](#tab/azure-cli)
@@ -638,7 +638,7 @@ az stack group create \
638638
--template-file '<bicep-file-name>' \
639639
--deny-settings-mode 'denyDelete' \
640640
--deny-settings-excluded-actions 'Microsoft.Compute/virtualMachines/write Microsoft.StorageAccounts/delete' \
641-
--deny-settings-excluded-principals '<object-id>' '<object-id>'
641+
--deny-settings-excluded-principals '<object-id> <object-id>'
642642
```
643643

644644
# [Portal](#tab/azure-portal)
@@ -658,7 +658,7 @@ New-AzSubscriptionDeploymentStack `
658658
-TemplateFile "<bicep-file-name>" `
659659
-DenySettingsMode "DenyDelete" `
660660
-DenySettingsExcludedAction "Microsoft.Compute/virtualMachines/write Microsoft.StorageAccounts/delete" `
661-
-DenySettingsExcludedPrincipal "<object-id>" "<object-id>"
661+
-DenySettingsExcludedPrincipal "<object-id> <object-id>"
662662
```
663663

664664
Use the `DeploymentResourceGroupName` parameter to specify the resource group name at which the deployment stack is created. If a scope isn't specified, it uses the scope of the deployment stack.
@@ -672,7 +672,7 @@ az stack sub create \
672672
--template-file '<bicep-file-name>' \
673673
--deny-settings-mode 'denyDelete' \
674674
--deny-settings-excluded-actions 'Microsoft.Compute/virtualMachines/write Microsoft.StorageAccounts/delete' \
675-
--deny-settings-excluded-principals '<object-id>' '<object-id>'
675+
--deny-settings-excluded-principals '<object-id> <object-id>'
676676
```
677677

678678
Use the `deployment-resource-group` parameter to specify the resource group at which the deployment stack is created. If a scope isn't specified, it uses the scope of the deployment stack.
@@ -694,7 +694,7 @@ New-AzManagmentGroupDeploymentStack `
694694
-TemplateFile "<bicep-file-name>" `
695695
-DenySettingsMode "DenyDelete" `
696696
-DenySettingsExcludedActions "Microsoft.Compute/virtualMachines/write Microsoft.StorageAccounts/delete" `
697-
-DenySettingsExcludedPrincipal "<object-id>" "<object-id>"
697+
-DenySettingsExcludedPrincipal "<object-id> <object-id>"
698698
```
699699

700700
Use the `DeploymentSubscriptionId ` parameter to specify the subscription ID at which the deployment stack is created. If a scope isn't specified, it uses the scope of the deployment stack.
@@ -708,7 +708,7 @@ az stack mg create \
708708
--template-file '<bicep-file-name>' \
709709
--deny-settings-mode 'denyDelete' \
710710
--deny-settings-excluded-actions 'Microsoft.Compute/virtualMachines/write Microsoft.StorageAccounts/delete' \
711-
--deny-settings-excluded-principals '<object-id>' '<object-id>'
711+
--deny-settings-excluded-principals '<object-id> <object-id>'
712712
```
713713

714714
Use the `deployment-subscription ` parameter to specify the subscription ID at which the deployment stack is created. If a scope isn't specified, it uses the scope of the deployment stack.

0 commit comments

Comments
 (0)