Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add check for existing CUA deployment object and remove #415

Merged
merged 1 commit into from
Dec 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading