1

我正在使用具有基本 URL 的 Azure 政府帐户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 政府帐户吗?我怎样才能让这个命令运行?

4

1 回答 1

0

若要使用 AzCopy 登录 Azure Government,需要为 Azure Government 指定 --aad-endpoint。尝试使用:

azcopy.exe login --tenant-id <tenantid> --aad-endpoint https://login.microsoftonline.us
于 2021-06-05T12:31:00.253 回答