Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

bicep/arm template how to get display name of location

In bicep or arm template, how to get display location name?
Eg, I have input location name ‘westus’, I want to get its displayName like ‘West US’ since I have to put location name in an alert condition like:
{ field: 'properties.impactedServices[*].ImpactedRegions[*].RegionName' containsAny: [ 'west us' ] }

By the way, “listLocations(‘/subscriptions/${subscriptionId}/providers/Microsoft.Web/locations/${toLower(location)}’, ‘2016-06-01’).displayName
which seems not work.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

I dont think thats possible. ie this list doesnt show that is supported. and list* operations are actually HTTP PUT requests, not HTTP GET.

So I’d expect you’d need to add that data to the template

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading