1. Packages
  2. Azure Classic
  3. API Docs
  4. network
  5. VnpGatewayNatRule

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 VPN Gateway Nat Rule.

    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 exampleVirtualWan = new Azure.Network.VirtualWan("exampleVirtualWan", new Azure.Network.VirtualWanArgs
            {
                ResourceGroupName = exampleResourceGroup.Name,
                Location = exampleResourceGroup.Location,
            });
            var exampleVirtualHub = new Azure.Network.VirtualHub("exampleVirtualHub", new Azure.Network.VirtualHubArgs
            {
                ResourceGroupName = exampleResourceGroup.Name,
                Location = exampleResourceGroup.Location,
                AddressPrefix = "10.0.1.0/24",
                VirtualWanId = exampleVirtualWan.Id,
            });
            var exampleVpnGateway = new Azure.Network.VpnGateway("exampleVpnGateway", new Azure.Network.VpnGatewayArgs
            {
                Location = exampleResourceGroup.Location,
                ResourceGroupName = exampleResourceGroup.Name,
                VirtualHubId = exampleVirtualHub.Id,
            });
            var exampleVnpGatewayNatRule = new Azure.Network.VnpGatewayNatRule("exampleVnpGatewayNatRule", new Azure.Network.VnpGatewayNatRuleArgs
            {
                ResourceGroupName = exampleResourceGroup.Name,
                VpnGatewayId = exampleVpnGateway.Id,
                ExternalAddressSpaceMappings = 
                {
                    "192.168.21.0/26",
                },
                InternalAddressSpaceMappings = 
                {
                    "10.4.0.0/26",
                },
            });
        }
    
    }
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
    	"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
    		}
    		exampleVirtualWan, err := network.NewVirtualWan(ctx, "exampleVirtualWan", &network.VirtualWanArgs{
    			ResourceGroupName: exampleResourceGroup.Name,
    			Location:          exampleResourceGroup.Location,
    		})
    		if err != nil {
    			return err
    		}
    		exampleVirtualHub, err := network.NewVirtualHub(ctx, "exampleVirtualHub", &network.VirtualHubArgs{
    			ResourceGroupName: exampleResourceGroup.Name,
    			Location:          exampleResourceGroup.Location,
    			AddressPrefix:     pulumi.String("10.0.1.0/24"),
    			VirtualWanId:      exampleVirtualWan.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		exampleVpnGateway, err := network.NewVpnGateway(ctx, "exampleVpnGateway", &network.VpnGatewayArgs{
    			Location:          exampleResourceGroup.Location,
    			ResourceGroupName: exampleResourceGroup.Name,
    			VirtualHubId:      exampleVirtualHub.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = network.NewVnpGatewayNatRule(ctx, "exampleVnpGatewayNatRule", &network.VnpGatewayNatRuleArgs{
    			ResourceGroupName: exampleResourceGroup.Name,
    			VpnGatewayId:      exampleVpnGateway.ID(),
    			ExternalAddressSpaceMappings: pulumi.StringArray{
    				pulumi.String("192.168.21.0/26"),
    			},
    			InternalAddressSpaceMappings: pulumi.StringArray{
    				pulumi.String("10.4.0.0/26"),
    			},
    		})
    		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 exampleVirtualWan = new azure.network.VirtualWan("exampleVirtualWan", {
        resourceGroupName: exampleResourceGroup.name,
        location: exampleResourceGroup.location,
    });
    const exampleVirtualHub = new azure.network.VirtualHub("exampleVirtualHub", {
        resourceGroupName: exampleResourceGroup.name,
        location: exampleResourceGroup.location,
        addressPrefix: "10.0.1.0/24",
        virtualWanId: exampleVirtualWan.id,
    });
    const exampleVpnGateway = new azure.network.VpnGateway("exampleVpnGateway", {
        location: exampleResourceGroup.location,
        resourceGroupName: exampleResourceGroup.name,
        virtualHubId: exampleVirtualHub.id,
    });
    const exampleVnpGatewayNatRule = new azure.network.VnpGatewayNatRule("exampleVnpGatewayNatRule", {
        resourceGroupName: exampleResourceGroup.name,
        vpnGatewayId: exampleVpnGateway.id,
        externalAddressSpaceMappings: ["192.168.21.0/26"],
        internalAddressSpaceMappings: ["10.4.0.0/26"],
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
    example_virtual_wan = azure.network.VirtualWan("exampleVirtualWan",
        resource_group_name=example_resource_group.name,
        location=example_resource_group.location)
    example_virtual_hub = azure.network.VirtualHub("exampleVirtualHub",
        resource_group_name=example_resource_group.name,
        location=example_resource_group.location,
        address_prefix="10.0.1.0/24",
        virtual_wan_id=example_virtual_wan.id)
    example_vpn_gateway = azure.network.VpnGateway("exampleVpnGateway",
        location=example_resource_group.location,
        resource_group_name=example_resource_group.name,
        virtual_hub_id=example_virtual_hub.id)
    example_vnp_gateway_nat_rule = azure.network.VnpGatewayNatRule("exampleVnpGatewayNatRule",
        resource_group_name=example_resource_group.name,
        vpn_gateway_id=example_vpn_gateway.id,
        external_address_space_mappings=["192.168.21.0/26"],
        internal_address_space_mappings=["10.4.0.0/26"])
    

    Example coming soon!

    Create VnpGatewayNatRule Resource

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

    Constructor syntax

    new VnpGatewayNatRule(name: string, args: VnpGatewayNatRuleArgs, opts?: CustomResourceOptions);
    @overload
    def VnpGatewayNatRule(resource_name: str,
                          args: VnpGatewayNatRuleArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def VnpGatewayNatRule(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          external_address_space_mappings: Optional[Sequence[str]] = None,
                          internal_address_space_mappings: Optional[Sequence[str]] = None,
                          resource_group_name: Optional[str] = None,
                          vpn_gateway_id: Optional[str] = None,
                          ip_configuration_id: Optional[str] = None,
                          mode: Optional[str] = None,
                          name: Optional[str] = None,
                          type: Optional[str] = None)
    func NewVnpGatewayNatRule(ctx *Context, name string, args VnpGatewayNatRuleArgs, opts ...ResourceOption) (*VnpGatewayNatRule, error)
    public VnpGatewayNatRule(string name, VnpGatewayNatRuleArgs args, CustomResourceOptions? opts = null)
    public VnpGatewayNatRule(String name, VnpGatewayNatRuleArgs args)
    public VnpGatewayNatRule(String name, VnpGatewayNatRuleArgs args, CustomResourceOptions options)
    
    type: azure:network:VnpGatewayNatRule
    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 VnpGatewayNatRuleArgs
    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 VnpGatewayNatRuleArgs
    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 VnpGatewayNatRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VnpGatewayNatRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VnpGatewayNatRuleArgs
    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 vnpGatewayNatRuleResource = new Azure.Network.VnpGatewayNatRule("vnpGatewayNatRuleResource", new()
    {
        ExternalAddressSpaceMappings = new[]
        {
            "string",
        },
        InternalAddressSpaceMappings = new[]
        {
            "string",
        },
        ResourceGroupName = "string",
        VpnGatewayId = "string",
        IpConfigurationId = "string",
        Mode = "string",
        Name = "string",
        Type = "string",
    });
    
    example, err := network.NewVnpGatewayNatRule(ctx, "vnpGatewayNatRuleResource", &network.VnpGatewayNatRuleArgs{
    	ExternalAddressSpaceMappings: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	InternalAddressSpaceMappings: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	ResourceGroupName: pulumi.String("string"),
    	VpnGatewayId:      pulumi.String("string"),
    	IpConfigurationId: pulumi.String("string"),
    	Mode:              pulumi.String("string"),
    	Name:              pulumi.String("string"),
    	Type:              pulumi.String("string"),
    })
    
    var vnpGatewayNatRuleResource = new VnpGatewayNatRule("vnpGatewayNatRuleResource", VnpGatewayNatRuleArgs.builder()
        .externalAddressSpaceMappings("string")
        .internalAddressSpaceMappings("string")
        .resourceGroupName("string")
        .vpnGatewayId("string")
        .ipConfigurationId("string")
        .mode("string")
        .name("string")
        .type("string")
        .build());
    
    vnp_gateway_nat_rule_resource = azure.network.VnpGatewayNatRule("vnpGatewayNatRuleResource",
        external_address_space_mappings=["string"],
        internal_address_space_mappings=["string"],
        resource_group_name="string",
        vpn_gateway_id="string",
        ip_configuration_id="string",
        mode="string",
        name="string",
        type="string")
    
    const vnpGatewayNatRuleResource = new azure.network.VnpGatewayNatRule("vnpGatewayNatRuleResource", {
        externalAddressSpaceMappings: ["string"],
        internalAddressSpaceMappings: ["string"],
        resourceGroupName: "string",
        vpnGatewayId: "string",
        ipConfigurationId: "string",
        mode: "string",
        name: "string",
        type: "string",
    });
    
    type: azure:network:VnpGatewayNatRule
    properties:
        externalAddressSpaceMappings:
            - string
        internalAddressSpaceMappings:
            - string
        ipConfigurationId: string
        mode: string
        name: string
        resourceGroupName: string
        type: string
        vpnGatewayId: string
    

    VnpGatewayNatRule 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 VnpGatewayNatRule resource accepts the following input properties:

    ExternalAddressSpaceMappings List<string>
    A list of CIDR Ranges which are used for external mapping of the VPN Gateway Nat Rule.
    InternalAddressSpaceMappings List<string>
    A list of CIDR Ranges which are used for internal mapping of the VPN Gateway Nat Rule.
    ResourceGroupName string
    The Name of the Resource Group in which this VPN Gateway Nat Rule should be created. Changing this forces a new resource to be created.
    VpnGatewayId string
    The ID of the VPN Gateway that this VPN Gateway Nat Rule belongs to. Changing this forces a new resource to be created.
    IpConfigurationId string
    The ID of the IP Configuration this VPN Gateway Nat Rule applies to. Possible values are Instance0 and Instance1.
    Mode string
    The source Nat direction of the VPN Nat. Possible values are EgressSnat and IngressSnat. Defaults to EgressSnat. Changing this forces a new resource to be created.
    Name string
    The name which should be used for this VPN Gateway Nat Rule. Changing this forces a new resource to be created.
    Type string
    The type of the VPN Gateway Nat Rule. Possible values are Dynamic and Static. Defaults to Static. Changing this forces a new resource to be created.
    ExternalAddressSpaceMappings []string
    A list of CIDR Ranges which are used for external mapping of the VPN Gateway Nat Rule.
    InternalAddressSpaceMappings []string
    A list of CIDR Ranges which are used for internal mapping of the VPN Gateway Nat Rule.
    ResourceGroupName string
    The Name of the Resource Group in which this VPN Gateway Nat Rule should be created. Changing this forces a new resource to be created.
    VpnGatewayId string
    The ID of the VPN Gateway that this VPN Gateway Nat Rule belongs to. Changing this forces a new resource to be created.
    IpConfigurationId string
    The ID of the IP Configuration this VPN Gateway Nat Rule applies to. Possible values are Instance0 and Instance1.
    Mode string
    The source Nat direction of the VPN Nat. Possible values are EgressSnat and IngressSnat. Defaults to EgressSnat. Changing this forces a new resource to be created.
    Name string
    The name which should be used for this VPN Gateway Nat Rule. Changing this forces a new resource to be created.
    Type string
    The type of the VPN Gateway Nat Rule. Possible values are Dynamic and Static. Defaults to Static. Changing this forces a new resource to be created.
    externalAddressSpaceMappings List<String>
    A list of CIDR Ranges which are used for external mapping of the VPN Gateway Nat Rule.
    internalAddressSpaceMappings List<String>
    A list of CIDR Ranges which are used for internal mapping of the VPN Gateway Nat Rule.
    resourceGroupName String
    The Name of the Resource Group in which this VPN Gateway Nat Rule should be created. Changing this forces a new resource to be created.
    vpnGatewayId String
    The ID of the VPN Gateway that this VPN Gateway Nat Rule belongs to. Changing this forces a new resource to be created.
    ipConfigurationId String
    The ID of the IP Configuration this VPN Gateway Nat Rule applies to. Possible values are Instance0 and Instance1.
    mode String
    The source Nat direction of the VPN Nat. Possible values are EgressSnat and IngressSnat. Defaults to EgressSnat. Changing this forces a new resource to be created.
    name String
    The name which should be used for this VPN Gateway Nat Rule. Changing this forces a new resource to be created.
    type String
    The type of the VPN Gateway Nat Rule. Possible values are Dynamic and Static. Defaults to Static. Changing this forces a new resource to be created.
    externalAddressSpaceMappings string[]
    A list of CIDR Ranges which are used for external mapping of the VPN Gateway Nat Rule.
    internalAddressSpaceMappings string[]
    A list of CIDR Ranges which are used for internal mapping of the VPN Gateway Nat Rule.
    resourceGroupName string
    The Name of the Resource Group in which this VPN Gateway Nat Rule should be created. Changing this forces a new resource to be created.
    vpnGatewayId string
    The ID of the VPN Gateway that this VPN Gateway Nat Rule belongs to. Changing this forces a new resource to be created.
    ipConfigurationId string
    The ID of the IP Configuration this VPN Gateway Nat Rule applies to. Possible values are Instance0 and Instance1.
    mode string
    The source Nat direction of the VPN Nat. Possible values are EgressSnat and IngressSnat. Defaults to EgressSnat. Changing this forces a new resource to be created.
    name string
    The name which should be used for this VPN Gateway Nat Rule. Changing this forces a new resource to be created.
    type string
    The type of the VPN Gateway Nat Rule. Possible values are Dynamic and Static. Defaults to Static. Changing this forces a new resource to be created.
    external_address_space_mappings Sequence[str]
    A list of CIDR Ranges which are used for external mapping of the VPN Gateway Nat Rule.
    internal_address_space_mappings Sequence[str]
    A list of CIDR Ranges which are used for internal mapping of the VPN Gateway Nat Rule.
    resource_group_name str
    The Name of the Resource Group in which this VPN Gateway Nat Rule should be created. Changing this forces a new resource to be created.
    vpn_gateway_id str
    The ID of the VPN Gateway that this VPN Gateway Nat Rule belongs to. Changing this forces a new resource to be created.
    ip_configuration_id str
    The ID of the IP Configuration this VPN Gateway Nat Rule applies to. Possible values are Instance0 and Instance1.
    mode str
    The source Nat direction of the VPN Nat. Possible values are EgressSnat and IngressSnat. Defaults to EgressSnat. Changing this forces a new resource to be created.
    name str
    The name which should be used for this VPN Gateway Nat Rule. Changing this forces a new resource to be created.
    type str
    The type of the VPN Gateway Nat Rule. Possible values are Dynamic and Static. Defaults to Static. Changing this forces a new resource to be created.
    externalAddressSpaceMappings List<String>
    A list of CIDR Ranges which are used for external mapping of the VPN Gateway Nat Rule.
    internalAddressSpaceMappings List<String>
    A list of CIDR Ranges which are used for internal mapping of the VPN Gateway Nat Rule.
    resourceGroupName String
    The Name of the Resource Group in which this VPN Gateway Nat Rule should be created. Changing this forces a new resource to be created.
    vpnGatewayId String
    The ID of the VPN Gateway that this VPN Gateway Nat Rule belongs to. Changing this forces a new resource to be created.
    ipConfigurationId String
    The ID of the IP Configuration this VPN Gateway Nat Rule applies to. Possible values are Instance0 and Instance1.
    mode String
    The source Nat direction of the VPN Nat. Possible values are EgressSnat and IngressSnat. Defaults to EgressSnat. Changing this forces a new resource to be created.
    name String
    The name which should be used for this VPN Gateway Nat Rule. Changing this forces a new resource to be created.
    type String
    The type of the VPN Gateway Nat Rule. Possible values are Dynamic and Static. Defaults to Static. Changing this forces a new resource to be created.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VnpGatewayNatRule 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 VnpGatewayNatRule Resource

    Get an existing VnpGatewayNatRule 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?: VnpGatewayNatRuleState, opts?: CustomResourceOptions): VnpGatewayNatRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            external_address_space_mappings: Optional[Sequence[str]] = None,
            internal_address_space_mappings: Optional[Sequence[str]] = None,
            ip_configuration_id: Optional[str] = None,
            mode: Optional[str] = None,
            name: Optional[str] = None,
            resource_group_name: Optional[str] = None,
            type: Optional[str] = None,
            vpn_gateway_id: Optional[str] = None) -> VnpGatewayNatRule
    func GetVnpGatewayNatRule(ctx *Context, name string, id IDInput, state *VnpGatewayNatRuleState, opts ...ResourceOption) (*VnpGatewayNatRule, error)
    public static VnpGatewayNatRule Get(string name, Input<string> id, VnpGatewayNatRuleState? state, CustomResourceOptions? opts = null)
    public static VnpGatewayNatRule get(String name, Output<String> id, VnpGatewayNatRuleState state, CustomResourceOptions options)
    resources:  _:    type: azure:network:VnpGatewayNatRule    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:
    ExternalAddressSpaceMappings List<string>
    A list of CIDR Ranges which are used for external mapping of the VPN Gateway Nat Rule.
    InternalAddressSpaceMappings List<string>
    A list of CIDR Ranges which are used for internal mapping of the VPN Gateway Nat Rule.
    IpConfigurationId string
    The ID of the IP Configuration this VPN Gateway Nat Rule applies to. Possible values are Instance0 and Instance1.
    Mode string
    The source Nat direction of the VPN Nat. Possible values are EgressSnat and IngressSnat. Defaults to EgressSnat. Changing this forces a new resource to be created.
    Name string
    The name which should be used for this VPN Gateway Nat Rule. Changing this forces a new resource to be created.
    ResourceGroupName string
    The Name of the Resource Group in which this VPN Gateway Nat Rule should be created. Changing this forces a new resource to be created.
    Type string
    The type of the VPN Gateway Nat Rule. Possible values are Dynamic and Static. Defaults to Static. Changing this forces a new resource to be created.
    VpnGatewayId string
    The ID of the VPN Gateway that this VPN Gateway Nat Rule belongs to. Changing this forces a new resource to be created.
    ExternalAddressSpaceMappings []string
    A list of CIDR Ranges which are used for external mapping of the VPN Gateway Nat Rule.
    InternalAddressSpaceMappings []string
    A list of CIDR Ranges which are used for internal mapping of the VPN Gateway Nat Rule.
    IpConfigurationId string
    The ID of the IP Configuration this VPN Gateway Nat Rule applies to. Possible values are Instance0 and Instance1.
    Mode string
    The source Nat direction of the VPN Nat. Possible values are EgressSnat and IngressSnat. Defaults to EgressSnat. Changing this forces a new resource to be created.
    Name string
    The name which should be used for this VPN Gateway Nat Rule. Changing this forces a new resource to be created.
    ResourceGroupName string
    The Name of the Resource Group in which this VPN Gateway Nat Rule should be created. Changing this forces a new resource to be created.
    Type string
    The type of the VPN Gateway Nat Rule. Possible values are Dynamic and Static. Defaults to Static. Changing this forces a new resource to be created.
    VpnGatewayId string
    The ID of the VPN Gateway that this VPN Gateway Nat Rule belongs to. Changing this forces a new resource to be created.
    externalAddressSpaceMappings List<String>
    A list of CIDR Ranges which are used for external mapping of the VPN Gateway Nat Rule.
    internalAddressSpaceMappings List<String>
    A list of CIDR Ranges which are used for internal mapping of the VPN Gateway Nat Rule.
    ipConfigurationId String
    The ID of the IP Configuration this VPN Gateway Nat Rule applies to. Possible values are Instance0 and Instance1.
    mode String
    The source Nat direction of the VPN Nat. Possible values are EgressSnat and IngressSnat. Defaults to EgressSnat. Changing this forces a new resource to be created.
    name String
    The name which should be used for this VPN Gateway Nat Rule. Changing this forces a new resource to be created.
    resourceGroupName String
    The Name of the Resource Group in which this VPN Gateway Nat Rule should be created. Changing this forces a new resource to be created.
    type String
    The type of the VPN Gateway Nat Rule. Possible values are Dynamic and Static. Defaults to Static. Changing this forces a new resource to be created.
    vpnGatewayId String
    The ID of the VPN Gateway that this VPN Gateway Nat Rule belongs to. Changing this forces a new resource to be created.
    externalAddressSpaceMappings string[]
    A list of CIDR Ranges which are used for external mapping of the VPN Gateway Nat Rule.
    internalAddressSpaceMappings string[]
    A list of CIDR Ranges which are used for internal mapping of the VPN Gateway Nat Rule.
    ipConfigurationId string
    The ID of the IP Configuration this VPN Gateway Nat Rule applies to. Possible values are Instance0 and Instance1.
    mode string
    The source Nat direction of the VPN Nat. Possible values are EgressSnat and IngressSnat. Defaults to EgressSnat. Changing this forces a new resource to be created.
    name string
    The name which should be used for this VPN Gateway Nat Rule. Changing this forces a new resource to be created.
    resourceGroupName string
    The Name of the Resource Group in which this VPN Gateway Nat Rule should be created. Changing this forces a new resource to be created.
    type string
    The type of the VPN Gateway Nat Rule. Possible values are Dynamic and Static. Defaults to Static. Changing this forces a new resource to be created.
    vpnGatewayId string
    The ID of the VPN Gateway that this VPN Gateway Nat Rule belongs to. Changing this forces a new resource to be created.
    external_address_space_mappings Sequence[str]
    A list of CIDR Ranges which are used for external mapping of the VPN Gateway Nat Rule.
    internal_address_space_mappings Sequence[str]
    A list of CIDR Ranges which are used for internal mapping of the VPN Gateway Nat Rule.
    ip_configuration_id str
    The ID of the IP Configuration this VPN Gateway Nat Rule applies to. Possible values are Instance0 and Instance1.
    mode str
    The source Nat direction of the VPN Nat. Possible values are EgressSnat and IngressSnat. Defaults to EgressSnat. Changing this forces a new resource to be created.
    name str
    The name which should be used for this VPN Gateway Nat Rule. Changing this forces a new resource to be created.
    resource_group_name str
    The Name of the Resource Group in which this VPN Gateway Nat Rule should be created. Changing this forces a new resource to be created.
    type str
    The type of the VPN Gateway Nat Rule. Possible values are Dynamic and Static. Defaults to Static. Changing this forces a new resource to be created.
    vpn_gateway_id str
    The ID of the VPN Gateway that this VPN Gateway Nat Rule belongs to. Changing this forces a new resource to be created.
    externalAddressSpaceMappings List<String>
    A list of CIDR Ranges which are used for external mapping of the VPN Gateway Nat Rule.
    internalAddressSpaceMappings List<String>
    A list of CIDR Ranges which are used for internal mapping of the VPN Gateway Nat Rule.
    ipConfigurationId String
    The ID of the IP Configuration this VPN Gateway Nat Rule applies to. Possible values are Instance0 and Instance1.
    mode String
    The source Nat direction of the VPN Nat. Possible values are EgressSnat and IngressSnat. Defaults to EgressSnat. Changing this forces a new resource to be created.
    name String
    The name which should be used for this VPN Gateway Nat Rule. Changing this forces a new resource to be created.
    resourceGroupName String
    The Name of the Resource Group in which this VPN Gateway Nat Rule should be created. Changing this forces a new resource to be created.
    type String
    The type of the VPN Gateway Nat Rule. Possible values are Dynamic and Static. Defaults to Static. Changing this forces a new resource to be created.
    vpnGatewayId String
    The ID of the VPN Gateway that this VPN Gateway Nat Rule belongs to. Changing this forces a new resource to be created.

    Import

    VPN Gateway Nat Rules can be imported using the resource id, e.g.

     $ pulumi import azure:network/vnpGatewayNatRule:VnpGatewayNatRule example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.Network/vpnGateways/vpnGateway1/natRules/natRule1
    

    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.