Coder Social home page Coder Social logo

Comments (5)

ellismg avatar ellismg commented on June 8, 2024

Is there a programmatic way to discover what regions are supported by a specific service? I imagine if we wanted to this the right way we would need to inspect all resources which would be deployed by a template and then query to find the list of supported regions for each type and take the intersection of this list.

Something related for us to think about, imagine that I have a set of infrastructure and then I add a new resource that that resource is not supported in the currently selected location. Is this something we would now detect before sending a deployment to ARM (i.e. early in azd provision or would we just send the template and expect the ARM deployment to fail and we'd report that issue back to the user?

from azure-dev.

GeekTrainer avatar GeekTrainer commented on June 8, 2024

I know certain services (App Services for one) do provide an API for listing the available locations. I did look at a couple of others (ASWA and SQL specifically), and at the very least it didn't appear there was an option through the CLI.

I think the experience would be better to fail before attempting to create resources. Especially considering how long certain resources take to create (Cosmos DB as an example), it can be frustrating to wait a handful of minutes only to have it fail and figure out what needs to be cleaned up since the operation isn't transactional.

from azure-dev.

jongio avatar jongio commented on June 8, 2024

@ellismg - Will this be addressed in your region PR?

from azure-dev.

ellismg avatar ellismg commented on June 8, 2024

Partly - we will use the @allowed decorator on the bicep file to control the allowable values for a location for a template and that will play into the values the user can select when configuring the location. But the template author must include this metadata, we are not going to try to query every RP to find all supported locations (we could, however, do that in the code we use to build these templates, so we don't have to manually keep it up to date).

from azure-dev.

rajeshkamal5050 avatar rajeshkamal5050 commented on June 8, 2024

Seems duplicate of #2695 which is fixed now by azd handling allowed decorator.

from azure-dev.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.