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

Code should filter regions for Consumption Linux scenario #641

Closed
davidebbo opened this issue Sep 22, 2018 · 3 comments
Closed

Code should filter regions for Consumption Linux scenario #641

davidebbo opened this issue Sep 22, 2018 · 3 comments

Comments

@davidebbo
Copy link

Initially, it is only available in West US, East US, Southeast Asia and West Europe.

I believe there is an API to get this, but I don't know the details. @bala16 or @ahmelsayed should know more.

@balag0
Copy link

balag0 commented Sep 22, 2018

get https://management.azure.com/subscriptions/<>/providers/Microsoft.Web/georegions?api-version=2016-03-01&servicefabriccontainersenabled=true

This will filter out the correct set of regions.

@ejizba
Copy link
Member

ejizba commented Oct 12, 2018

I took a closer look and the 'azure-arm-webiste' node module has this api:

  listGeoRegions(options?: { sku? : string, linuxWorkersEnabled? : boolean, xenonWorkersEnabled? : boolean, linuxDynamicWorkersEnabled? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise<models.GeoRegionCollection>;

It seems like linuxDynamicWorkersEnabled should be exactly what I want, but when I pass it as true I still get 26 regions. Should that flag work? I don't think the node module lets me pass in arbitrary flags like 'servicefabriccontainersenabled' and I'd rather not call the rest api directly

@balag0
Copy link

balag0 commented Oct 12, 2018

@EricJizbaMSFT Yes you are right. linuxDynamicWorkersEnabled is what you should be using but that change will not deployed until of end of month. We published the swagger sooner so we can get the sdk built with those changes that some other clients use. Until then please use servicefabriccontainersenabled.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants