KeyVaultKeyProviderCreateKeyAsync Method

Creates and stores a new key in Key Vault. The create key operation can be used to create any key type in Azure Key Vault. If the named key already exists, Azure Key Vault creates a new version of the key. This operation requires the keys/create permission.

Definition

Namespace: InnerDrive.Azure
Assembly: InnerDrive.Azure (in InnerDrive.Azure.dll) Version: 5.2.9017.0
C#
public Task<KeyVaultKey?> CreateKeyAsync(
	string name,
	KeyType keyType = default,
	CreateKeyOptions? keyOptions = null
)

Parameters

name  String
The name of the key
keyType  KeyType  (Optional)
The type of key to create. See KeyType for valid values
keyOptions  CreateKeyOptions  (Optional)
Specific attributes with information about the key

Return Value

TaskKeyVaultKey
A KeyVaultKey

Implements

IKeyProviderCreateKeyAsync(String, KeyType, CreateKeyOptions)

See Also