我正在尝试在MS Azure中创建一个存储容器来保存Blob图像。我正在使用Azure PowerShell。
我创建了一个资源组和一个存储帐户,并运行了以下命令:$blobStorageAccountKey = ((Get-AzStorageAccountKey -ResourceGroupName cloud-shell-storage-westeurope -Name "robStorageAccount")| Where-Object {$_.KeyName -eq "key1"}).Value
$blobStorageContext = New-AzStorageContext -StorageAccountName "robStorageAccount" -StorageAccountKey $blobStorageAccountKey
但是,当我运行此命令时,我收到以下错误:New-AzStorageContainer -Name images -Context $blobStorageContext
New-AzStorageContainer: One of the request inputs is out of range.
RequestId:9b0b4ec8-801e-004c-3e02-eaedfa000000
Time:2022-10-27T12:52:06.5326241Z
Status: 400 (One of the request inputs is out of range.)
ErrorCode: OutOfRangeInput
Content:
<?xml version="1.0" encoding="utf-8"?><Error><Code>OutOfRangeInput</Code><Message>One of the request inputs is out of range.
RequestId:9b0b4ec8-801e-004c-3e02-eaedfa000000
Time:2022-10-27T12:52:06.5326241Z</Message></Error>
Headers:
Server: Microsoft-HTTPAPI/2.0
x-ms-request-id: 9b0b4ec8-801e-004c-3e02-eaedfa000000
x-ms-error-code: OutOfRangeInput
Date: Thu, 27 Oct 2022 12:52:05 GMT
Content-Length: 226
Content-Type: application/xml
关于在这里要检查什么以及运行什么有用的azure PowerShell命令有什么建议吗?
谢谢,
罗伯特
1条答案
按热度按时间bpsygsoo1#
在门户中,Container创建成功,如下所示: