powershell - 无法在美国中西部创建 AZURE CLASSIC 存储帐户

标签 powershell azure storage azure-storage

我尝试在美国中西部使用以下命令创建 Azure 经典存储帐户,但它抛出错误

"Unable to create storage account 'xxxx': 'The location constraint is not valid'.

New-AzureRmResource -ResourceName "xxxxx" -ResourceGroupName "xxx" -ResourceType "Microsoft.ClassicStorage/StorageAccounts" -Location "West Central US"  -Properties @{ AccountType = "Standard_LRS" }

New-AzureStorageAccount –StorageAccountName "xxx" -Location "West Central US" -Type Standard_LRS

但我能够在其他位置创建经典存储帐户。

最佳答案

我怀疑您的订阅不支持“美国中西部”的经典存储帐户,请尝试在 Azure 门户中的该位置手动创建经典存储帐户,并检查是否会看到此警告。

enter image description here

关于powershell - 无法在美国中西部创建 AZURE CLASSIC 存储帐户,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41225467/

相关文章:

powershell - 使用 PowerShell 使用 GitHub Api 进行基本身份验证

azure - Windows Azure 虚拟机的虚拟 IP 和内部 IP

deep-learning - 如何在 Colab TPU 上释放磁盘空间?

powershell - msbuild 在 Windows 7 下调用 powershell 脚本出现签名错误

Powershell命令从交换地址列表中隐藏用户

azure - sysprep 后无法通过 RDP 连接到 Azure VM

powershell - 如何使用 PowerShell 复制 Azure 存储中的 blob,无需覆盖且无需确认每个文件?

jsp - tomcat如何以及在哪里存储在计算机中的dotCMS上创建的文件?

c++ - C++中对象是存储位置还是值?

math - 使用 PowerShell 根据另一列中的信息添加(数学)CSV 的列