We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8789d4 commit 8cc94abCopy full SHA for 8cc94ab
sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/simulator/_model_tools/_generated_rai_client.py
@@ -149,7 +149,7 @@ async def get_attack_objectives(
149
managed_identity_credential = DefaultAzureCredential(
150
managed_identity_client_id=client_id, exclude_interactive_browser_credential=True
151
)
152
- token = managed_identity_credential.get_token().token
+ token = managed_identity_credential.get_token(TokenScope.DEFAULT_AZURE_MANAGEMENT).token
153
headers["aml-aca-token"] = token
154
155
# Send the request using the autogenerated client
0 commit comments