The Azure SDK for Java has an enum with all of the Azure locations, public and national.
Is there similar functionality available for C#? It would be cleaner than using strings.
Is there similar functionality available for C#?
Yes, please refer to Microsoft.Azure.Management.ResourceManager.Fluent, we could get source code from github. More details please refer to screenshot.
demo code:
string region = Region.AsiaEast.ToString();
If you need them as List you can try:
typeof(AzureLocation).GetProperties().Select(p => p.Name).ToList();