Skip to content

Port PR: Update to secure AzureCloudConfiguration (#2218)#2257

Merged
jairmyree merged 1 commit intorelease/azure/2.xfrom
jairmyree/cherrypick-fix
Mar 27, 2026
Merged

Port PR: Update to secure AzureCloudConfiguration (#2218)#2257
jairmyree merged 1 commit intorelease/azure/2.xfrom
jairmyree/cherrypick-fix

Conversation

@jairmyree
Copy link
Copy Markdown
Member

This PR ports over the fix from this PR: #2218

* Update to AzureCloudConfiguration

* [WIP] Update to secure AzureCloudConfiguration (#2219)

* Initial plan

* Fix: throw ArgumentException for unknown/URI-like cloud values; clarify docs

Agent-Logs-Url: https://github.com/microsoft/mcp/sessions/70697e6f-a81f-472b-bade-07a395f7956f

Co-authored-by: jairmyree <67484440+jairmyree@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: jairmyree <67484440+jairmyree@users.noreply.github.com>

* Updating tests to reflect that custom authority hosts are not allowed

* Changelog entry

* Updating tests to reflect custom authority host not being allowed

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
@github-project-automation github-project-automation Bot moved this from Untriaged to In Progress in Azure MCP Server Mar 27, 2026
@jairmyree jairmyree enabled auto-merge (squash) March 27, 2026 20:24
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Ports the secure cloud-environment handling change from #2218 by standardizing Azure authority host selection and removing support for custom authority-host URLs.

Changes:

  • Update AzureCloudConfiguration to use AzureAuthorityHosts and throw on unrecognized --cloud values (no URL parsing / no silent fallback).
  • Remove/update unit test coverage that previously allowed custom https://... cloud values.
  • Update sovereign cloud documentation and add a breaking-change changelog entry.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
servers/Azure.Mcp.Server/changelog-entries/1774543138326.yaml Records the breaking change for --cloud behavior (no custom URLs; unknown throws).
docs/sovereign-clouds.md Updates docs to state only well-known cloud names are supported.
core/Microsoft.Mcp.Core/tests/Microsoft.Mcp.Core.UnitTests/Services/Telemetry/TelemetryServiceTests.cs Removes custom authority-host URL inputs from telemetry cloud-tag tests.
core/Microsoft.Mcp.Core/src/Services/Azure/Authentication/AzureCloudConfiguration.cs Switches to AzureAuthorityHosts and throws ArgumentException on unknown cloud values.
core/Azure.Mcp.Core/tests/Azure.Mcp.Core.UnitTests/Services/Azure/Authentication/AzureCloudConfigurationTests.cs Removes custom URL tests and updates unknown-cloud behavior to expect exceptions.

Comment thread docs/sovereign-clouds.md
@jairmyree jairmyree merged commit 2ca14fc into release/azure/2.x Mar 27, 2026
30 checks passed
@jairmyree jairmyree deleted the jairmyree/cherrypick-fix branch March 27, 2026 22:23
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Azure MCP Server Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants