gpt4 book ai didi

未找到 Azure Blob 存储

转载 作者:行者123 更新时间:2023-12-02 23:12:42 24 4
gpt4 key购买 nike

根据本教程:How to use Blob storage from iOS ,我应该使用 Azure 命令行界面 (Azure CLI) 命令:

$ azure 存储帐户连接字符串显示“mystorage”

显示我的存储帐户的连接字符串,但我收到此错误:

info: Executing command storage account connectionstring show + Getting storage account keys error: The storage account 'mystorage' was not found. info:
Error information has been recorded to /Users/user/.azure/azure.err error: storage account connectionstring show command failed

我的存储是使用新的 Azure 门户创建的。我注意到,如果我使用经典门户(旧门户)创建存储,该命令将运行得很好并返回连接字符串。

这是另一个可能与此相关的奇怪行为。我使用新门户创建的存储未显示在经典门户中,但我在类中创建的存储显示在新门户中。这是怎么回事?我怎样才能让该命令为我的存储运行!?

最佳答案

补充 Neil 的答案:默认情况下,Azure CLI 工具设置了 Azure 服务管理 (ASM) 模式。您需要做的是将模式切换到 Azure 资源管理器 (ARM)。以下是您可以如何做到这一点。

首先,使用 azure 登录 连接到您的 Azure 订阅。

连接后,只需键入以下命令即可切换到 ARM 模式:

azure config mode arm

完成此操作后,您应该能够列出您在新门户中创建的存储帐户的存储帐户连接字符串(您还需要在命令中指定资源组名称)。

azure storage account connectionstring show "[account-name]" -g "[resource-group-name]"

关于未找到 Azure Blob 存储,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37403427/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com