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

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

azure.hsm.Module

Explore with Pulumi AI

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/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

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = new azure.core.ResourceGroup("example", {
    name: "example-resources",
    location: "West Europe",
});
const exampleVirtualNetwork = new azure.network.VirtualNetwork("example", {
    name: "example-vnet",
    addressSpaces: ["10.2.0.0/16"],
    location: example.location,
    resourceGroupName: example.name,
});
const exampleSubnet = new azure.network.Subnet("example", {
    name: "example-compute",
    resourceGroupName: example.name,
    virtualNetworkName: exampleVirtualNetwork.name,
    addressPrefixes: ["10.2.0.0/24"],
});
const example2 = new azure.network.Subnet("example2", {
    name: "example-hsmsubnet",
    resourceGroupName: example.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", {
    name: "gatewaysubnet",
    resourceGroupName: example.name,
    virtualNetworkName: exampleVirtualNetwork.name,
    addressPrefixes: ["10.2.255.0/26"],
});
const examplePublicIp = new azure.network.PublicIp("example", {
    name: "example-pip",
    location: example.location,
    resourceGroupName: example.name,
    allocationMethod: "Static",
});
const exampleVirtualNetworkGateway = new azure.network.VirtualNetworkGateway("example", {
    name: "example-vnetgateway",
    location: example.location,
    resourceGroupName: example.name,
    type: "ExpressRoute",
    vpnType: "PolicyBased",
    sku: "Standard",
    ipConfigurations: [{
        publicIpAddressId: examplePublicIp.id,
        privateIpAddressAllocation: "Dynamic",
        subnetId: example3.id,
    }],
});
const exampleModule = new azure.hsm.Module("example", {
    name: "example-hsm",
    location: example.location,
    resourceGroupName: example.name,
    skuName: "payShield10K_LMK1_CPS60",
    managementNetworkProfile: {
        networkInterfacePrivateIpAddresses: ["10.2.1.7"],
        subnetId: example2.id,
    },
    networkProfile: {
        networkInterfacePrivateIpAddresses: ["10.2.1.8"],
        subnetId: example2.id,
    },
    stampId: "stamp2",
    tags: {
        env: "Test",
    },
}, {
    dependsOn: [exampleVirtualNetworkGateway],
});
Copy
import pulumi
import pulumi_azure as azure

example = azure.core.ResourceGroup("example",
    name="example-resources",
    location="West Europe")
example_virtual_network = azure.network.VirtualNetwork("example",
    name="example-vnet",
    address_spaces=["10.2.0.0/16"],
    location=example.location,
    resource_group_name=example.name)
example_subnet = azure.network.Subnet("example",
    name="example-compute",
    resource_group_name=example.name,
    virtual_network_name=example_virtual_network.name,
    address_prefixes=["10.2.0.0/24"])
example2 = azure.network.Subnet("example2",
    name="example-hsmsubnet",
    resource_group_name=example.name,
    virtual_network_name=example_virtual_network.name,
    address_prefixes=["10.2.1.0/24"],
    delegations=[{
        "name": "first",
        "service_delegation": {
            "name": "Microsoft.HardwareSecurityModules/dedicatedHSMs",
            "actions": [
                "Microsoft.Network/networkinterfaces/*",
                "Microsoft.Network/virtualNetworks/subnets/join/action",
            ],
        },
    }])
example3 = azure.network.Subnet("example3",
    name="gatewaysubnet",
    resource_group_name=example.name,
    virtual_network_name=example_virtual_network.name,
    address_prefixes=["10.2.255.0/26"])
example_public_ip = azure.network.PublicIp("example",
    name="example-pip",
    location=example.location,
    resource_group_name=example.name,
    allocation_method="Static")
example_virtual_network_gateway = azure.network.VirtualNetworkGateway("example",
    name="example-vnetgateway",
    location=example.location,
    resource_group_name=example.name,
    type="ExpressRoute",
    vpn_type="PolicyBased",
    sku="Standard",
    ip_configurations=[{
        "public_ip_address_id": example_public_ip.id,
        "private_ip_address_allocation": "Dynamic",
        "subnet_id": example3.id,
    }])
example_module = azure.hsm.Module("example",
    name="example-hsm",
    location=example.location,
    resource_group_name=example.name,
    sku_name="payShield10K_LMK1_CPS60",
    management_network_profile={
        "network_interface_private_ip_addresses": ["10.2.1.7"],
        "subnet_id": example2.id,
    },
    network_profile={
        "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]))
Copy
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/hsm"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("example-resources"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "example", &network.VirtualNetworkArgs{
			Name: pulumi.String("example-vnet"),
			AddressSpaces: pulumi.StringArray{
				pulumi.String("10.2.0.0/16"),
			},
			Location:          example.Location,
			ResourceGroupName: example.Name,
		})
		if err != nil {
			return err
		}
		_, err = network.NewSubnet(ctx, "example", &network.SubnetArgs{
			Name:               pulumi.String("example-compute"),
			ResourceGroupName:  example.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{
			Name:               pulumi.String("example-hsmsubnet"),
			ResourceGroupName:  example.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{
			Name:               pulumi.String("gatewaysubnet"),
			ResourceGroupName:  example.Name,
			VirtualNetworkName: exampleVirtualNetwork.Name,
			AddressPrefixes: pulumi.StringArray{
				pulumi.String("10.2.255.0/26"),
			},
		})
		if err != nil {
			return err
		}
		examplePublicIp, err := network.NewPublicIp(ctx, "example", &network.PublicIpArgs{
			Name:              pulumi.String("example-pip"),
			Location:          example.Location,
			ResourceGroupName: example.Name,
			AllocationMethod:  pulumi.String("Static"),
		})
		if err != nil {
			return err
		}
		exampleVirtualNetworkGateway, err := network.NewVirtualNetworkGateway(ctx, "example", &network.VirtualNetworkGatewayArgs{
			Name:              pulumi.String("example-vnetgateway"),
			Location:          example.Location,
			ResourceGroupName: example.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, "example", &hsm.ModuleArgs{
			Name:              pulumi.String("example-hsm"),
			Location:          example.Location,
			ResourceGroupName: example.Name,
			SkuName:           pulumi.String("payShield10K_LMK1_CPS60"),
			ManagementNetworkProfile: &hsm.ModuleManagementNetworkProfileArgs{
				NetworkInterfacePrivateIpAddresses: pulumi.StringArray{
					pulumi.String("10.2.1.7"),
				},
				SubnetId: example2.ID(),
			},
			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
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var example = new Azure.Core.ResourceGroup("example", new()
    {
        Name = "example-resources",
        Location = "West Europe",
    });

    var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("example", new()
    {
        Name = "example-vnet",
        AddressSpaces = new[]
        {
            "10.2.0.0/16",
        },
        Location = example.Location,
        ResourceGroupName = example.Name,
    });

    var exampleSubnet = new Azure.Network.Subnet("example", new()
    {
        Name = "example-compute",
        ResourceGroupName = example.Name,
        VirtualNetworkName = exampleVirtualNetwork.Name,
        AddressPrefixes = new[]
        {
            "10.2.0.0/24",
        },
    });

    var example2 = new Azure.Network.Subnet("example2", new()
    {
        Name = "example-hsmsubnet",
        ResourceGroupName = example.Name,
        VirtualNetworkName = exampleVirtualNetwork.Name,
        AddressPrefixes = new[]
        {
            "10.2.1.0/24",
        },
        Delegations = new[]
        {
            new Azure.Network.Inputs.SubnetDelegationArgs
            {
                Name = "first",
                ServiceDelegation = new Azure.Network.Inputs.SubnetDelegationServiceDelegationArgs
                {
                    Name = "Microsoft.HardwareSecurityModules/dedicatedHSMs",
                    Actions = new[]
                    {
                        "Microsoft.Network/networkinterfaces/*",
                        "Microsoft.Network/virtualNetworks/subnets/join/action",
                    },
                },
            },
        },
    });

    var example3 = new Azure.Network.Subnet("example3", new()
    {
        Name = "gatewaysubnet",
        ResourceGroupName = example.Name,
        VirtualNetworkName = exampleVirtualNetwork.Name,
        AddressPrefixes = new[]
        {
            "10.2.255.0/26",
        },
    });

    var examplePublicIp = new Azure.Network.PublicIp("example", new()
    {
        Name = "example-pip",
        Location = example.Location,
        ResourceGroupName = example.Name,
        AllocationMethod = "Static",
    });

    var exampleVirtualNetworkGateway = new Azure.Network.VirtualNetworkGateway("example", new()
    {
        Name = "example-vnetgateway",
        Location = example.Location,
        ResourceGroupName = example.Name,
        Type = "ExpressRoute",
        VpnType = "PolicyBased",
        Sku = "Standard",
        IpConfigurations = new[]
        {
            new Azure.Network.Inputs.VirtualNetworkGatewayIpConfigurationArgs
            {
                PublicIpAddressId = examplePublicIp.Id,
                PrivateIpAddressAllocation = "Dynamic",
                SubnetId = example3.Id,
            },
        },
    });

    var exampleModule = new Azure.Hsm.Module("example", new()
    {
        Name = "example-hsm",
        Location = example.Location,
        ResourceGroupName = example.Name,
        SkuName = "payShield10K_LMK1_CPS60",
        ManagementNetworkProfile = new Azure.Hsm.Inputs.ModuleManagementNetworkProfileArgs
        {
            NetworkInterfacePrivateIpAddresses = new[]
            {
                "10.2.1.7",
            },
            SubnetId = example2.Id,
        },
        NetworkProfile = new Azure.Hsm.Inputs.ModuleNetworkProfileArgs
        {
            NetworkInterfacePrivateIpAddresses = new[]
            {
                "10.2.1.8",
            },
            SubnetId = example2.Id,
        },
        StampId = "stamp2",
        Tags = 
        {
            { "env", "Test" },
        },
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            exampleVirtualNetworkGateway,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.network.VirtualNetwork;
import com.pulumi.azure.network.VirtualNetworkArgs;
import com.pulumi.azure.network.Subnet;
import com.pulumi.azure.network.SubnetArgs;
import com.pulumi.azure.network.inputs.SubnetDelegationArgs;
import com.pulumi.azure.network.inputs.SubnetDelegationServiceDelegationArgs;
import com.pulumi.azure.network.PublicIp;
import com.pulumi.azure.network.PublicIpArgs;
import com.pulumi.azure.network.VirtualNetworkGateway;
import com.pulumi.azure.network.VirtualNetworkGatewayArgs;
import com.pulumi.azure.network.inputs.VirtualNetworkGatewayIpConfigurationArgs;
import com.pulumi.azure.hsm.Module;
import com.pulumi.azure.hsm.ModuleArgs;
import com.pulumi.azure.hsm.inputs.ModuleManagementNetworkProfileArgs;
import com.pulumi.azure.hsm.inputs.ModuleNetworkProfileArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new ResourceGroup("example", ResourceGroupArgs.builder()
            .name("example-resources")
            .location("West Europe")
            .build());

        var exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()
            .name("example-vnet")
            .addressSpaces("10.2.0.0/16")
            .location(example.location())
            .resourceGroupName(example.name())
            .build());

        var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder()
            .name("example-compute")
            .resourceGroupName(example.name())
            .virtualNetworkName(exampleVirtualNetwork.name())
            .addressPrefixes("10.2.0.0/24")
            .build());

        var example2 = new Subnet("example2", SubnetArgs.builder()
            .name("example-hsmsubnet")
            .resourceGroupName(example.name())
            .virtualNetworkName(exampleVirtualNetwork.name())
            .addressPrefixes("10.2.1.0/24")
            .delegations(SubnetDelegationArgs.builder()
                .name("first")
                .serviceDelegation(SubnetDelegationServiceDelegationArgs.builder()
                    .name("Microsoft.HardwareSecurityModules/dedicatedHSMs")
                    .actions(                    
                        "Microsoft.Network/networkinterfaces/*",
                        "Microsoft.Network/virtualNetworks/subnets/join/action")
                    .build())
                .build())
            .build());

        var example3 = new Subnet("example3", SubnetArgs.builder()
            .name("gatewaysubnet")
            .resourceGroupName(example.name())
            .virtualNetworkName(exampleVirtualNetwork.name())
            .addressPrefixes("10.2.255.0/26")
            .build());

        var examplePublicIp = new PublicIp("examplePublicIp", PublicIpArgs.builder()
            .name("example-pip")
            .location(example.location())
            .resourceGroupName(example.name())
            .allocationMethod("Static")
            .build());

        var exampleVirtualNetworkGateway = new VirtualNetworkGateway("exampleVirtualNetworkGateway", VirtualNetworkGatewayArgs.builder()
            .name("example-vnetgateway")
            .location(example.location())
            .resourceGroupName(example.name())
            .type("ExpressRoute")
            .vpnType("PolicyBased")
            .sku("Standard")
            .ipConfigurations(VirtualNetworkGatewayIpConfigurationArgs.builder()
                .publicIpAddressId(examplePublicIp.id())
                .privateIpAddressAllocation("Dynamic")
                .subnetId(example3.id())
                .build())
            .build());

        var exampleModule = new Module("exampleModule", ModuleArgs.builder()
            .name("example-hsm")
            .location(example.location())
            .resourceGroupName(example.name())
            .skuName("payShield10K_LMK1_CPS60")
            .managementNetworkProfile(ModuleManagementNetworkProfileArgs.builder()
                .networkInterfacePrivateIpAddresses("10.2.1.7")
                .subnetId(example2.id())
                .build())
            .networkProfile(ModuleNetworkProfileArgs.builder()
                .networkInterfacePrivateIpAddresses("10.2.1.8")
                .subnetId(example2.id())
                .build())
            .stampId("stamp2")
            .tags(Map.of("env", "Test"))
            .build(), CustomResourceOptions.builder()
                .dependsOn(exampleVirtualNetworkGateway)
                .build());

    }
}
Copy
resources:
  example:
    type: azure:core:ResourceGroup
    properties:
      name: example-resources
      location: West Europe
  exampleVirtualNetwork:
    type: azure:network:VirtualNetwork
    name: example
    properties:
      name: example-vnet
      addressSpaces:
        - 10.2.0.0/16
      location: ${example.location}
      resourceGroupName: ${example.name}
  exampleSubnet:
    type: azure:network:Subnet
    name: example
    properties:
      name: example-compute
      resourceGroupName: ${example.name}
      virtualNetworkName: ${exampleVirtualNetwork.name}
      addressPrefixes:
        - 10.2.0.0/24
  example2:
    type: azure:network:Subnet
    properties:
      name: example-hsmsubnet
      resourceGroupName: ${example.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
  example3:
    type: azure:network:Subnet
    properties:
      name: gatewaysubnet
      resourceGroupName: ${example.name}
      virtualNetworkName: ${exampleVirtualNetwork.name}
      addressPrefixes:
        - 10.2.255.0/26
  examplePublicIp:
    type: azure:network:PublicIp
    name: example
    properties:
      name: example-pip
      location: ${example.location}
      resourceGroupName: ${example.name}
      allocationMethod: Static
  exampleVirtualNetworkGateway:
    type: azure:network:VirtualNetworkGateway
    name: example
    properties:
      name: example-vnetgateway
      location: ${example.location}
      resourceGroupName: ${example.name}
      type: ExpressRoute
      vpnType: PolicyBased
      sku: Standard
      ipConfigurations:
        - publicIpAddressId: ${examplePublicIp.id}
          privateIpAddressAllocation: Dynamic
          subnetId: ${example3.id}
  exampleModule:
    type: azure:hsm:Module
    name: example
    properties:
      name: example-hsm
      location: ${example.location}
      resourceGroupName: ${example.name}
      skuName: payShield10K_LMK1_CPS60
      managementNetworkProfile:
        networkInterfacePrivateIpAddresses:
          - 10.2.1.7
        subnetId: ${example2.id}
      networkProfile:
        networkInterfacePrivateIpAddresses:
          - 10.2.1.8
        subnetId: ${example2.id}
      stampId: stamp2
      tags:
        env: Test
    options:
      dependsOn:
        - ${exampleVirtualNetworkGateway}
Copy

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,
           management_network_profile: Optional[ModuleManagementNetworkProfileArgs] = 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 This property is required. string
The unique name of the resource.
args This property is required. ModuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. ModuleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ModuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
    ManagementNetworkProfile = new Azure.Hsm.Inputs.ModuleManagementNetworkProfileArgs
    {
        NetworkInterfacePrivateIpAddresses = new[]
        {
            "string",
        },
        SubnetId = "string",
    },
    Name = "string",
    StampId = "string",
    Tags = 
    {
        { "string", "string" },
    },
    Zones = new[]
    {
        "string",
    },
});
Copy
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"),
	ManagementNetworkProfile: &hsm.ModuleManagementNetworkProfileArgs{
		NetworkInterfacePrivateIpAddresses: pulumi.StringArray{
			pulumi.String("string"),
		},
		SubnetId: pulumi.String("string"),
	},
	Name:    pulumi.String("string"),
	StampId: pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Zones: pulumi.StringArray{
		pulumi.String("string"),
	},
})
Copy
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")
    .managementNetworkProfile(ModuleManagementNetworkProfileArgs.builder()
        .networkInterfacePrivateIpAddresses("string")
        .subnetId("string")
        .build())
    .name("string")
    .stampId("string")
    .tags(Map.of("string", "string"))
    .zones("string")
    .build());
Copy
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",
    management_network_profile={
        "network_interface_private_ip_addresses": ["string"],
        "subnet_id": "string",
    },
    name="string",
    stamp_id="string",
    tags={
        "string": "string",
    },
    zones=["string"])
Copy
const azureModuleResource = new azure.hsm.Module("azureModuleResource", {
    networkProfile: {
        networkInterfacePrivateIpAddresses: ["string"],
        subnetId: "string",
    },
    resourceGroupName: "string",
    skuName: "string",
    location: "string",
    managementNetworkProfile: {
        networkInterfacePrivateIpAddresses: ["string"],
        subnetId: "string",
    },
    name: "string",
    stampId: "string",
    tags: {
        string: "string",
    },
    zones: ["string"],
});
Copy
type: azure:hsm:Module
properties:
    location: string
    managementNetworkProfile:
        networkInterfacePrivateIpAddresses:
            - string
        subnetId: string
    name: string
    networkProfile:
        networkInterfacePrivateIpAddresses:
            - string
        subnetId: string
    resourceGroupName: string
    skuName: string
    stampId: string
    tags:
        string: string
    zones:
        - string
Copy

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 This property is required. ModuleNetworkProfile
A network_profile block as defined below.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
string
The SKU name of the dedicated hardware security module. Possible values are payShield10K_LMK1_CPS60,payShield10K_LMK1_CPS250,payShield10K_LMK1_CPS2500,payShield10K_LMK2_CPS60,payShield10K_LMK2_CPS250,payShield10K_LMK2_CPS2500 and SafeNet Luna Network HSM A790. Changing this forces a new Dedicated Hardware Security Module to be created.
Location Changes to this property will trigger replacement. string
The Azure Region where the Dedicated Hardware Security Module should exist. Changing this forces a new Dedicated Hardware Security Module to be created.
ManagementNetworkProfile ModuleManagementNetworkProfile

A management_network_profile block as defined below.

->NOTE: The management_network_profile should not be specified when sku_name is SafeNet Luna Network HSM A790.

Name Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. List<string>
Specifies a list of Availability Zones in which this Dedicated Hardware Security Module should be located. Changing this forces a new Dedicated Hardware Security Module to be created.
NetworkProfile This property is required. ModuleNetworkProfileArgs
A network_profile block as defined below.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
string
The SKU name of the dedicated hardware security module. Possible values are payShield10K_LMK1_CPS60,payShield10K_LMK1_CPS250,payShield10K_LMK1_CPS2500,payShield10K_LMK2_CPS60,payShield10K_LMK2_CPS250,payShield10K_LMK2_CPS2500 and SafeNet Luna Network HSM A790. Changing this forces a new Dedicated Hardware Security Module to be created.
Location Changes to this property will trigger replacement. string
The Azure Region where the Dedicated Hardware Security Module should exist. Changing this forces a new Dedicated Hardware Security Module to be created.
ManagementNetworkProfile ModuleManagementNetworkProfileArgs

A management_network_profile block as defined below.

->NOTE: The management_network_profile should not be specified when sku_name is SafeNet Luna Network HSM A790.

Name Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. []string
Specifies a list of Availability Zones in which this Dedicated Hardware Security Module should be located. Changing this forces a new Dedicated Hardware Security Module to be created.
networkProfile This property is required. ModuleNetworkProfile
A network_profile block as defined below.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
String
The SKU name of the dedicated hardware security module. Possible values are payShield10K_LMK1_CPS60,payShield10K_LMK1_CPS250,payShield10K_LMK1_CPS2500,payShield10K_LMK2_CPS60,payShield10K_LMK2_CPS250,payShield10K_LMK2_CPS2500 and SafeNet Luna Network HSM A790. Changing this forces a new Dedicated Hardware Security Module to be created.
location Changes to this property will trigger replacement. String
The Azure Region where the Dedicated Hardware Security Module should exist. Changing this forces a new Dedicated Hardware Security Module to be created.
managementNetworkProfile ModuleManagementNetworkProfile

A management_network_profile block as defined below.

->NOTE: The management_network_profile should not be specified when sku_name is SafeNet Luna Network HSM A790.

name Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. List<String>
Specifies a list of Availability Zones in which this Dedicated Hardware Security Module should be located. Changing this forces a new Dedicated Hardware Security Module to be created.
networkProfile This property is required. ModuleNetworkProfile
A network_profile block as defined below.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
string
The SKU name of the dedicated hardware security module. Possible values are payShield10K_LMK1_CPS60,payShield10K_LMK1_CPS250,payShield10K_LMK1_CPS2500,payShield10K_LMK2_CPS60,payShield10K_LMK2_CPS250,payShield10K_LMK2_CPS2500 and SafeNet Luna Network HSM A790. Changing this forces a new Dedicated Hardware Security Module to be created.
location Changes to this property will trigger replacement. string
The Azure Region where the Dedicated Hardware Security Module should exist. Changing this forces a new Dedicated Hardware Security Module to be created.
managementNetworkProfile ModuleManagementNetworkProfile

A management_network_profile block as defined below.

->NOTE: The management_network_profile should not be specified when sku_name is SafeNet Luna Network HSM A790.

name Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string[]
Specifies a list of Availability Zones in which this Dedicated Hardware Security Module should be located. Changing this forces a new Dedicated Hardware Security Module to be created.
network_profile This property is required. ModuleNetworkProfileArgs
A network_profile block as defined below.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
str
The SKU name of the dedicated hardware security module. Possible values are payShield10K_LMK1_CPS60,payShield10K_LMK1_CPS250,payShield10K_LMK1_CPS2500,payShield10K_LMK2_CPS60,payShield10K_LMK2_CPS250,payShield10K_LMK2_CPS2500 and SafeNet Luna Network HSM A790. Changing this forces a new Dedicated Hardware Security Module to be created.
location Changes to this property will trigger replacement. str
The Azure Region where the Dedicated Hardware Security Module should exist. Changing this forces a new Dedicated Hardware Security Module to be created.
management_network_profile ModuleManagementNetworkProfileArgs

A management_network_profile block as defined below.

->NOTE: The management_network_profile should not be specified when sku_name is SafeNet Luna Network HSM A790.

name Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. Sequence[str]
Specifies a list of Availability Zones in which this Dedicated Hardware Security Module should be located. Changing this forces a new Dedicated Hardware Security Module to be created.
networkProfile This property is required. Property Map
A network_profile block as defined below.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
String
The SKU name of the dedicated hardware security module. Possible values are payShield10K_LMK1_CPS60,payShield10K_LMK1_CPS250,payShield10K_LMK1_CPS2500,payShield10K_LMK2_CPS60,payShield10K_LMK2_CPS250,payShield10K_LMK2_CPS2500 and SafeNet Luna Network HSM A790. Changing this forces a new Dedicated Hardware Security Module to be created.
location Changes to this property will trigger replacement. String
The Azure Region where the Dedicated Hardware Security Module should exist. Changing this forces a new Dedicated Hardware Security Module to be created.
managementNetworkProfile Property Map

A management_network_profile block as defined below.

->NOTE: The management_network_profile should not be specified when sku_name is SafeNet Luna Network HSM A790.

name Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. List<String>
Specifies a list of Availability Zones in which this Dedicated Hardware Security Module should be located. 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,
        management_network_profile: Optional[ModuleManagementNetworkProfileArgs] = 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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 Changes to this property will trigger replacement. string
