Skip to main content

managed_hsm_keys_versions

Creates, updates, deletes, gets or lists a managed_hsm_keys_versions resource.

Overview

Namemanaged_hsm_keys_versions
TypeResource
Idazure.key_vault.managed_hsm_keys_versions

Fields

The following fields are returned by SELECT queries:

The retrieved key version.

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
namestringThe name of the resource
propertiesobjectThe properties of the key.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, name, keyName, keyVersionGets the specified version of the specified key in the specified managed HSM.
listselectsubscriptionId, resourceGroupName, name, keyNameLists the versions of the specified key in the specified managed HSM.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
keyNamestringThe name of the key to be created. The value you provide may be copied globally for the purpose of running the service. The value provided should not include personally identifiable or sensitive information.
keyVersionstringThe version of the key to be retrieved.
namestringThe name of the Managed HSM Pool within the specified resource group.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringSubscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

SELECT examples

Gets the specified version of the specified key in the specified managed HSM.

SELECT
id,
name,
properties,
tags,
type
FROM azure.key_vault.managed_hsm_keys_versions
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND name = '{{ name }}' -- required
AND keyName = '{{ keyName }}' -- required
AND keyVersion = '{{ keyVersion }}' -- required
;