Skip to content

FIX use cognitiveservices scope for all Azure AI endpoints#1453

Merged
romanlutz merged 2 commits intomicrosoft:mainfrom
romanlutz:fix/azure-scope-cognitiveservices
Mar 13, 2026
Merged

FIX use cognitiveservices scope for all Azure AI endpoints#1453
romanlutz merged 2 commits intomicrosoft:mainfrom
romanlutz:fix/azure-scope-cognitiveservices

Conversation

@romanlutz
Copy link
Copy Markdown
Contributor

Remove incorrect special-case mapping of *.ai.azure.com endpoints to https://ml.azure.com/.default scope. The ml.azure.com scope is for Azure ML management APIs, not inference. The cognitiveservices scope is accepted by all Azure AI endpoints (Azure OpenAI, AI Foundry, serverless MaaS).

Also add Mistral Large Foundry endpoint to Entra auth integration tests.

Remove incorrect special-case mapping of *.ai.azure.com endpoints to
https://ml.azure.com/.default scope. The ml.azure.com scope is for Azure
ML management APIs, not inference. The cognitiveservices scope is accepted
by all Azure AI endpoints (Azure OpenAI, AI Foundry, serverless MaaS).

Also add Mistral Large Foundry endpoint to Entra auth integration tests.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@rlundeen2 rlundeen2 self-assigned this Mar 11, 2026
…env var names

- Remove AZURE_FOUNDRY_DEEPSEEK_ENDPOINT and AZURE_FOUNDRY_PHI4_ENDPOINT from
  Entra auth tests (these only support API key auth, already covered in
  test_targets_and_secrets.py)
- Fix OPENAI_IMAGE_ENDPOINT1 -> OPENAI_IMAGE_ENDPOINT (and model)
- Fix OPENAI_VIDEO2_ENDPOINT -> OPENAI_VIDEO_ENDPOINT (and model)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@romanlutz romanlutz merged commit c5375d1 into microsoft:main Mar 13, 2026
37 checks passed
@romanlutz romanlutz deleted the fix/azure-scope-cognitiveservices branch March 13, 2026 02:06
riyosha pushed a commit to riyosha/PyRIT that referenced this pull request Mar 24, 2026
…#1453)

Co-authored-by: Roman Lutz <romanlutz@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants