按照有关创建 blob 的 Azure CLI“快速入门”说明进行操作。
看起来默认存储帐户中的某些内容阻止了创建新容器的能力;然而,"defaultAction"是Allow:
以下 Azure CLI:
az storage container create --account-name meaningfulname --name nancy --auth-mode login
Run Code Online (Sandbox Code Playgroud)
...导致错误解释存储帐户的网络规则可能是原因:
The request may be blocked by network rules of storage account. Please check network rule set using 'az storage account show -n accountname --query networkRuleSet'.
If you want to change the default action to apply when no rule matches, please use 'az storage account update'.
Run Code Online (Sandbox Code Playgroud)
使用上述消息中的建议,帐户名称上的“show”命令给出:
> az storage account show -n meaningfulname --query networkRuleSet …Run Code Online (Sandbox Code Playgroud)