I'm deploying a bicep template in a powershell script (in Devops Pipeline) using az deployment group create
The problem is that if the deployment fails, my powershell script just continues instead of immediately failing.
Tried to get the result via this way :
$deployment_result = az deployment group create
But the variable remains empty.
Any solution to get a result back so we can check and if necessary throw an exception ourselves?
Regards, Sven Peeters
To check the deployment results or to handle any conflicts during deployment, use below approaches given with
ifloop using Comparison operators:-match&-eq.Approach-1:
Approach-2: