traffic-manager endpoint create ignores subscription argument #24695
Labels
Auto-Assign
Auto assign by bot
Azure CLI Team
The command of the issue is owned by Azure CLI team
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
feature-request
Network
az network vnet/lb/nic/dns/etc...
Milestone
Describe the bug
After updating to azure-cli 2.42.0, using a service principal with access to multiple subscriptions, having SUBSCRIPTION_B as the default the active subscription, and a Traffic Manager in SUBSCRIPTION_A the
az traffic-manager endpoint create
command fails even when using the--subscription
argument.Same issue was observed in alpine
Command Name
az network traffic-manager endpoint create
Errors:
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
brew upgrade azure-ci
az network traffic-manager endpoint create --name {} --resource-group {} --profile-name {} --type {} --target {} --endpoint-location {} --endpoint-status {} --subscription {}
Expected Behavior
Despite having a different active subscription, command takes the
--subscription
into account and applies it to the right resource in the right subscription.Environment Summary
Observed in both macOS and alpine container
Additional Context
The text was updated successfully, but these errors were encountered: