subscription_id = os.environ["AZURE_SUBSCRIPTION_ID"]
tenant_id = os.environ["AZURE_TENANT_ID"]
client_id = os.environ["AZURE_CLIENT_ID"]
client_secret = os.environ["AZURE_CLIENT_SECRET"]
credentials = ClientSecretCredential(tenant_id=tenant_id, client_id=client_id, client_secret=client_secret)
kv_client = KeyVaultManagementClient(credentials, subscription_id)
我尝试使用身份验证;
credentials=ServicePrincipalCredentials(client_id=client_id,secret=client_secret,tenant=tenant_id) 以及
但我收到以下错误:
“ServicePrincipalCredentials”对象没有属性“get_token”。你的意思是:'set_token'?
您能否解释一下问题的原因以及如何解决?
提前致谢,