-
Notifications
You must be signed in to change notification settings - Fork 3.4k
az ts show uses default subscription even when a full resource id is provided #26030
Copy link
Copy link
Closed
Closed
Copy link
Labels
ARMaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupAuto-AssignAuto assign by botAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone
Metadata
Metadata
Assignees
Labels
ARMaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupAuto-AssignAuto assign by botAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
On Azure CLI 2.46.0,
az ts showfails when a full resource ID of the template spec is provided and the current subscription ID is not the same as the subscription ID in the full resource ID:That template spec does exist, and the full resource ID is correct:
A workaround is to add the
--subscriptionparameter toaz ts showlike so (note that the subscription ID in the full resource ID and the subscription id provided via--subscriptionare the same):Looking at the output of
--debug, it appears theaz ts showtries to look in the current subscription even when a fully qualified resource ID is provided:Could this be fixed, so that providing a fully qualified resource ID to
az ts showno longer looks in the current subscription context? Thanks!