Azure / reliable-web-app-pattern-dotnet

The Reliable Web App Pattern is a set of objectives to help your web application converge on the cloud. This repo contains a reference implementation of a reliable web application for .NET.
https://aka.ms/eap/rwa/dotnet/doc
MIT License
356 stars 113 forks source link

When creating a single region deployment, an empty env-secondary-rg is created #296

Closed adrianhall closed 1 year ago

adrianhall commented 1 year ago

Describe the bug When creating a single region deployment, an empty $myEnvironmentName-secondary-rg resource group is created, with a default location of the primary location.

To Reproduce

  1. Do not azd set env SECONDARY_AZURE_LOCATION
  2. Run azd deploy
  3. Note the creation of the secondary resource group and it's default location.

Expected behavior The $myEnvironmentName-secondary-rg should not be created.

Desktop (please complete the following information):

KSchlobohm commented 1 year ago

We created this experience due to the bug https://github.com/Azure/azure-dev/issues/553

Based on our conditional deployments the name of our secondary resource group was being sent to Azure where the AZD tool was retrieving the name and failing during azd teardown due to the group not being created.

KSchlobohm commented 1 year ago

migrated to 1864725