1. Packages
  2. Azure Classic
  3. API Docs
  4. hsm
  5. Module

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
azure logo

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

    Manages a Dedicated Hardware Security Module.

    Note: Before using this resource, it’s required to submit the request of registering the providers and features with Azure CLI az provider register --namespace Microsoft.HardwareSecurityModules && az feature register --namespace Microsoft.HardwareSecurityModules --name AzureDedicatedHSM && az provider register --namespace Microsoft.Network && az feature register --namespace Microsoft.Network --name AllowBaremetalServers and ask service team (hsmrequest@microsoft.com) to approve. See more details from https://docs.microsoft.com/en-us/azure/dedicated-hsm/tutorial-deploy-hsm-cli#prerequisites.

    Note: If the quota is not enough in some region, please submit the quota request to service team.

    Example Usage

    using Pulumi;
    using Azure = Pulumi.Azure;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
            {
                Location = "West Europe",
            });
            var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("exampleVirtualNetwork", new Azure.Network.VirtualNetworkArgs
            {
                AddressSpaces = 
                {
                    "10.2.0.0/16",
                },
                Location = exampleResourceGroup.Location,
                ResourceGroupName = exampleResourceGroup.Name,
            });
            var exampleSubnet = new Azure.Network.Subnet("exampleSubnet", new Azure.Network.SubnetArgs
            {
                ResourceGroupName = exampleResourceGroup.Name,
                VirtualNetworkName = exampleVirtualNetwork.Name,
                AddressPrefixes = 
                {
                    "10.2.0.0/24",
                },
            });
            var example2 = new Azure.Network.Subnet("example2", new Azure.Network.SubnetArgs
            {
                ResourceGroupName = exampleResourceGroup.Name,
                VirtualNetworkName = exampleVirtualNetwork.Name,
                AddressPrefixes = 
                {
                    "10.2.1.0/24",
                },
                Delegations = 
                {
                    new Azure.Network.Inputs.SubnetDelegationArgs
                    {
                        Name = "first",
                        ServiceDelegation = new Azure.Network.Inputs.SubnetDelegationServiceDelegationArgs
                        {
                            Name = "Microsoft.HardwareSecurityModules/dedicatedHSMs",
                            Actions = 
                            {
                                "Microsoft.Network/networkinterfaces/*",
                                "Microsoft.Network/virtualNetworks/subnets/join/action",
                            },
                        },
                    },
                },
            });
            var example3 = new Azure.Network.Subnet("example3", new Azure.Network.SubnetArgs
            {
                ResourceGroupName = exampleResourceGroup.Name,
                VirtualNetworkName = exampleVirtualNetwork.Name,
                AddressPrefixes = 
                {
                    "10.2.255.0/26",
                },
            });
            var examplePublicIp = new Azure.Network.PublicIp("examplePublicIp", new Azure.Network.PublicIpArgs
            {
                Location = exampleResourceGroup.Location,
                ResourceGroupName = exampleResourceGroup.Name,
                AllocationMethod = "Dynamic",
            });
            var exampleVirtualNetworkGateway = new Azure.Network.VirtualNetworkGateway("exampleVirtualNetworkGateway", new Azure.Network.VirtualNetworkGatewayArgs
            {
                Location = exampleResourceGroup.Location,
                ResourceGroupName = exampleResourceGroup.Name,
                Type = "ExpressRoute",
                VpnType = "PolicyBased",
                Sku = "Standard",
                IpConfigurations = 
                {
                    new Azure.Network.Inputs.VirtualNetworkGatewayIpConfigurationArgs
                    {
                        PublicIpAddressId = examplePublicIp.Id,
                        PrivateIpAddressAllocation = "Dynamic",
                        SubnetId = example3.Id,
                    },
                },
            });
            var exampleModule = new Azure.Hsm.Module("exampleModule", new Azure.Hsm.ModuleArgs
            {
                Location = exampleResourceGroup.Location,
                ResourceGroupName = exampleResourceGroup.Name,
                SkuName = "SafeNet Luna Network HSM A790",
                NetworkProfile = new Azure.Hsm.Inputs.ModuleNetworkProfileArgs
                {
                    NetworkInterfacePrivateIpAddresses = 
                    {
                        "10.2.1.8",
                    },
                    SubnetId = example2.Id,
                },
                StampId = "stamp2",
                Tags = 
                {
                    { "env", "Test" },
                },
            }, new CustomResourceOptions
            {
                DependsOn = 
                {
                    exampleVirtualNetworkGateway,
                },
            });
        }
    
    }
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/hsm"
    	"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/network"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "exampleVirtualNetwork", &network.VirtualNetworkArgs{
    			AddressSpaces: pulumi.StringArray{
    				pulumi.String("10.2.0.0/16"),
    			},
    			Location:          exampleResourceGroup.Location,
    			ResourceGroupName: exampleResourceGroup.Name,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = network.NewSubnet(ctx, "exampleSubnet", &network.SubnetArgs{
    			ResourceGroupName:  exampleResourceGroup.Name,
    			VirtualNetworkName: exampleVirtualNetwork.Name,
    			AddressPrefixes: pulumi.StringArray{
    				pulumi.String("10.2.0.0/24"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		example2, err := network.NewSubnet(ctx, "example2", &network.SubnetArgs{
    			ResourceGroupName:  exampleResourceGroup.Name,
    			VirtualNetworkName: exampleVirtualNetwork.Name,
    			AddressPrefixes: pulumi.StringArray{
    				pulumi.String("10.2.1.0/24"),
    			},
    			Delegations: network.SubnetDelegationArray{
    				&network.SubnetDelegationArgs{
    					Name: pulumi.String("first"),
    					ServiceDelegation: &network.SubnetDelegationServiceDelegationArgs{
    						Name: pulumi.String("Microsoft.HardwareSecurityModules/dedicatedHSMs"),
    						Actions: pulumi.StringArray{
    							pulumi.String("Microsoft.Network/networkinterfaces/*"),
    							pulumi.String("Microsoft.Network/virtualNetworks/subnets/join/action"),
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		example3, err := network.NewSubnet(ctx, "example3", &network.SubnetArgs{
    			ResourceGroupName:  exampleResourceGroup.Name,
    			VirtualNetworkName: exampleVirtualNetwork.Name,
    			AddressPrefixes: pulumi.StringArray{
    				pulumi.String("10.2.255.0/26"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		examplePublicIp, err := network.NewPublicIp(ctx, "examplePublicIp", &network.PublicIpArgs{
    			Location:          exampleResourceGroup.Location,
    			ResourceGroupName: exampleResourceGroup.Name,
    			AllocationMethod:  pulumi.String("Dynamic"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleVirtualNetworkGateway, err := network.NewVirtualNetworkGateway(ctx, "exampleVirtualNetworkGateway", &network.VirtualNetworkGatewayArgs{
    			Location:          exampleResourceGroup.Location,
    			ResourceGroupName: exampleResourceGroup.Name,
    			Type:              pulumi.String("ExpressRoute"),
    			VpnType:           pulumi.String("PolicyBased"),
    			Sku:               pulumi.String("Standard"),
    			IpConfigurations: network.VirtualNetworkGatewayIpConfigurationArray{
    				&network.VirtualNetworkGatewayIpConfigurationArgs{
    					PublicIpAddressId:          examplePublicIp.ID(),
    					PrivateIpAddressAllocation: pulumi.String("Dynamic"),
    					SubnetId:                   example3.ID(),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = hsm.NewModule(ctx, "exampleModule", &hsm.ModuleArgs{
    			Location:          exampleResourceGroup.Location,
    			ResourceGroupName: exampleResourceGroup.Name,
    			SkuName:           pulumi.String("SafeNet Luna Network HSM A790"),
    			NetworkProfile: &hsm.ModuleNetworkProfileArgs{
    				NetworkInterfacePrivateIpAddresses: pulumi.StringArray{
    					pulumi.String("10.2.1.8"),
    				},
    				SubnetId: example2.ID(),
    			},
    			StampId: pulumi.String("stamp2"),
    			Tags: pulumi.StringMap{
    				"env": pulumi.String("Test"),
    			},
    		}, pulumi.DependsOn([]pulumi.Resource{
    			exampleVirtualNetworkGateway,
    		}))
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
    const exampleVirtualNetwork = new azure.network.VirtualNetwork("exampleVirtualNetwork", {
        addressSpaces: ["10.2.0.0/16"],
        location: exampleResourceGroup.location,
        resourceGroupName: exampleResourceGroup.name,
    });
    const exampleSubnet = new azure.network.Subnet("exampleSubnet", {
        resourceGroupName: exampleResourceGroup.name,
        virtualNetworkName: exampleVirtualNetwork.name,
        addressPrefixes: ["10.2.0.0/24"],
    });
    const example2 = new azure.network.Subnet("example2", {
        resourceGroupName: exampleResourceGroup.name,
        virtualNetworkName: exampleVirtualNetwork.name,
        addressPrefixes: ["10.2.1.0/24"],
        delegations: [{
            name: "first",
            serviceDelegation: {
                name: "Microsoft.HardwareSecurityModules/dedicatedHSMs",
                actions: [
                    "Microsoft.Network/networkinterfaces/*",
                    "Microsoft.Network/virtualNetworks/subnets/join/action",
                ],
            },
        }],
    });
    const example3 = new azure.network.Subnet("example3", {
        resourceGroupName: exampleResourceGroup.name,
        virtualNetworkName: exampleVirtualNetwork.name,
        addressPrefixes: ["10.2.255.0/26"],
    });
    const examplePublicIp = new azure.network.PublicIp("examplePublicIp", {
        location: exampleResourceGroup.location,
        resourceGroupName: exampleResourceGroup.name,
        allocationMethod: "Dynamic",
    });
    const exampleVirtualNetworkGateway = new azure.network.VirtualNetworkGateway("exampleVirtualNetworkGateway", {
        location: exampleResourceGroup.location,
        resourceGroupName: exampleResourceGroup.name,
        type: "ExpressRoute",
        vpnType: "PolicyBased",
        sku: "Standard",
        ipConfigurations: [{
            publicIpAddressId: examplePublicIp.id,
            privateIpAddressAllocation: "Dynamic",
            subnetId: example3.id,
        }],
    });
    const exampleModule = new azure.hsm.Module("exampleModule", {
        location: exampleResourceGroup.location,
        resourceGroupName: exampleResourceGroup.name,
        skuName: "SafeNet Luna Network HSM A790",
        networkProfile: {
            networkInterfacePrivateIpAddresses: ["10.2.1.8"],
            subnetId: example2.id,
        },
        stampId: "stamp2",
        tags: {
            env: "Test",
        },
    }, {
        dependsOn: [exampleVirtualNetworkGateway],
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
    example_virtual_network = azure.network.VirtualNetwork("exampleVirtualNetwork",
        address_spaces=["10.2.0.0/16"],
        location=example_resource_group.location,
        resource_group_name=example_resource_group.name)
    example_subnet = azure.network.Subnet("exampleSubnet",
        resource_group_name=example_resource_group.name,
        virtual_network_name=example_virtual_network.name,
        address_prefixes=["10.2.0.0/24"])
    example2 = azure.network.Subnet("example2",
        resource_group_name=example_resource_group.name,
        virtual_network_name=example_virtual_network.name,
        address_prefixes=["10.2.1.0/24"],
        delegations=[azure.network.SubnetDelegationArgs(
            name="first",
            service_delegation=azure.network.SubnetDelegationServiceDelegationArgs(
                name="Microsoft.HardwareSecurityModules/dedicatedHSMs",
                actions=[
                    "Microsoft.Network/networkinterfaces/*",
                    "Microsoft.Network/virtualNetworks/subnets/join/action",
                ],
            ),
        )])
    example3 = azure.network.Subnet("example3",
        resource_group_name=example_resource_group.name,
        virtual_network_name=example_virtual_network.name,
        address_prefixes=["10.2.255.0/26"])
    example_public_ip = azure.network.PublicIp("examplePublicIp",
        location=example_resource_group.location,
        resource_group_name=example_resource_group.name,
        allocation_method="Dynamic")
    example_virtual_network_gateway = azure.network.VirtualNetworkGateway("exampleVirtualNetworkGateway",
        location=example_resource_group.location,
        resource_group_name=example_resource_group.name,
        type="ExpressRoute",
        vpn_type="PolicyBased",
        sku="Standard",
        ip_configurations=[azure.network.VirtualNetworkGatewayIpConfigurationArgs(
            public_ip_address_id=example_public_ip.id,
            private_ip_address_allocation="Dynamic",
            subnet_id=example3.id,
        )])
    example_module = azure.hsm.Module("exampleModule",
        location=example_resource_group.location,
        resource_group_name=example_resource_group.name,
        sku_name="SafeNet Luna Network HSM A790",
        network_profile=azure.hsm.ModuleNetworkProfileArgs(
            network_interface_private_ip_addresses=["10.2.1.8"],
            subnet_id=example2.id,
        ),
        stamp_id="stamp2",
        tags={
            "env": "Test",
        },
        opts=pulumi.ResourceOptions(depends_on=[example_virtual_network_gateway]))
    

    Example coming soon!

    Create Module Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Module(name: string, args: ModuleArgs, opts?: CustomResourceOptions);
    @overload
    def Module(resource_name: str,
               args: ModuleArgs,
               opts: Optional[ResourceOptions] = None)
    
    @overload
    def Module(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               network_profile: Optional[ModuleNetworkProfileArgs] = None,
               resource_group_name: Optional[str] = None,
               sku_name: Optional[str] = None,
               location: Optional[str] = None,
               name: Optional[str] = None,
               stamp_id: Optional[str] = None,
               tags: Optional[Mapping[str, str]] = None,
               zones: Optional[Sequence[str]] = None)
    func NewModule(ctx *Context, name string, args ModuleArgs, opts ...ResourceOption) (*Module, error)
    public Module(string name, ModuleArgs args, CustomResourceOptions? opts = null)
    public Module(String name, ModuleArgs args)
    public Module(String name, ModuleArgs args, CustomResourceOptions options)
    
    type: azure:hsm:Module
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ModuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ModuleArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ModuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ModuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ModuleArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var azureModuleResource = new Azure.Hsm.Module("azureModuleResource", new()
    {
        NetworkProfile = new Azure.Hsm.Inputs.ModuleNetworkProfileArgs
        {
            NetworkInterfacePrivateIpAddresses = new[]
            {
                "string",
            },
            SubnetId = "string",
        },
        ResourceGroupName = "string",
        SkuName = "string",
        Location = "string",
        Name = "string",
        StampId = "string",
        Tags = 
        {
            { "string", "string" },
        },
        Zones = new[]
        {
            "string",
        },
    });
    
    example, err := hsm.NewModule(ctx, "azureModuleResource", &hsm.ModuleArgs{
    	NetworkProfile: &hsm.ModuleNetworkProfileArgs{
    		NetworkInterfacePrivateIpAddresses: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		SubnetId: pulumi.String("string"),
    	},
    	ResourceGroupName: pulumi.String("string"),
    	SkuName:           pulumi.String("string"),
    	Location:          pulumi.String("string"),
    	Name:              pulumi.String("string"),
    	StampId:           pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Zones: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var azureModuleResource = new com.pulumi.azure.hsm.Module("azureModuleResource", com.pulumi.azure.hsm.ModuleArgs.builder()
        .networkProfile(ModuleNetworkProfileArgs.builder()
            .networkInterfacePrivateIpAddresses("string")
            .subnetId("string")
            .build())
        .resourceGroupName("string")
        .skuName("string")
        .location("string")
        .name("string")
        .stampId("string")
        .tags(Map.of("string", "string"))
        .zones("string")
        .build());
    
    azure_module_resource = azure.hsm.Module("azureModuleResource",
        network_profile={
            "network_interface_private_ip_addresses": ["string"],
            "subnet_id": "string",
        },
        resource_group_name="string",
        sku_name="string",
        location="string",
        name="string",
        stamp_id="string",
        tags={
            "string": "string",
        },
        zones=["string"])
    
    const azureModuleResource = new azure.hsm.Module("azureModuleResource", {
        networkProfile: {
            networkInterfacePrivateIpAddresses: ["string"],
            subnetId: "string",
        },
        resourceGroupName: "string",
        skuName: "string",
        location: "string",
        name: "string",
        stampId: "string",
        tags: {
            string: "string",
        },
        zones: ["string"],
    });
    
    type: azure:hsm:Module
    properties:
        location: string
        name: string
        networkProfile:
            networkInterfacePrivateIpAddresses:
                - string
            subnetId: string
        resourceGroupName: string
        skuName: string
        stampId: string
        tags:
            string: string
        zones:
            - string
    

    Module Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Module resource accepts the following input properties:

    NetworkProfile ModuleNetworkProfile
    A network_profile block as defined below.
    ResourceGroupName string
    The name of the Resource Group where the Dedicated Hardware Security Module should exist. Changing this forces a new Dedicated Hardware Security Module to be created.
    SkuName string
    The sku name of the dedicated hardware security module. Changing this forces a new Dedicated Hardware Security Module to be created.
    Location string
    The Azure Region where the Dedicated Hardware Security Module should exist. Changing this forces a new Dedicated Hardware Security Module to be created.
    Name string
    The name which should be used for this Dedicated Hardware Security Module. Changing this forces a new Dedicated Hardware Security Module to be created.
    StampId string
    The ID of the stamp. Possible values are stamp1 or stamp2. Changing this forces a new Dedicated Hardware Security Module to be created.
    Tags Dictionary<string, string>
    A mapping of tags which should be assigned to the Dedicated Hardware Security Module.
    Zones List<string>
    The Dedicated Hardware Security Module zones. Changing this forces a new Dedicated Hardware Security Module to be created.
    NetworkProfile ModuleNetworkProfileArgs
    A network_profile block as defined below.
    ResourceGroupName string
    The name of the Resource Group where the Dedicated Hardware Security Module should exist. Changing this forces a new Dedicated Hardware Security Module to be created.
    SkuName string
    The sku name of the dedicated hardware security module. Changing this forces a new Dedicated Hardware Security Module to be created.
    Location string
    The Azure Region where the Dedicated Hardware Security Module should exist. Changing this forces a new Dedicated Hardware Security Module to be created.
    Name string
    The name which should be used for this Dedicated Hardware Security Module. Changing this forces a new Dedicated Hardware Security Module to be created.
    StampId string
    The ID of the stamp. Possible values are stamp1 or stamp2. Changing this forces a new Dedicated Hardware Security Module to be created.
    Tags map[string]string
    A mapping of tags which should be assigned to the Dedicated Hardware Security Module.
    Zones []string
    The Dedicated Hardware Security Module zones. Changing this forces a new Dedicated Hardware Security Module to be created.
    networkProfile ModuleNetworkProfile
    A network_profile block as defined below.
    resourceGroupName String
    The name of the Resource Group where the Dedicated Hardware Security Module should exist. Changing this forces a new Dedicated Hardware Security Module to be created.
    skuName String
    The sku name of the dedicated hardware security module. Changing this forces a new Dedicated Hardware Security Module to be created.
    location String
    The Azure Region where the Dedicated Hardware Security Module should exist. Changing this forces a new Dedicated Hardware Security Module to be created.
    name String
    The name which should be used for this Dedicated Hardware Security Module. Changing this forces a new Dedicated Hardware Security Module to be created.
    stampId String
    The ID of the stamp. Possible values are stamp1 or stamp2. Changing this forces a new Dedicated Hardware Security Module to be created.
    tags Map<String,String>
    A mapping of tags which should be assigned to the Dedicated Hardware Security Module.
    zones List<String>
    The Dedicated Hardware Security Module zones. Changing this forces a new Dedicated Hardware Security Module to be created.
    networkProfile ModuleNetworkProfile
    A network_profile block as defined below.
    resourceGroupName string
    The name of the Resource Group where the Dedicated Hardware Security Module should exist. Changing this forces a new Dedicated Hardware Security Module to be created.
    skuName string
    The sku name of the dedicated hardware security module. Changing this forces a new Dedicated Hardware Security Module to be created.
    location string
    The Azure Region where the Dedicated Hardware Security Module should exist. Changing this forces a new Dedicated Hardware Security Module to be created.
    name string
    The name which should be used for this Dedicated Hardware Security Module. Changing this forces a new Dedicated Hardware Security Module to be created.
    stampId string
    The ID of the stamp. Possible values are stamp1 or stamp2. Changing this forces a new Dedicated Hardware Security Module to be created.
    tags {[key: string]: string}
    A mapping of tags which should be assigned to the Dedicated Hardware Security Module.
    zones string[]
    The Dedicated Hardware Security Module zones. Changing this forces a new Dedicated Hardware Security Module to be created.
    network_profile ModuleNetworkProfileArgs
    A network_profile block as defined below.
    resource_group_name str
    The name of the Resource Group where the Dedicated Hardware Security Module should exist. Changing this forces a new Dedicated Hardware Security Module to be created.
    sku_name str
    The sku name of the dedicated hardware security module. Changing this forces a new Dedicated Hardware Security Module to be created.
    location str
    The Azure Region where the Dedicated Hardware Security Module should exist. Changing this forces a new Dedicated Hardware Security Module to be created.
    name str
    The name which should be used for this Dedicated Hardware Security Module. Changing this forces a new Dedicated Hardware Security Module to be created.
    stamp_id str
    The ID of the stamp. Possible values are stamp1 or stamp2. Changing this forces a new Dedicated Hardware Security Module to be created.
    tags Mapping[str, str]
    A mapping of tags which should be assigned to the Dedicated Hardware Security Module.
    zones Sequence[str]
    The Dedicated Hardware Security Module zones. Changing this forces a new Dedicated Hardware Security Module to be created.
    networkProfile Property Map
    A network_profile block as defined below.
    resourceGroupName String
    The name of the Resource Group where the Dedicated Hardware Security Module should exist. Changing this forces a new Dedicated Hardware Security Module to be created.
    skuName String
    The sku name of the dedicated hardware security module. Changing this forces a new Dedicated Hardware Security Module to be created.
    location String
    The Azure Region where the Dedicated Hardware Security Module should exist. Changing this forces a new Dedicated Hardware Security Module to be created.
    name String
    The name which should be used for this Dedicated Hardware Security Module. Changing this forces a new Dedicated Hardware Security Module to be created.
    stampId String
    The ID of the stamp. Possible values are stamp1 or stamp2. Changing this forces a new Dedicated Hardware Security Module to be created.
    tags Map<String>
    A mapping of tags which should be assigned to the Dedicated Hardware Security Module.
    zones List<String>
    The Dedicated Hardware Security Module zones. Changing this forces a new Dedicated Hardware Security Module to be created.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Module resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Module Resource

    Get an existing Module resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ModuleState, opts?: CustomResourceOptions): Module
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            network_profile: Optional[ModuleNetworkProfileArgs] = None,
            resource_group_name: Optional[str] = None,
            sku_name: Optional[str] = None,
            stamp_id: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            zones: Optional[Sequence[str]] = None) -> Module
    func GetModule(ctx *Context, name string, id IDInput, state *ModuleState, opts ...ResourceOption) (*Module, error)
    public static Module Get(string name, Input<string> id, ModuleState? state, CustomResourceOptions? opts = null)
    public static Module get(String name, Output<String> id, ModuleState state, CustomResourceOptions options)
    resources:  _:    type: azure:hsm:Module    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Location string
    The Azure Region where the Dedicated Hardware Security Module should exist. Changing this forces a new Dedicated Hardware Security Module to be created.
    Name string
    The name which should be used for this Dedicated Hardware Security Module. Changing this forces a new Dedicated Hardware Security Module to be created.
    NetworkProfile ModuleNetworkProfile
    A network_profile block as defined below.
    ResourceGroupName string
    The name of the Resource Group where the Dedicated Hardware Security Module should exist. Changing this forces a new Dedicated Hardware Security Module to be created.
    SkuName string
    The sku name of the dedicated hardware security module. Changing this forces a new Dedicated Hardware Security Module to be created.
    StampId string
    The ID of the stamp. Possible values are stamp1 or stamp2. Changing this forces a new Dedicated Hardware Security Module to be created.
    Tags Dictionary<string, string>
    A mapping of tags which should be assigned to the Dedicated Hardware Security Module.
    Zones List<string>
    The Dedicated Hardware Security Module zones. Changing this forces a new Dedicated Hardware Security Module to be created.
    Location string
    The Azure Region where the Dedicated Hardware Security Module should exist. Changing this forces a new Dedicated Hardware Security Module to be created.
    Name string
    The name which should be used for this Dedicated Hardware Security Module. Changing this forces a new Dedicated Hardware Security Module to be created.
    NetworkProfile ModuleNetworkProfileArgs
    A network_profile block as defined below.
    ResourceGroupName string
    The name of the Resource Group where the Dedicated Hardware Security Module should exist. Changing this forces a new Dedicated Hardware Security Module to be created.
    SkuName string
    The sku name of the dedicated hardware security module. Changing this forces a new Dedicated Hardware Security Module to be created.
    StampId string
    The ID of the stamp. Possible values are stamp1 or stamp2. Changing this forces a new Dedicated Hardware Security Module to be created.
    Tags map[string]string
    A mapping of tags which should be assigned to the Dedicated Hardware Security Module.
    Zones []string
    The Dedicated Hardware Security Module zones. Changing this forces a new Dedicated Hardware Security Module to be created.
    location String
    The Azure Region where the Dedicated Hardware Security Module should exist. Changing this forces a new Dedicated Hardware Security Module to be created.
    name String
    The name which should be used for this Dedicated Hardware Security Module. Changing this forces a new Dedicated Hardware Security Module to be created.
    networkProfile ModuleNetworkProfile
    A network_profile block as defined below.
    resourceGroupName String
    The name of the Resource Group where the Dedicated Hardware Security Module should exist. Changing this forces a new Dedicated Hardware Security Module to be created.
    skuName String
    The sku name of the dedicated hardware security module. Changing this forces a new Dedicated Hardware Security Module to be created.
    stampId String
    The ID of the stamp. Possible values are stamp1 or stamp2. Changing this forces a new Dedicated Hardware Security Module to be created.
    tags Map<String,String>
    A mapping of tags which should be assigned to the Dedicated Hardware Security Module.
    zones List<String>
    The Dedicated Hardware Security Module zones. Changing this forces a new Dedicated Hardware Security Module to be created.
    location string
    The Azure Region where the Dedicated Hardware Security Module should exist. Changing this forces a new Dedicated Hardware Security Module to be created.
    name string
    The name which should be used for this Dedicated Hardware Security Module. Changing this forces a new Dedicated Hardware Security Module to be created.
    networkProfile ModuleNetworkProfile
    A network_profile block as defined below.
    resourceGroupName string
    The name of the Resource Group where the Dedicated Hardware Security Module should exist. Changing this forces a new Dedicated Hardware Security Module to be created.
    skuName string
    The sku name of the dedicated hardware security module. Changing this forces a new Dedicated Hardware Security Module to be created.
    stampId string
    The ID of the stamp. Possible values are stamp1 or stamp2. Changing this forces a new Dedicated Hardware Security Module to be created.
    tags {[key: string]: string}
    A mapping of tags which should be assigned to the Dedicated Hardware Security Module.
    zones string[]
    The Dedicated Hardware Security Module zones. Changing this forces a new Dedicated Hardware Security Module to be created.
    location str
    The Azure Region where the Dedicated Hardware Security Module should exist. Changing this forces a new Dedicated Hardware Security Module to be created.
    name str
    The name which should be used for this Dedicated Hardware Security Module. Changing this forces a new Dedicated Hardware Security Module to be created.
    network_profile ModuleNetworkProfileArgs
    A network_profile block as defined below.
    resource_group_name str
    The name of the Resource Group where the Dedicated Hardware Security Module should exist. Changing this forces a new Dedicated Hardware Security Module to be created.
    sku_name str
    The sku name of the dedicated hardware security module. Changing this forces a new Dedicated Hardware Security Module to be created.
    stamp_id str
    The ID of the stamp. Possible values are stamp1 or stamp2. Changing this forces a new Dedicated Hardware Security Module to be created.
    tags Mapping[str, str]
    A mapping of tags which should be assigned to the Dedicated Hardware Security Module.
    zones Sequence[str]
    The Dedicated Hardware Security Module zones. Changing this forces a new Dedicated Hardware Security Module to be created.
    location String
    The Azure Region where the Dedicated Hardware Security Module should exist. Changing this forces a new Dedicated Hardware Security Module to be created.
    name String
    The name which should be used for this Dedicated Hardware Security Module. Changing this forces a new Dedicated Hardware Security Module to be created.
    networkProfile Property Map
    A network_profile block as defined below.
    resourceGroupName String
    The name of the Resource Group where the Dedicated Hardware Security Module should exist. Changing this forces a new Dedicated Hardware Security Module to be created.
    skuName String
    The sku name of the dedicated hardware security module. Changing this forces a new Dedicated Hardware Security Module to be created.
    stampId String
    The ID of the stamp. Possible values are stamp1 or stamp2. Changing this forces a new Dedicated Hardware Security Module to be created.
    tags Map<String>
    A mapping of tags which should be assigned to the Dedicated Hardware Security Module.
    zones List<String>
    The Dedicated Hardware Security Module zones. Changing this forces a new Dedicated Hardware Security Module to be created.

    Supporting Types

    ModuleNetworkProfile, ModuleNetworkProfileArgs

    NetworkInterfacePrivateIpAddresses List<string>
    The private IPv4 address of the network interface. Changing this forces a new Dedicated Hardware Security Module to be created.
    SubnetId string
    The ID of the subnet. Changing this forces a new Dedicated Hardware Security Module to be created.
    NetworkInterfacePrivateIpAddresses []string
    The private IPv4 address of the network interface. Changing this forces a new Dedicated Hardware Security Module to be created.
    SubnetId string
    The ID of the subnet. Changing this forces a new Dedicated Hardware Security Module to be created.
    networkInterfacePrivateIpAddresses List<String>
    The private IPv4 address of the network interface. Changing this forces a new Dedicated Hardware Security Module to be created.
    subnetId String
    The ID of the subnet. Changing this forces a new Dedicated Hardware Security Module to be created.
    networkInterfacePrivateIpAddresses string[]
    The private IPv4 address of the network interface. Changing this forces a new Dedicated Hardware Security Module to be created.
    subnetId string
    The ID of the subnet. Changing this forces a new Dedicated Hardware Security Module to be created.
    network_interface_private_ip_addresses Sequence[str]
    The private IPv4 address of the network interface. Changing this forces a new Dedicated Hardware Security Module to be created.
    subnet_id str
    The ID of the subnet. Changing this forces a new Dedicated Hardware Security Module to be created.
    networkInterfacePrivateIpAddresses List<String>
    The private IPv4 address of the network interface. Changing this forces a new Dedicated Hardware Security Module to be created.
    subnetId String
    The ID of the subnet. Changing this forces a new Dedicated Hardware Security Module to be created.

    Import

    Dedicated Hardware Security Module can be imported using the resource id, e.g.

     $ pulumi import azure:hsm/module:Module example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/hsm1
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Viewing docs for Azure v4.42.0 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.