当前位置: 首页 > 后端技术 > Python

Azurepython代码错误:AADSTS500011问题解决

时间:2023-03-26 01:48:53 Python

错误:今天pythonsdk登录Azure时,经常遇到“azure.core.exceptions.ClientAuthenticationError:Authenticationfailed:AADSTS500011Theresourceprincipalnamedhttps://management.azure.找不到com”错误。将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"])原因: