Azure / Azure/azure-powershell
Get-AzSubscription always gets all subscriptions even with SubscriptionId parameter and then filters
Open
Accounts
customer-reported
feature-request
question
- Dominant language
- C#
- Stars
- 4.8k
- Forks
- 4.3k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 51
Description
## Description of the new feature
If the parameter "SubscriptionId" is specified, the commandlet should use the REST call dedicated to that instead of retrieving all subscriptions and filtering internally. If a tenant has a lot of subscriptions, and the user calling even has access to several tenants, the commandlet can time out frequently. You can verify the slow behavior with the "debug" parameter
## Proposed implementation details (optional)
See https://docs.microsoft.com/en-us/rest/api/resources/subscriptions/get
Contributor guide
Assessment
This issue has not been assessed yet.