ThrowInvalidCastException New-AzManagementGroupDeploymentStack / New-AzSubscriptionDeploymentStack New-AzResourceGroupDeploymentStack #26747
Labels
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
Description
When an input parameter was deserialised from JSON, creating a Deployment Stack (e.g.
New-AzManagementGroupDeploymentStack
) crashes PowerShell.This issue does not occur when using the non-deployment stack equivalents (e.g.
New-AzManagementGroupDeployment
)It is difficult to gather logs, because PowerShell crashes.
Issue is reproducible in Azure DevOps pipeline running
ubuntu-latest
Issue script & Debug output
Bicep file:
PowerShell:
Environment data
Module versions
Error output
The text was updated successfully, but these errors were encountered: