Skip to content

Commit aeeddbc

Browse files
committed
update
1 parent 6e60c06 commit aeeddbc

File tree

1 file changed

+38
-2
lines changed

1 file changed

+38
-2
lines changed

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

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,9 +416,45 @@ When updating a deployment stack, you might encounter the following stack-out-of
416416
The deployment stack '{0}' may not have an accurate list of managed resources. To ensure no resources are accidentally deleted, please check that the managed resource list does not have any additional values. If there is any uncertainty, we recommend redeploying the stack with the same template and parameters as the current iteration. To bypass this warning, please specify the 'BypassStackOutOfSyncError' flag.
417417
```
418418

419-
The `BypassStackOutOfSyncError` swith in Azure PowerShell ( or `bypass-stack-out-of-sync-error` in Azure CLI) should only be used after thoroughly review the list of resources in the stack before re-running the command. This switch should never be used by default.
419+
You can obtain an accurate list of the resources from the Azure portal or redeploy the currently deployed Bicep file with the same parameters. The output shows the managed resources
420420

421-
To obtain an accurate list of resources in a stack, you can redeploy the currently deployed template with the same parameters.
421+
# [PowerShell](#tab/azure-powershell)
422+
423+
```output
424+
...
425+
Resources: /subscriptions/9e8db52a-71bc-4871-9007-1117bf304622/resourceGroups/demoRg/providers/Microsoft.Network/virtualNetworks/vnetthmimleef5fwk
426+
/subscriptions/9e8db52a-71bc-4871-9007-1117bf304622/resourceGroups/demoRg/providers/Microsoft.Storage/storageAccounts/storethmimleef5fwk
427+
```
428+
429+
# [CLI](#tab/azure-cli)
430+
431+
```output
432+
"resources": [
433+
{
434+
"denyStatus": "none",
435+
"id": "/subscriptions/9e8db52a-71bc-4871-9007-1117bf304622/resourceGroups/demoRg/providers/Microsoft.Network/virtualNetworks/vnetthmimleef5fwk",
436+
"resourceGroup": "demoRg",
437+
"status": "managed"
438+
},
439+
{
440+
"denyStatus": "none",
441+
"id": "/subscriptions/9e8db52a-71bc-4871-9007-1117bf304622/resourceGroups/demoRg/providers/Microsoft.Storage/storageAccounts/storethmimleef5fwk",
442+
"resourceGroup": "demoRg",
443+
"status": "managed"
444+
}
445+
]
446+
```
447+
448+
# [Portal](#tab/azure-portal)
449+
450+
1. Open the Azure portal.
451+
1. Open the Resource group that contains the stack.
452+
1. From the left menu, expand **Settings**, and then select **Deployment stacks**.
453+
1. Select the stack name to open the stack.
454+
455+
---
456+
457+
After you have reviewed and verified the list of resources in the stack, you can re-run the command with the `BypassStackOutOfSyncError` switch in Azure PowerShell ( or `bypass-stack-out-of-sync-error` in Azure CLI). This switch should only be used after thoroughly review the list of resources in the stack before re-running the command. This switch should never be used by default.
422458

423459
## Delete deployment stacks
424460

0 commit comments

Comments
 (0)