Lingua

KeyVaultProperties Class

Definition

Properties of the vault.

public class KeyVaultProperties : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.KeyVault.Models.KeyVaultProperties>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.KeyVault.Models.KeyVaultProperties>
type KeyVaultProperties = class
    interface IJsonModel<KeyVaultProperties>
    interface IPersistableModel<KeyVaultProperties>
Public Class KeyVaultProperties
Implements IJsonModel(Of KeyVaultProperties), IPersistableModel(Of KeyVaultProperties)
Inheritance
KeyVaultProperties
Implements

Constructors

Name Description
KeyVaultProperties(Guid, KeyVaultSku)

Initializes a new instance of KeyVaultProperties.

Properties

Name Description
AccessPolicies

An array of 0 to 1024 identities that have access to the key vault. All identities in the array must use the same tenant ID as the key vault's tenant ID. When createMode is set to recover, access policies are not required. Otherwise, access policies are required.

CreateMode

The vault's create mode to indicate whether the vault need to be recovered or not.

EnableCrossTenantAccessProtection

Whether cross-tenant access protection is enabled for this vault. When enabled, the vault tenant ID can only be set or changed to the subscription's home tenant ID. Once enabled, this protection cannot be disabled. If omitted when creating a vault, protection is disabled. If omitted when updating a vault, the existing value is preserved.

EnabledForDeployment

Property to specify whether Azure Virtual Machines are permitted to retrieve certificates stored as secrets from the key vault.

EnabledForDiskEncryption

Property to specify whether Azure Disk Encryption is permitted to retrieve secrets from the vault and unwrap keys.

EnabledForTemplateDeployment

Property to specify whether Azure Resource Manager is permitted to retrieve secrets from the key vault.

EnablePurgeProtection

Property specifying whether protection against purge is enabled for this vault. Setting this property to true activates protection against purge for this vault and its content - only the Key Vault service may initiate a hard, irrecoverable deletion. The setting is effective only if soft delete is also enabled. Enabling this functionality is irreversible - that is, the property does not accept false as its value.

EnableRbacAuthorization

Property that controls how data actions are authorized. When true, the key vault will use Role Based Access Control (RBAC) for authorization of data actions, and the access policies specified in vault properties will be ignored. When false, the key vault will use the access policies specified in vault properties, and any policy stored on Azure Resource Manager will be ignored. If null or not specified, the vault is created with the default value of false. Note that management actions are always authorized with RBAC.

EnableSoftDelete

Property to specify whether the 'soft delete' functionality is enabled for this key vault. If it's not set to any value(true or false) when creating new key vault, it will be set to true by default. Once set to true, it cannot be reverted to false.

HsmPoolResourceId

The resource id of HSM Pool.

NetworkRuleSet

Rules governing the accessibility of the key vault from specific network locations.

PrivateEndpointConnections

List of private endpoint connections associated with the key vault.

ProtectionKeysWrappingKey

Configures an external Managed HSM key used to wrap the vault's protection keys. When configured, this property is returned in create, update, get, and list responses. Responses contain the persisted key reference and authentication mechanism, not key material or credentials. It can be supplied when creating a vault or enabling wrapping on an existing vault. This property is available starting with API version 2026-10-01-preview, when the protection-key wrapping capability is available for the target vault. Reapplying an equivalent configuration is supported; replacing or removing it is not. A versionless reference can match the persisted versioned reference; resubmitting it does not rotate the key. After configuration, vault availability depends on the persisted Managed HSM key version remaining usable and accessible to the service. Disabling or deleting that key version, or revoking the service's access, can make the vault unavailable. Omitting this property preserves the existing configuration.

ProvisioningState

Provisioning state of the vault.

PublicNetworkAccess

Property to specify whether the vault will accept traffic from public internet. If set to 'disabled' all traffic except private endpoint traffic and that that originates from trusted services will be blocked. This will override the set firewall rules, meaning that even if the firewall rules are present we will not honor the rules.

Sku

SKU details.

SoftDeleteRetentionInDays

softDelete data retention days. It accepts >=7 and <=90.

TenantId

The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault.

TokenBindingConfiguration

Configuration for Token Binding for Entra tokens.

VaultUri

The URI of the vault for performing operations on keys and secrets.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<KeyVaultProperties>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<KeyVaultProperties>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<KeyVaultProperties>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<KeyVaultProperties>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<KeyVaultProperties>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to