Multiple subscription with same name - Issue with Get-AzSubscription #19295
Labels
Accounts
Issues in Az.Accounts except authentication related
customer-reported
feature-request
This issue requires a new behavior in the product in order be resolved.
Milestone
Description
Azure is allowing multiple subscriptions with this same name. Currently, cmdlet Get-AzSubscription -SubscriptionName "some name" will return some random first sub with name "some name" even you have mutliple subscriptions. In my opinion, it should throw exception that we have more than one sub with this name or return them all. If we want to keep it as it is, it should at least return Enabled subscription, because currently it's probably enumerating in alphabetic order by state and in case there is sub with same name disabled, cmdlet will return disabled sub instead of active one.
Issue script & Debug output
Environment data
Module versions
Error output
No response
The text was updated successfully, but these errors were encountered: