Partilhar via


Tipp: Azure-Regionen per PowerShell auflisten

Welche Regionen können für virtuelle Maschinen (VMs) oder Speicherkonten in Microsoft Azure genutzt werden? Natürlich kann man hier in der Dokumentation nachsehen. Zum Beispiel ist dies im Vertrauenscenter (engl. Trust Center) möglich: https://azure.microsoft.com/de-de/support/trust-center/privacy/.

Automatisiert per PowerShell geht dies mit dem Befehl Get-AzureLocation, welcher uns den internen Namen für Skripte liefert, sowie weitere Informationen wie der Anzeigename, verfügbare Dienste, verfügbare Redundanzoptionen für Speicherkonten und die pro Region verfügbaren Instanzgrößen für Web- und Workerrollen sowie virtuelle Maschinen.

Das folgende Beispiel zeigt die komplette Ausgabe von Get-AzureLocation. Weiter unten zeige ich ein Beispiel, das die Ausgabe auf die wesentlichen Informationen reduziert.

Das sind wahrscheinlich mehr Informationen, als wir normalerweise brauchen. Also reduzieren wir im folgenden Beispiel die Ausgabe auf die wichtigsten Informationen.

Weitere Informationen

PowerShell: Azure-Automatisierung für Einsteiger (Microsoft Virtual Academy)

Grundlagen: Azure & PowerShell: VMs erstellen (MSDN Blogs)

Microsoft Azure Vertrauenscenter (Trust Center)

Skripte

Für den Fall, dass die Skripte auf GitHub Gist nicht aufrufbar sind, sind diese hier noch einmal unformatiert aufgeführt.

Komplette Ausgabe von Get-AzureLocation

 Get-AzureLocation
 <# Output

DisplayName             : West Europe
Name                    : West Europe
AvailableServices       : {Compute, Storage, PersistentVMRole, HighMemory}
WebWorkerRoleSizes      : {A5, A6, A7, A8, A9, ExtraLarge, ExtraSmall, Large, Medium, Small, Standard_D1, Standard_D11, Standard_D12, 
                          Standard_D13, Standard_D14, Standard_D2, Standard_D3, Standard_D4}
VirtualMachineRoleSizes : {A5, A6, A7, A8, A9, Basic_A0, Basic_A1, Basic_A2, Basic_A3, Basic_A4, ExtraLarge, ExtraSmall, Large, Medium, Small, 
                          Standard_D1, Standard_D11, Standard_D12, Standard_D13, Standard_D14, Standard_D2, Standard_D3, Standard_D4}
StorageAccountTypes     : {Standard_LRS, Standard_ZRS, Standard_GRS, Standard_RAGRS}
OperationDescription    : Get-AzureLocation
OperationId             : f657aedd-2136-5e6a-a951-5426c056158f
OperationStatus         : Succeeded

DisplayName             : North Europe
Name                    : North Europe
AvailableServices       : {Compute, Storage, PersistentVMRole, HighMemory}
WebWorkerRoleSizes      : {A5, A6, A7, A8, A9, ExtraLarge, ExtraSmall, Large, Medium, Small, Standard_D1, Standard_D11, Standard_D12, 
                          Standard_D13, Standard_D14, Standard_D2, Standard_D3, Standard_D4}
VirtualMachineRoleSizes : {A5, A6, A7, A8, A9, Basic_A0, Basic_A1, Basic_A2, Basic_A3, Basic_A4, ExtraLarge, ExtraSmall, Large, Medium, Small, 
                          Standard_D1, Standard_D11, Standard_D12, Standard_D13, Standard_D14, Standard_D2, Standard_D3, Standard_D4}
StorageAccountTypes     : {Standard_LRS, Standard_ZRS, Standard_GRS, Standard_RAGRS}
OperationDescription    : Get-AzureLocation
OperationId             : f657aedd-2136-5e6a-a951-5426c056158f
OperationStatus         : Succeeded

DisplayName             : East US 2
Name                    : East US 2
AvailableServices       : {Compute, Storage, PersistentVMRole, HighMemory}
WebWorkerRoleSizes      : {A5, A6, A7, ExtraLarge, ExtraSmall, Large, Medium, Small, Standard_D1, Standard_D11, Standard_D12, Standard_D13, 
                          Standard_D14, Standard_D2, Standard_D3, Standard_D4}
VirtualMachineRoleSizes : {A5, A6, A7, Basic_A0, Basic_A1, Basic_A2, Basic_A3, Basic_A4, ExtraLarge, ExtraSmall, Large, Medium, Small, 
                          Standard_D1, Standard_D11, Standard_D12, Standard_D13, Standard_D14, Standard_D2, Standard_D3, Standard_D4}
StorageAccountTypes     : {Standard_LRS, Standard_ZRS, Standard_GRS, Standard_RAGRS}
OperationDescription    : Get-AzureLocation
OperationId             : f657aedd-2136-5e6a-a951-5426c056158f
OperationStatus         : Succeeded

DisplayName             : Central US
Name                    : Central US
AvailableServices       : {Compute, Storage, PersistentVMRole, HighMemory}
WebWorkerRoleSizes      : {A5, A6, A7, ExtraLarge, ExtraSmall, Large, Medium, Small, Standard_D1, Standard_D11, Standard_D12, Standard_D13, 
                          Standard_D14, Standard_D2, Standard_D3, Standard_D4}
VirtualMachineRoleSizes : {A5, A6, A7, Basic_A0, Basic_A1, Basic_A2, Basic_A3, Basic_A4, ExtraLarge, ExtraSmall, Large, Medium, Small, 
                          Standard_D1, Standard_D11, Standard_D12, Standard_D13, Standard_D14, Standard_D2, Standard_D3, Standard_D4}
StorageAccountTypes     : {Standard_LRS, Standard_ZRS, Standard_GRS, Standard_RAGRS}
OperationDescription    : Get-AzureLocation
OperationId             : f657aedd-2136-5e6a-a951-5426c056158f
OperationStatus         : Succeeded

DisplayName             : South Central US
Name                    : South Central US
AvailableServices       : {Compute, Storage, PersistentVMRole, HighMemory}
WebWorkerRoleSizes      : {A5, A6, A7, A8, A9, ExtraLarge, ExtraSmall, Large, Medium, Small, Standard_D1, Standard_D11, Standard_D12, 
                          Standard_D13, Standard_D14, Standard_D2, Standard_D3, Standard_D4}
VirtualMachineRoleSizes : {A5, A6, A7, A8, A9, Basic_A0, Basic_A1, Basic_A2, Basic_A3, Basic_A4, ExtraLarge, ExtraSmall, Large, Medium, Small, 
                          Standard_D1, Standard_D11, Standard_D12, Standard_D13, Standard_D14, Standard_D2, Standard_D3, Standard_D4}
StorageAccountTypes     : {Standard_LRS, Standard_ZRS, Standard_GRS, Standard_RAGRS}
OperationDescription    : Get-AzureLocation
OperationId             : f657aedd-2136-5e6a-a951-5426c056158f
OperationStatus         : Succeeded

DisplayName             : West US
Name                    : West US
AvailableServices       : {Compute, Storage, PersistentVMRole, HighMemory}
WebWorkerRoleSizes      : {A5, A6, A7, A8, A9, ExtraLarge, ExtraSmall, Large, Medium, Small, Standard_D1, Standard_D11, Standard_D12, 
                          Standard_D13, Standard_D14, Standard_D2, Standard_D3, Standard_D4}
VirtualMachineRoleSizes : {A5, A6, A7, A8, A9, Basic_A0, Basic_A1, Basic_A2, Basic_A3, Basic_A4, ExtraLarge, ExtraSmall, Large, Medium, Small, 
                          Standard_D1, Standard_D11, Standard_D12, Standard_D13, Standard_D14, Standard_D2, Standard_D3, Standard_D4}
StorageAccountTypes     : {Standard_LRS, Standard_ZRS, Standard_GRS, Standard_RAGRS}
OperationDescription    : Get-AzureLocation
OperationId             : f657aedd-2136-5e6a-a951-5426c056158f
OperationStatus         : Succeeded

DisplayName             : North Central US
Name                    : North Central US
AvailableServices       : {Compute, Storage, PersistentVMRole, HighMemory}
WebWorkerRoleSizes      : {A5, A6, A7, A8, A9, ExtraLarge, ExtraSmall, Large, Medium, Small, Standard_D1, Standard_D11, Standard_D12, 
                          Standard_D13, Standard_D14, Standard_D2, Standard_D3, Standard_D4}
VirtualMachineRoleSizes : {A5, A6, A7, A8, A9, Basic_A0, Basic_A1, Basic_A2, Basic_A3, Basic_A4, ExtraLarge, ExtraSmall, Large, Medium, Small, 
                          Standard_D1, Standard_D11, Standard_D12, Standard_D13, Standard_D14, Standard_D2, Standard_D3, Standard_D4}
StorageAccountTypes     : {Standard_LRS, Standard_ZRS, Standard_GRS, Standard_RAGRS}
OperationDescription    : Get-AzureLocation
OperationId             : f657aedd-2136-5e6a-a951-5426c056158f
OperationStatus         : Succeeded

DisplayName             : East US
Name                    : East US
AvailableServices       : {Compute, Storage, PersistentVMRole, HighMemory}
WebWorkerRoleSizes      : {A5, A6, A7, A8, A9, ExtraLarge, ExtraSmall, Large, Medium, Small, Standard_D1, Standard_D11, Standard_D12, 
                          Standard_D13, Standard_D14, Standard_D2, Standard_D3, Standard_D4}
VirtualMachineRoleSizes : {A5, A6, A7, A8, A9, Basic_A0, Basic_A1, Basic_A2, Basic_A3, Basic_A4, ExtraLarge, ExtraSmall, Large, Medium, Small, 
                          Standard_D1, Standard_D11, Standard_D12, Standard_D13, Standard_D14, Standard_D2, Standard_D3, Standard_D4}
StorageAccountTypes     : {Standard_LRS, Standard_ZRS, Standard_GRS, Standard_RAGRS}
OperationDescription    : Get-AzureLocation
OperationId             : f657aedd-2136-5e6a-a951-5426c056158f
OperationStatus         : Succeeded

DisplayName             : Southeast Asia
Name                    : Southeast Asia
AvailableServices       : {Compute, Storage, PersistentVMRole, HighMemory}
WebWorkerRoleSizes      : {A5, A6, A7, ExtraLarge, ExtraSmall, Large, Medium, Small, Standard_D1, Standard_D11, Standard_D12, Standard_D13, 
                          Standard_D14, Standard_D2, Standard_D3, Standard_D4}
VirtualMachineRoleSizes : {A5, A6, A7, Basic_A0, Basic_A1, Basic_A2, Basic_A3, Basic_A4, ExtraLarge, ExtraSmall, Large, Medium, Small, 
                          Standard_D1, Standard_D11, Standard_D12, Standard_D13, Standard_D14, Standard_D2, Standard_D3, Standard_D4}
StorageAccountTypes     : {Standard_LRS, Standard_ZRS, Standard_GRS, Standard_RAGRS}
OperationDescription    : Get-AzureLocation
OperationId             : f657aedd-2136-5e6a-a951-5426c056158f
OperationStatus         : Succeeded

DisplayName             : East Asia
Name                    : East Asia
AvailableServices       : {Compute, Storage, PersistentVMRole, HighMemory}
WebWorkerRoleSizes      : {A5, A6, A7, ExtraLarge, ExtraSmall, Large, Medium, Small, Standard_D1, Standard_D11, Standard_D12, Standard_D13, 
                          Standard_D14, Standard_D2, Standard_D3, Standard_D4}
VirtualMachineRoleSizes : {A5, A6, A7, Basic_A0, Basic_A1, Basic_A2, Basic_A3, Basic_A4, ExtraLarge, ExtraSmall, Large, Medium, Small, 
                          Standard_D1, Standard_D11, Standard_D12, Standard_D13, Standard_D14, Standard_D2, Standard_D3, Standard_D4}
StorageAccountTypes     : {Standard_LRS, Standard_ZRS, Standard_GRS, Standard_RAGRS}
OperationDescription    : Get-AzureLocation
OperationId             : f657aedd-2136-5e6a-a951-5426c056158f
OperationStatus         : Succeeded

DisplayName             : Japan West
Name                    : Japan West
AvailableServices       : {Compute, Storage, PersistentVMRole, HighMemory}
WebWorkerRoleSizes      : {A5, A6, A7, ExtraLarge, ExtraSmall, Large, Medium, Small, Standard_D1, Standard_D11, Standard_D12, Standard_D13, 
                          Standard_D14, Standard_D2, Standard_D3, Standard_D4}
VirtualMachineRoleSizes : {A5, A6, A7, Basic_A0, Basic_A1, Basic_A2, Basic_A3, Basic_A4, ExtraLarge, ExtraSmall, Large, Medium, Small, 
                          Standard_D1, Standard_D11, Standard_D12, Standard_D13, Standard_D14, Standard_D2, Standard_D3, Standard_D4}
StorageAccountTypes     : {Standard_LRS, Standard_ZRS, Standard_GRS, Standard_RAGRS}
OperationDescription    : Get-AzureLocation
OperationId             : f657aedd-2136-5e6a-a951-5426c056158f
OperationStatus         : Succeeded

DisplayName             : Japan East
Name                    : Japan East
AvailableServices       : {Compute, Storage, PersistentVMRole, HighMemory}
WebWorkerRoleSizes      : {A5, A6, A7, A8, A9, ExtraLarge, ExtraSmall, Large, Medium, Small, Standard_D1, Standard_D11, Standard_D12, 
                          Standard_D13, Standard_D14, Standard_D2, Standard_D3, Standard_D4}
VirtualMachineRoleSizes : {A5, A6, A7, A8, A9, Basic_A0, Basic_A1, Basic_A2, Basic_A3, Basic_A4, ExtraLarge, ExtraSmall, Large, Medium, Small, 
                          Standard_D1, Standard_D11, Standard_D12, Standard_D13, Standard_D14, Standard_D2, Standard_D3, Standard_D4}
StorageAccountTypes     : {Standard_LRS, Standard_ZRS, Standard_GRS, Standard_RAGRS}
OperationDescription    : Get-AzureLocation
OperationId             : f657aedd-2136-5e6a-a951-5426c056158f
OperationStatus         : Succeeded

DisplayName             : Brazil South
Name                    : Brazil South
AvailableServices       : {Compute, Storage, PersistentVMRole, HighMemory}
WebWorkerRoleSizes      : {A5, A6, A7, ExtraLarge, ExtraSmall, Large, Medium, Small}
VirtualMachineRoleSizes : {A5, A6, A7, Basic_A0, Basic_A1, Basic_A2, Basic_A3, Basic_A4, ExtraLarge, ExtraSmall, Large, Medium, Small}
StorageAccountTypes     : {Standard_LRS, Standard_ZRS, Standard_GRS, Standard_RAGRS}
OperationDescription    : Get-AzureLocation
OperationId             : f657aedd-2136-5e6a-a951-5426c056158f
OperationStatus         : Succeeded

#>

Formatierte Ausgabe von Get-AzureLocation

 Get-AzureLocation | Format-Table -Property Name, AvailableServices -AutoSize
 <# Output

Name             AvailableServices                               
----             -----------------                               
West Europe      {Compute, Storage, PersistentVMRole, HighMemory}
North Europe     {Compute, Storage, PersistentVMRole, HighMemory}
East US 2        {Compute, Storage, PersistentVMRole, HighMemory}
Central US       {Compute, Storage, PersistentVMRole, HighMemory}
South Central US {Compute, Storage, PersistentVMRole, HighMemory}
West US          {Compute, Storage, PersistentVMRole, HighMemory}
North Central US {Compute, Storage, PersistentVMRole, HighMemory}
East US          {Compute, Storage, PersistentVMRole, HighMemory}
Southeast Asia   {Compute, Storage, PersistentVMRole, HighMemory}
East Asia        {Compute, Storage, PersistentVMRole, HighMemory}
Japan West       {Compute, Storage, PersistentVMRole, HighMemory}
Japan East       {Compute, Storage, PersistentVMRole, HighMemory}
Brazil South     {Compute, Storage, PersistentVMRole, HighMemory}

#>

English Summary

For automatic creation of VMs and storage accounts you need to know, what locations (Azure Regions) you can use. The PowerShell command Get-AzureLocation gives you all regions together with a lot of meta data.