Skip to content

Commit

Permalink
Merge pull request #415 from microsoft/ryonsteele/6322-cleanup-cua-de…
Browse files Browse the repository at this point in the history
…ployment-hf

Add check for existing CUA deployment object and remove
  • Loading branch information
lon-tierney authored Dec 22, 2023
2 parents 393e351 + fcba8a8 commit 6a4a3b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/inf-create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ echo $parameter_json > $DIR/../infra/main.parameters.json
#make sure bicep is always the latest version
az bicep upgrade

#Check and Remove if exists the CUA deployment Object to resolve Bicep limitations
az deployment sub delete --name "pid-${CUSTOMER_USAGE_ATTRIBUTION_ID}"

#deploy bicep
az deployment sub what-if --location $LOCATION --template-file main.bicep --parameters main.parameters.json --name $RG_NAME
if [ -z $SKIP_PLAN_CHECK ]
Expand Down

0 comments on commit 6a4a3b6

Please sign in to comment.