Skip to main content

managed_hsms

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

Overview

Namemanaged_hsms
TypeResource
Idazure.key_vault.managed_hsms

Fields

NameDatatypeDescription
idtextThe Azure Resource Manager resource ID for the managed HSM Pool.
nametextThe name of the managed HSM Pool.
create_modetextfield from the properties object
enable_purge_protectiontextfield from the properties object
enable_soft_deletetextfield from the properties object
hsm_uritextfield from the properties object
identitytextManaged service identity (system assigned and/or user assigned identities)
initial_admin_object_idstextfield from the properties object
locationtextThe supported Azure location where the managed HSM Pool should be created.
network_aclstextfield from the properties object
private_endpoint_connectionstextfield from the properties object
provisioning_statetextfield from the properties object
public_network_accesstextfield from the properties object
regionstextfield from the properties object
resourceGroupNametextfield from the properties object
scheduled_purge_datetextfield from the properties object
security_domain_propertiestextfield from the properties object
skutextSKU details
soft_delete_retention_in_daystextfield from the properties object
status_messagetextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextResource tags
tenant_idtextfield from the properties object
typetextThe resource type of the managed HSM Pool.

Methods

NameAccessible byRequired ParamsDescription
getSELECTname, resourceGroupName, subscriptionIdGets the specified managed HSM Pool.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdThe List operation gets information about the managed HSM Pools associated with the subscription and within the specified resource group.
list_by_subscriptionSELECTsubscriptionIdThe List operation gets information about the managed HSM Pools associated with the subscription.
create_or_updateINSERTname, resourceGroupName, subscriptionIdCreate or update a managed HSM Pool in the specified subscription.
deleteDELETEname, resourceGroupName, subscriptionIdDeletes the specified managed HSM Pool.
updateUPDATEname, resourceGroupName, subscriptionIdUpdate a managed HSM Pool in the specified subscription.
check_mhsm_name_availabilityEXECsubscriptionId, data__nameChecks that the managed hsm name is valid and is not already in use.
purge_deletedEXEClocation, name, subscriptionIdPermanently deletes the specified managed HSM.

SELECT examples

The List operation gets information about the managed HSM Pools associated with the subscription.

SELECT
id,
name,
create_mode,
enable_purge_protection,
enable_soft_delete,
hsm_uri,
identity,
initial_admin_object_ids,
location,
network_acls,
private_endpoint_connections,
provisioning_state,
public_network_access,
regions,
resourceGroupName,
scheduled_purge_date,
security_domain_properties,
sku,
soft_delete_retention_in_days,
status_message,
subscriptionId,
system_data,
tags,
tenant_id,
type
FROM azure.key_vault.vw_managed_hsms
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new managed_hsms resource.

/*+ create */
INSERT INTO azure.key_vault.managed_hsms (
name,
resourceGroupName,
subscriptionId,
properties,
location,
sku,
tags,
systemData,
identity
)
SELECT
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ location }}',
'{{ sku }}',
'{{ tags }}',
'{{ systemData }}',
'{{ identity }}'
;

UPDATE example

Updates a managed_hsms resource.

/*+ update */
UPDATE azure.key_vault.managed_hsms
SET
properties = '{{ properties }}',
location = '{{ location }}',
sku = '{{ sku }}',
tags = '{{ tags }}',
systemData = '{{ systemData }}',
identity = '{{ identity }}'
WHERE
name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified managed_hsms resource.

/*+ delete */
DELETE FROM azure.key_vault.managed_hsms
WHERE name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';