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"]
)
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。