Comments (4)
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @jlichwa @RandalliLama @schaabs.
from azure-sdk-for-python.
Hi @Splaxi -- thank you for opening an issue, and I apologize for the delayed response. I was able to reproduce your issue today and did some digging for the cause. Given that your example policy includes a subject, the error message made me think that the CLI may not be processing the policy as intended.
I found the build_certificate_policy
method in the CLI's source code, which is where the policy parameter seems to actually be processed. I noticed that the anticipated format was a little different from your JSON; key_properties
was expected instead of key_props
, validity_in_months
instead of validity_months
, etc. I ended up setting the following $policyJson
based on the CLI's expectations:
{
"key_properties": {
"key_type": "RSA",
"key_size": 2048,
"reuse_key": false
},
"secret_properties": {
"content_type": "application/x-pkcs12"
},
"x509_certificate_properties": {
"subject": "CN=testing.contoso.com",
"validity_in_months": 12
},
"issuer_parameters": {
"name": "Unknown"
},
"attributes": {
"enabled": true
}
}
With this $policyJson
, the same az keyvault certificate create
command now worked -- it seems that the issue was coming from the format.
I found an old issue about the unclear guidance on certificate policy formatting: Azure/azure-cli#9423. The az keyvault certificate get-default-policy --scaffold
command does give a helpful guide for policy formatting -- the policy scaffold uses camelCase
instead of snake_case
, and I found that replacing the parameter casing of the policyJson
above also works with the az keyvault certificate create
command.
cc @evelyn-ys to forward CLI feedback.
from azure-sdk-for-python.
Hi @Splaxi. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation.
from azure-sdk-for-python.
Hi @Splaxi, since you haven’t asked that we /unresolve
the issue, we’ll close this out. If you believe further discussion is needed, please add a comment /unresolve
to reopen the issue.
from azure-sdk-for-python.
Related Issues (20)
- Document Intelligence: support for multiple language at the same time during extraction HOT 2
- can't find back the documentation of the azure functions decorator package HOT 1
- Copying blob within account with BlobClient.upload_blob_from_url fails with ErrorCode:CannotVerifyCopySource HOT 3
- add the possibility to track metrics every few iterations/periods of time HOT 4
- Azure AI Search - Support for scalar quantization seems incomplete HOT 4
- ManagedIdentityCredential failing with version 1.17.0 HOT 7
- Documentation of the previous version of Python SDK is not visible/accessible for HOT 4
- Get service bus sender client by name regardless of type (queue/topic) HOT 1
- Effective Identity with Service Principal in Python HOT 4
- ValueError: Management Operation error occurred. When a task exceeds 240s with 5min lock out period HOT 14
- AzureAppConfigurationProvider should be able to lazy load secrets HOT 6
- A Question: What happens when we never close the AMPQ connection? HOT 8
- azure-communication-callautomation needs linting updates for pylint version 3.1.0 HOT 1
- azure-ai-documentintelligence AIO capability is not working HOT 5
- Is there no way to stream or wait for environment creation with ml_client HOT 3
- [bct] Add changelog reporting information in the README
- [bct] Rename tool
- SyntaxWarning: invalid escape sequence - azure-mgmt-network HOT 2
- yntaxWarning: invalid escape sequence - azure-mgmt-keyvault HOT 7
- Using Azure SDK for Python to run Workflows in Azure Purview HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-sdk-for-python.