[aks-preview] Use bastion subscription from resource ID in az aks bastion#33581
Draft
Copilot wants to merge 1 commit into
Draft
[aks-preview] Use bastion subscription from resource ID in az aks bastion#33581Copilot wants to merge 1 commit into
az aks bastion#33581Copilot wants to merge 1 commit into
Conversation
️✔️AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
Copilot
AI
changed the title
[WIP] Fix az aks bastion fails when bastion is on a different subscription
[aks-preview] Use bastion subscription from resource ID in Jun 17, 2026
az aks bastion
Collaborator
|
aks-preview |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related command
az aks bastionDescription
az aks bastionwas forwarding the AKS/current CLI subscription toaz network bastion tunneleven when--bastionwas a full resource ID in another subscription. This updates bastion resolution to preserve the bastion host's subscription and uses that subscription when creating the tunnel.Bastion resource parsing
subscriptionIdwhen--bastionis provided as a full resource ID.Tunnel command construction
az network bastion tunnel.Targeted coverage
--subscription.Example:
Expected tunnel invocation after this change:
Testing Guide
Verify the verbose output shows
az network bastion tunnel ... --subscription <sub-b>.History Notes
[aks-preview]
az aks bastion: use the bastion host subscription when--bastionis a cross-subscription resource IDThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.