New-AzureKeyVaultCertificatePolicy DnsNames parameter must be non-empty if specified #18954
Labels
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
customer-reported
KeyVault
Milestone
Description
When calling
New-AzureKeyVaultCertificatePolicy
cmdlet I have an option to specify-DnsNames
parameter or not. If I don't specify one, it works fine creating a policy object with an emptyDnsNames
property (well, it actually defaults to$null
it seems). However, if I do specify one, I cannot supply an empty list. Having emptyDnsNames
is a perfectly valid setup and we need to be able to have variability in calling it when passingDnsNames
value using a variable (this works fine withSet-AzureKeyVaultCertificatePolicy
on existing policies, btw).Issue script & Debug output
Environment data
Module versions
Error output
The text was updated successfully, but these errors were encountered: