public Collection<LocationsContext> GetAzureLocation()
{
GetAzureLocationCmdletInfo getAzureLocationCmdlet = new GetAzureLocationCmdletInfo();
WindowsAzurePowershellCmdlet azurePowershellCmdlet = new WindowsAzurePowershellCmdlet(getAzureLocationCmdlet);
Collection<LocationsContext> locationsContext = new Collection<LocationsContext>();
foreach (PSObject result in azurePowershellCmdlet.Run())
{
locationsContext.Add((LocationsContext)result.BaseObject);
}
return locationsContext;
}