Azure.KeyVault SDK models lacks serialization methods
See original GitHub issue- azure_keyvault_keys:
- 4.3.1:
- Linux:
- 3.8.5:
Describe the bug Latest version of Azure.Keyvault SDKs don’t have serialization in the models.
Models in this file don’t inherit msrest, so there is no easy serialization available.
https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/_models.py
Same goes to Secrets and Certificates.
To Reproduce Steps to reproduce the behavior: 1.
Expected behavior Azure Python SDK has consistent experience and all models have serialization available.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (9 by maintainers)
Top Results From Across the Web
Get-AzKeyVaultSecret : Method 'get_SerializationSettings ...
I have a script which connects to Azure cloud using 'Connect-AzAccount' and then tries to get secrets stored in a KeyVault using 'Get-AzKeyVaultSecret'....
Read more >How to serialize and deserialize a PFX certificate in Azure ...
Here's a PowerShell script for you. Replace the file path, password, vault name, secret name. $pfxFilePath = 'C:\mycert.pfx' $pwd = '123' ...
Read more >Azure Key Vault secret client library for .NET - Version 4.4.0
This library offers operations to create, retrieve, update, delete, purge, backup, restore, and list the secrets and its versions. Source code | ...
Read more >Azure Key Vault REST API Error Codes
The "Authorization" header is the access token that is required with every call to the Key Vault for data-plane operations. If the header...
Read more >Provide access to Key Vault keys, certificates, and secrets ...
Best Practices for individual keys, secrets, and certificates role ... The new Azure RBAC permission model for key vault provides ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@annatisch I’ll need a few days to try this approach, but it looks promising… 😃
Also, I think part of my feedback is lack of consistency… I know Track 2 was supposed to bring unified approach to the SDKs and for some things I feel like it is amazing… However, end users don’t really follow what models are handcrafted and what models are autogenerated… It would be great if there was some baseline that is consistent across mgmt and data plane SDKs!
Yeah, this is an update scenario from prior
azure-keyvaultpackage… https://github.com/cloud-custodian/cloud-custodianPrimarily we need it to transform resource to the dict for further usage. The tool itself doesn’t know details about KeyVault objects, but it requires common representation for all Azure resource objects and
dictsuits this for out use case.Another scenario is just saving Azure object info into a file. At the moment,
json.dumps()can’t handle KeyVault objects.