Skip to main content

dedicated_hsms

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

Overview

Namededicated_hsms
TypeResource
Idazure.hardware_security_modules.dedicated_hsms

Fields

NameDatatypeDescription
nametextfield from the properties object
locationtextThe geo-location where the resource lives
management_network_profiletextfield from the properties object
network_profiletextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
skutextThe resource model definition representing SKU
stamp_idtextfield from the properties object
status_messagetextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
zonestextThe Dedicated Hsm zones.

Methods

NameAccessible byRequired ParamsDescription
getSELECTname, resourceGroupName, subscriptionIdGets the specified Azure dedicated HSM.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdThe List operation gets information about the dedicated hsms associated with the subscription and within the specified resource group.
list_by_subscriptionSELECTsubscriptionIdThe List operation gets information about the dedicated HSMs associated with the subscription.
create_or_updateINSERTname, resourceGroupName, subscriptionId, data__location, data__properties, data__skuCreate or Update a dedicated HSM in the specified subscription.
deleteDELETEname, resourceGroupName, subscriptionIdDeletes the specified Azure Dedicated HSM.
updateUPDATEname, resourceGroupName, subscriptionIdUpdate a dedicated HSM in the specified subscription.

SELECT examples

The List operation gets information about the dedicated HSMs associated with the subscription.

SELECT
name,
location,
management_network_profile,
network_profile,
provisioning_state,
resourceGroupName,
sku,
stamp_id,
status_message,
subscriptionId,
tags,
zones
FROM azure.hardware_security_modules.vw_dedicated_hsms
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.hardware_security_modules.dedicated_hsms (
name,
resourceGroupName,
subscriptionId,
data__location,
data__properties,
data__sku,
sku,
zones,
properties,
tags,
location
)
SELECT
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__location }}',
'{{ data__properties }}',
'{{ data__sku }}',
'{{ sku }}',
'{{ zones }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a dedicated_hsms resource.

/*+ update */
UPDATE azure.hardware_security_modules.dedicated_hsms
SET
tags = '{{ tags }}'
WHERE
name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified dedicated_hsms resource.

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