Azure / azure-dev

A developer CLI that reduces the time it takes for you to get started on Azure. The Azure Developer CLI (azd) provides a set of developer-friendly commands that map to key stages in your workflow - code, build, deploy, monitor, repeat.
https://aka.ms/azd
MIT License
408 stars 198 forks source link

Prevent users from selecting an unavailable region for an app using Postgres Flexible Server #2679

Open savannahostrowski opened 1 year ago

savannahostrowski commented 1 year ago

image

You end up with the above error which is super cryptic.

@weikanglim - heads up for infra generation; can we add an allow list into the generated Bicep that prevents this from happening?

weikanglim commented 1 year ago

@savannahostrowski Just thinking in that scenario... If we did add validation at the bicep level, the user gets a better error message when provisioning, but changing the location would still be non-trivial. Would that be a step up?

Did you happen to pick westus2? I'm not sure if this list is comprehsneive: https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/overview#azure-regions

savannahostrowski commented 1 year ago

Could we not just add an allow list to the location when we know that PostgreSQL is the DB? image