---
title: "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{name}"
method: PUT
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{name}"
tags: ["DedicatedHsms"]
---

# PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{name}

`PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{name}`

Create or Update a dedicated HSM in the specified subscription.

## Path parameters

- `resourceGroupName` string, required
- `name` string, required
- `subscriptionId` string, required

## Query parameters

- `api-version` string, required

## Request body

- DedicatedHsm — Dedicated HSM resource
  - `id` string — The Azure Resource Manager resource ID for the dedicated HSM.
  - `name` string — The name of the dedicated HSM.
  - `type` string — The resource type of the dedicated HSM.
  - `location` string, required — The supported Azure location where the dedicated HSM should be created.
  - `sku` Sku — SKU of the dedicated HSM
    - `name` 'SafeNet Luna Network HSM A790' | 'payShield10K_LMK1_CPS60' | 'payShield10K_LMK1_CPS250' | 'payShield10K_LMK1_CPS2500' | 'payShield10K_LMK2_CPS60' | 'payShield10K_LMK2_CPS250' | 'payShield10K_LMK2_CPS2500' — SKU of the dedicated HSM
  - `zones` string[] — The Dedicated Hsm zones.
  - `tags` object — Resource tags

## Response `200`

Created dedicated HSM

- DedicatedHsm — Dedicated HSM resource
  - `id` string — The Azure Resource Manager resource ID for the dedicated HSM.
  - `name` string — The name of the dedicated HSM.
  - `type` string — The resource type of the dedicated HSM.
  - `location` string, required — The supported Azure location where the dedicated HSM should be created.
  - `sku` Sku — SKU of the dedicated HSM
    - `name` 'SafeNet Luna Network HSM A790' | 'payShield10K_LMK1_CPS60' | 'payShield10K_LMK1_CPS250' | 'payShield10K_LMK1_CPS2500' | 'payShield10K_LMK2_CPS60' | 'payShield10K_LMK2_CPS250' | 'payShield10K_LMK2_CPS2500' — SKU of the dedicated HSM
  - `zones` string[] — The Dedicated Hsm zones.
  - `tags` object — Resource tags

## Other responses

- `201` — Created dedicated HSM
- `default` — The error response describing why the operation failed.

---

[API](https://skmtc.net/azure/apis/azure-dedicated-hsm-resource-provider.md) · [All operations](https://skmtc.net/azure/apis/azure-dedicated-hsm-resource-provider/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/azure-dedicated-hsm-resource-provider/revisions/e322a5d19f21/schema)
