az keyvault certificate create - validation too strict #35926
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
issue-addressed
Workflow: The Azure SDK team believes it to be addressed and ready to close.
KeyVault
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
Workflow: This issue is responsible by Azure service team.
Windows 11
Describe the bug
Trying to create a new certificate, based on the input that I'm required from portal.azure.com or the Az.KeyVault PowerShell module. The validation is to strict in the following code:
azure-sdk-for-python/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_client.py
Lines 94 to 96 in a624a22
To Reproduce
Policy - as json
Az Cli command executed, in PowerShell 7+
I'm confident that I have handled the quotation issues within powershell, as I'm able to post the above policy directly via:
The error code / message posted:
You need to set either subject or one of the subject alternative names parameters in the policy
Expected behavior
I'm expecting it to create a valid, pending, certificate. Just like it would via the portal.azure.com, Az.KeyVault PowerShell module or the Azure REST API for KeyVault / Certificates
Screenshots
Additional context
The text was updated successfully, but these errors were encountered: