Get-AzureLocation 未显示我的订阅有权访问的所有位置

Get-AzureLocation not showing all locations my subscription has access to

我正在使用 6 month student Azure Pass 订阅,这使我能够使用 Web 门户在任何 Azure 位置成功创建存储帐户:

但是,当我尝试使用 PowerShell(使用相同的 Azure 帐户和订阅)创建存储帐户时,它不允许我在北欧或西欧创建存储帐户。所以如果我尝试:

New-AzureStorageAccount -StorageAccountName mystorageaccountname -Location "North Europe" -Type Standard_LRS

我得到:

New-AzureStorageAccount : BadRequest: The location constraint is not valid

使用 Get-AzureLocation 命令确认我似乎只能访问 4 个区域 - 美国东部、美国中部、东南亚和日本西部

Get-AzureLocation | select Name

Name          
----          
East US       
Central US    
Southeast Asia
Japan West

我已经仔细检查过我的 powershell 会话使用的是我在门户中使用的相同 Azure 登录和订阅(我使用 Add-AzureAccount 登录,然后使用 Select-AzureSubscription 来设置我的订阅 "Azure Pass").

这对我来说真的很奇怪,有人有什么想法吗?为什么我可以使用门户在北欧创建存储帐户,但不能使用 powershell?

谢谢!

门户正在使用 Azure 资源管理器 (ARM) 创建存储帐户,而您的 PowerShell 正在使用 "Classic" ASM 模式。 ARM 类似的 PowerShell 命令是 "New-AzureRmStorageAccount"。请注意 PowerShell 命令中的 "Rm"(对于资源管理器)。