Azure / autorest.powershell

AutoRest PowerShell Generator
MIT License
112 stars 78 forks source link

[bug] parameter description is incomplete if this parameter is optional and mandatory in different parameter set #1127

Open BethanyZhou opened 1 year ago

BethanyZhou commented 1 year ago

Taking parameter VaultName in Get-AzKeyVault for correct instance. [[-VaultName] ] [[-ResourceGroupName] ] [-Tag ] [-DefaultProfile ] [-SubscriptionId ] []

Get-AzKeyVault [-VaultName] [-Location] [-InRemovedState] [-DefaultProfile ] [-SubscriptionId ] []

-VaultName

Specifies the name of the key vault.

Type: System.String
Parameter Sets: GetVaultByName
Aliases: Name

Required: False
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: True
Type: System.String
Parameter Sets: ByDeletedVault
Aliases: Name

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: True

authorest.powershell makes parameter as True in all parameter sets.