-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Description
Description
This applies to BOTH - Key Vault and Managed HSM
Key Vault service now supports importing EC keys via BYOK - however 'Add-AzKeyVaultKey' does not have a parameter to input the key type attribute. Therefore customer cannot import EC keys via BYOK blobs using powershell.
To Reproduce
Add-AzKeyVaultKey
-HsmResourceId
[-Name]
-KeyFilePath
[-KeyFilePassword ]
[-Disable]
[-KeyOps <String[]>]
[-Expires ]
[-NotBefore ]
[-Tag ]
[-DefaultProfile ]
[-WhatIf]
[-Confirm]
[]
No -KeyType parameter is supported.
Expected behavior
Support a new parameter -KeyType so that customer can specify key type being imported in the BYOK blob.
This kty value is then passed through JSON request body sent in to the service, as documented here: https://docs.microsoft.com/en-us/azure/key-vault/keys/byok-specification#references