Azure / Azure/autorest.powershell

[Feature request] Omit a mandatory parameter if resource can be queried by List

Open
#1,224 1 comment 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.