public string GetAzureLocationName(string[] keywords, bool exactMatch = true)
{
Collection<LocationsContext> locations = GetAzureLocation();
if (keywords != null)
{
foreach (LocationsContext location in locations)
{
if (Utilities.MatchKeywords(location.Name, keywords, exactMatch) >= 0)
{
return location.Name;
}
}
}
else
{
if (locations.Count == 1)
{
return locations[0].Name;
}
}
return null;
}