Skip to content

Fix: Azure portal baseUri for gov, china and germany#168

Merged
cricketthomas merged 2 commits into
masterfrom
fix-az-de-gov-cn-uri
Mar 31, 2026
Merged

Fix: Azure portal baseUri for gov, china and germany#168
cricketthomas merged 2 commits into
masterfrom
fix-az-de-gov-cn-uri

Conversation

@cricketthomas
Copy link
Copy Markdown
Owner

  • add new switch for portal base uri/tld
  • update respective code to use new tlds var

…sources to "portal.com" rather than their correct azure base uri/tld
Copy link
Copy Markdown

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

This PR updates “Open in Azure” links to use the correct Azure Portal base URI for non-public Azure clouds (US Gov, China, Germany) by deriving the portal hostname from the selected AzureCloudInstance.

Changes:

  • Introduced AuthService.AzurePortalBaseUri and set it via a CloudInstance switch (public, gov, china, germany).
  • Updated multiple view models to build Azure Portal deep-links using AzurePortalBaseUri instead of a hardcoded https://portal.azure.com.

Reviewed changes

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

File Description
src/uno/AzureKeyVaultStudio/AzureKeyVaultStudio/Services/AuthService.cs Adds AzurePortalBaseUri and maps it from CloudInstance.
src/uno/AzureKeyVaultStudio/AzureKeyVaultStudio/UserControls/ViewModels/KeyVaultTreeViewModel.cs Uses AzurePortalBaseUri when opening resources in the portal.
src/uno/AzureKeyVaultStudio/AzureKeyVaultStudio/UserControls/ViewModels/ItemPropertiesViewModel.cs Uses AzurePortalBaseUri for Key Vault asset deep-links.
src/uno/AzureKeyVaultStudio/AzureKeyVaultStudio/Presentation/ViewModels/VaultViewModel.cs Uses AzurePortalBaseUri for Key Vault asset deep-links.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/uno/AzureKeyVaultStudio/AzureKeyVaultStudio/Services/AuthService.cs Outdated
@cricketthomas cricketthomas merged commit 872d2eb into master Mar 31, 2026
1 check passed
cricketthomas added a commit that referenced this pull request Mar 31, 2026
* Fix: previously it would send all azure China, Germany, and us gov resources to "portal.com" rather than their correct azure base Uri/tld

* Address copilot warnings
@cricketthomas cricketthomas deleted the fix-az-de-gov-cn-uri branch April 1, 2026 01:45
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.

2 participants