Azure / Azure/azure-powershell
[Feature]: Auto convert `DefaultProfile` parameter from a string with a subscription ID/name
Open
Azure PS Team
feature-request
- Dominant language
- C#
- Stars
- 4.8k
- Forks
- 4.3k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 51
Description
### Description of the new feature
`az` CLI has a global parameter named `--subscription` which allows to very easily set the subscription for every command. IMO this is very missing from Azure PowerShell. My suggestion is to allow passing a string directly to the `DefaultProfile` parameter and for the base cmdlet to parse it and load the correct profile object automatically.
### Proposed implementation details (optional)
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.