gpt4 book ai didi

python - 无法使用 `azcopy login --tenant-id` 和 Azure 政府帐户的租户 ID 登录 Azure?

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

我使用的 Azure 政府帐户的基本 URL 为 portal.azure.us 。我正在尝试使用 azcopy在我的 macOS 上可执行并运行命令 ./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 政府,您需要为 Azure 政府指定 --aad-endpoint。尝试使用:

azcopy.exe login --tenant-id <tenantid> --aad-endpoint https://login.microsoftonline.us

关于python - 无法使用 `azcopy login --tenant-id` 和 Azure 政府帐户的租户 ID 登录 Azure?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67841467/

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