azure - AzCopy 验证 : Selected user account does not exist in tenant

标签 azure azure-active-directory azure-blob-storage

我需要从我的 Blob 存储中下载一个 Blob。我正在尝试按照此处所述验证我的用户身份 https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-v10

azcopy login

当我按照说明操作并将提供的代码输入网络表单时,我被告知:

Selected user account does not exist in tenant 'Microsoft Services' and cannot access the application '<>' in that tenant. The account needs to be added as an external user in the tenant first. Please use a different account.

我正在使用我的主管理 Azure 帐户用户(所有者),这是我设置的唯一一个。

我显然已经尝试用谷歌搜索这个并查看说明并查看其他问题/答案。这是一个可怕的兔子洞,链接到带有更多链接的页面。 请问我应该在哪里单击,输入什么内容来创建我需要的用户,或者如何为我的管理员用户提供所需的任何内容?

我看这里https://learn.microsoft.com/en-us/azure/active-directory/develop/quickstart-create-new-tenant了解如何创建租户,但步骤之一是输入域。什么域名?我是否需要域来下载 blob?

我还认为也许我需要提供租户 ID:

azcopy login --tenant-id=<tenant-id>

但是我在哪里可以找到租户 ID?我发现这显然与目录 ID 相同。

我尝试这样做:

我的存储帐户 > 属性

但是这里没有任何称为租户或目录 ID 的内容。

最佳答案

该问题与用户无关,但我需要提供租户 ID

azcopy login --tenant-id=<tenant-id>

获取租户 ID:

在 Azure 门户仪表板中:

  • 搜索 Azure Active Directory
  • 选择 Azure Active Directory
  • 复制租户 ID

关于azure - AzCopy 验证 : Selected user account does not exist in tenant,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62487154/

相关文章:

azure - 如何使用 Azure AD 保护 Azure 移动服务? ADAL.JS

azure - 通过 Azure CLI 链接现有 B2C 租户

c# - Azure Function - c# - 具有 Blob 绑定(bind)的 ServicebusTrigger

c# - Azure Functions - Blob 流动态输入绑定(bind)

python - 如何使用 Python 中 Azure Functions 的 Azure Blob 存储绑定(bind)将 JSON 数据上传到 Azure 存储 Blob

azure - 是否可以更改从 startofweek() 和 endofweek() 返回的日期?

java - 图错误: Invoked API requires Protected API access in application-only context when not using Resource Specific Consent

AzureAD 身份验证仅适用于本地

azure - 是否可以将 Webjob 发布为 "Triggered"类型以及 "Continuous"类型

azure - 将 azure blob 存储链接到计算机