Azure / Azure/azure-powershell

[Feature]: Auto convert `DefaultProfile` parameter from a string with a subscription ID/name

Open
#21,076 3 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.