Azure / Azure/autorest.powershell
[Feature request] Omit a mandatory parameter if resource can be queried by List
Open
discussion
- Dominant language
- C#
- Stars
- 123
- Forks
- 99
- PR merge metrics
- No merged PRs in 30d
Description
For example:
There is a generated cmdlet, which matches API design, where HsmName and ResourceGroupName are mandatory.
```
Get-AzKeyVaultManagedHsmRegion -HsmName -ResourceGroupName [-SubscriptionId ]
[-DefaultProfile ] []
```
But we can list all HSMs by HsmName and then get its ResourceGroupName so that ResourceGroupName can be omitted in this case. That's one of CLI common design.
See
```
az keyvault region list --hsm-name
[--resource-group]
```
Proposal:
Autorest.PowerShell supports this as its built-in function.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.