Azure python 代码报错:AADSTS500011 问题解决方法
文章目录
error:
今天 python sdk 登录到Azure 时常遇到”azure.core.exceptions.ClientAuthenticationError: Authentication failed: AADSTS500011 The resource principal named https://management.azure.com was not found“这个错误。
- 替换 https://management.azure.com 为国内地址即 可management.chinacloudapi.cn
参照如下即可解决
compute_client = ComputeManagementClient(
credential=credential,
subscription_id=Subscription_Id,
base_url='https://management.chinacloudapi.cn',
credential_scopes=["https://management.chinacloudapi.cn/.default"]
)
原因:


评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论