The Azure Region where the Dedicated Hardware Security Module should exist. Changing this forces a new Dedicated Hardware Security Module to be created.
ManagementNetworkProfile ModuleManagementNetworkProfile

A management_network_profile block as defined below.

->NOTE: The management_network_profile should not be specified when sku_name is SafeNet Luna Network HSM A790.

Name Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The SKU name of the dedicated hardware security module. Possible values are payShield10K_LMK1_CPS60,payShield10K_LMK1_CPS250,payShield10K_LMK1_CPS2500,payShield10K_LMK2_CPS60,payShield10K_LMK2_CPS250,payShield10K_LMK2_CPS2500 and SafeNet Luna Network HSM A790. Changing this forces a new Dedicated Hardware Security Module to be created.
StampId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. List<string>
Specifies a list of Availability Zones in which this Dedicated Hardware Security Module should be located. Changing this forces a new Dedicated Hardware Security Module to be created.
Location Changes to this property will trigger replacement. string
The Azure Region where the Dedicated Hardware Security Module should exist. Changing this forces a new Dedicated Hardware Security Module to be created.
ManagementNetworkProfile ModuleManagementNetworkProfileArgs

A management_network_profile block as defined below.

->NOTE: The management_network_profile should not be specified when sku_name is SafeNet Luna Network HSM A790.

Name Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The SKU name of the dedicated hardware security module. Possible values are payShield10K_LMK1_CPS60,payShield10K_LMK1_CPS250,payShield10K_LMK1_CPS2500,payShield10K_LMK2_CPS60,payShield10K_LMK2_CPS250,payShield10K_LMK2_CPS2500 and SafeNet Luna Network HSM A790. Changing this forces a new Dedicated Hardware Security Module to be created.
StampId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. []string
Specifies a list of Availability Zones in which this Dedicated Hardware Security Module should be located. Changing this forces a new Dedicated Hardware Security Module to be created.
location Changes to this property will trigger replacement. String
The Azure Region where the Dedicated Hardware Security Module should exist. Changing this forces a new Dedicated Hardware Security Module to be created.
managementNetworkProfile ModuleManagementNetworkProfile

A management_network_profile block as defined below.

->NOTE: The management_network_profile should not be specified when sku_name is SafeNet Luna Network HSM A790.

name Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
The SKU name of the dedicated hardware security module. Possible values are payShield10K_LMK1_CPS60,payShield10K_LMK1_CPS250,payShield10K_LMK1_CPS2500,payShield10K_LMK2_CPS60,payShield10K_LMK2_CPS250,payShield10K_LMK2_CPS2500 and SafeNet Luna Network HSM A790. Changing this forces a new Dedicated Hardware Security Module to be created.
stampId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. List<String>
Specifies a list of Availability Zones in which this Dedicated Hardware Security Module should be located. Changing this forces a new Dedicated Hardware Security Module to be created.
location Changes to this property will trigger replacement. string
The Azure Region where the Dedicated Hardware Security Module should exist. Changing this forces a new Dedicated Hardware Security Module to be created.
managementNetworkProfile ModuleManagementNetworkProfile

A management_network_profile block as defined below.

->NOTE: The management_network_profile should not be specified when sku_name is SafeNet Luna Network HSM A790.

name Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The SKU name of the dedicated hardware security module. Possible values are payShield10K_LMK1_CPS60,payShield10K_LMK1_CPS250,payShield10K_LMK1_CPS2500,payShield10K_LMK2_CPS60,payShield10K_LMK2_CPS250,payShield10K_LMK2_CPS2500 and SafeNet Luna Network HSM A790. Changing this forces a new Dedicated Hardware Security Module to be created.
stampId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string[]
Specifies a list of Availability Zones in which this Dedicated Hardware Security Module should be located. Changing this forces a new Dedicated Hardware Security Module to be created.
location Changes to this property will trigger replacement. str
The Azure Region where the Dedicated Hardware Security Module should exist. Changing this forces a new Dedicated Hardware Security Module to be created.
management_network_profile ModuleManagementNetworkProfileArgs

A management_network_profile block as defined below.

->NOTE: The management_network_profile should not be specified when sku_name is SafeNet Luna Network HSM A790.

name Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. str
The SKU name of the dedicated hardware security module. Possible values are payShield10K_LMK1_CPS60,payShield10K_LMK1_CPS250,payShield10K_LMK1_CPS2500,payShield10K_LMK2_CPS60,payShield10K_LMK2_CPS250,payShield10K_LMK2_CPS2500 and SafeNet Luna Network HSM A790. Changing this forces a new Dedicated Hardware Security Module to be created.
stamp_id Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. Sequence[str]
Specifies a list of Availability Zones in which this Dedicated Hardware Security Module should be located. Changing this forces a new Dedicated Hardware Security Module to be created.
location Changes to this property will trigger replacement. String
The Azure Region where the Dedicated Hardware Security Module should exist. Changing this forces a new Dedicated Hardware Security Module to be created.
managementNetworkProfile Property Map

A management_network_profile block as defined below.

->NOTE: The management_network_profile should not be specified when sku_name is SafeNet Luna Network HSM A790.

name Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
The SKU name of the dedicated hardware security module. Possible values are payShield10K_LMK1_CPS60,payShield10K_LMK1_CPS250,payShield10K_LMK1_CPS2500,payShield10K_LMK2_CPS60,payShield10K_LMK2_CPS250,payShield10K_LMK2_CPS2500 and SafeNet Luna Network HSM A790. Changing this forces a new Dedicated Hardware Security Module to be created.
stampId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. List<String>
Specifies a list of Availability Zones in which this Dedicated Hardware Security Module should be located. Changing this forces a new Dedicated Hardware Security Module to be created.

Supporting Types

ModuleManagementNetworkProfile
, ModuleManagementNetworkProfileArgs

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

ModuleNetworkProfile
, ModuleNetworkProfileArgs

NetworkInterfacePrivateIpAddresses
This property is required.
Changes to this property will trigger replacement.
List<string>
The private IPv4 address of the network interface. Changing this forces a new Dedicated Hardware Security Module to be created.
SubnetId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the subnet. Changing this forces a new Dedicated Hardware Security Module to be created.
NetworkInterfacePrivateIpAddresses
This property is required.
Changes to this property will trigger replacement.
[]string
The private IPv4 address of the network interface. Changing this forces a new Dedicated Hardware Security Module to be created.
SubnetId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the subnet. Changing this forces a new Dedicated Hardware Security Module to be created.
networkInterfacePrivateIpAddresses
This property is required.
Changes to this property will trigger replacement.
List<String>
The private IPv4 address of the network interface. Changing this forces a new Dedicated Hardware Security Module to be created.
subnetId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the subnet. Changing this forces a new Dedicated Hardware Security Module to be created.
networkInterfacePrivateIpAddresses
This property is required.
Changes to this property will trigger replacement.
string[]
The private IPv4 address of the network interface. Changing this forces a new Dedicated Hardware Security Module to be created.
subnetId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the subnet. Changing this forces a new Dedicated Hardware Security Module to be created.
network_interface_private_ip_addresses
This property is required.
Changes to this property will trigger replacement.
Sequence[str]
The private IPv4 address of the network interface. Changing this forces a new Dedicated Hardware Security Module to be created.
subnet_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the subnet. Changing this forces a new Dedicated Hardware Security Module to be created.
networkInterfacePrivateIpAddresses
This property is required.
Changes to this property will trigger replacement.
List<String>
The private IPv4 address of the network interface. Changing this forces a new Dedicated Hardware Security Module to be created.
subnetId
This property is required.
Changes to this property will trigger replacement.
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
Copy

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.