如何解决无法使用来自 Azure 政府帐户的租户 ID 使用 `azcopy login --tenant-id` 登录到 Azure?
我使用的是基本 URL 为 portal.azure.us
的 Azure 政府帐户。我正在尝试在我的 macOS 上使用 azcopy
可执行文件并运行命令 ./azcopy login --tenant-id=<tenant ID>
。我 100% 确定我使用的租户 ID 是正确的。但是,我收到以下错误:
Failed to perform login command:
Failed to login with tenantID "XXXX",Azure directory endpoint "https://login.microsoftonline.com",autorest/adal/devicetoken: -REDACTED- occurred while handling response from the Device Endpoint: Error HTTP status != 200
这是因为我没有正确登录 Azure 政府帐户吗?我怎样才能运行这个命令?
解决方法
要使用 AzCopy 登录 Azure Government,您需要为 Azure Government 指定 --aad-endpoint。尝试使用:
azcopy.exe login --tenant-id <tenantid> --aad-endpoint https://login.microsoftonline.us
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。