We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
We recommend using Azure Native.
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:
- External
Address List<string>Space Mappings - A list of CIDR Ranges which are used for external mapping of the VPN Gateway Nat Rule.
- Internal
Address List<string>Space Mappings - A list of CIDR Ranges which are used for internal mapping of the VPN Gateway Nat Rule.
- Resource
Group stringName - 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 stringId - 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 stringId - The ID of the IP Configuration this VPN Gateway Nat Rule applies to. Possible values are
Instance0andInstance1. - Mode string
- The source Nat direction of the VPN Nat. Possible values are
EgressSnatandIngressSnat. Defaults toEgressSnat. 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
DynamicandStatic. Defaults toStatic. Changing this forces a new resource to be created.
- External
Address []stringSpace Mappings - A list of CIDR Ranges which are used for external mapping of the VPN Gateway Nat Rule.
- Internal
Address []stringSpace Mappings - A list of CIDR Ranges which are used for internal mapping of the VPN Gateway Nat Rule.
- Resource
Group stringName - 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 stringId - 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 stringId - The ID of the IP Configuration this VPN Gateway Nat Rule applies to. Possible values are
Instance0andInstance1. - Mode string
- The source Nat direction of the VPN Nat. Possible values are
EgressSnatandIngressSnat. Defaults toEgressSnat. 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
DynamicandStatic. Defaults toStatic. Changing this forces a new resource to be created.
- external
Address List<String>Space Mappings - A list of CIDR Ranges which are used for external mapping of the VPN Gateway Nat Rule.
- internal
Address List<String>Space Mappings - A list of CIDR Ranges which are used for internal mapping of the VPN Gateway Nat Rule.
- resource
Group StringName - 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 StringId - 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 StringId - The ID of the IP Configuration this VPN Gateway Nat Rule applies to. Possible values are
Instance0andInstance1. - mode String
- The source Nat direction of the VPN Nat. Possible values are
EgressSnatandIngressSnat. Defaults toEgressSnat. 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
DynamicandStatic. Defaults toStatic. Changing this forces a new resource to be created.
- external
Address string[]Space Mappings - A list of CIDR Ranges which are used for external mapping of the VPN Gateway Nat Rule.
- internal
Address string[]Space Mappings - A list of CIDR Ranges which are used for internal mapping of the VPN Gateway Nat Rule.
- resource
Group stringName - 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 stringId - 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 stringId - The ID of the IP Configuration this VPN Gateway Nat Rule applies to. Possible values are
Instance0andInstance1. - mode string
- The source Nat direction of the VPN Nat. Possible values are
EgressSnatandIngressSnat. Defaults toEgressSnat. 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
DynamicandStatic. Defaults toStatic. Changing this forces a new resource to be created.
- external_
address_ Sequence[str]space_ mappings - A list of CIDR Ranges which are used for external mapping of the VPN Gateway Nat Rule.
- internal_
address_ Sequence[str]space_ mappings - A list of CIDR Ranges which are used for internal mapping of the VPN Gateway Nat Rule.
- resource_
group_ strname - 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_ strid - 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_ strid - The ID of the IP Configuration this VPN Gateway Nat Rule applies to. Possible values are
Instance0andInstance1. - mode str
- The source Nat direction of the VPN Nat. Possible values are
EgressSnatandIngressSnat. Defaults toEgressSnat. 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
DynamicandStatic. Defaults toStatic. Changing this forces a new resource to be created.
- external
Address List<String>Space Mappings - A list of CIDR Ranges which are used for external mapping of the VPN Gateway Nat Rule.
- internal
Address List<String>Space Mappings - A list of CIDR Ranges which are used for internal mapping of the VPN Gateway Nat Rule.
- resource
Group StringName - 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 StringId - 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 StringId - The ID of the IP Configuration this VPN Gateway Nat Rule applies to. Possible values are
Instance0andInstance1. - mode String
- The source Nat direction of the VPN Nat. Possible values are
EgressSnatandIngressSnat. Defaults toEgressSnat. 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
DynamicandStatic. Defaults toStatic. 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) -> VnpGatewayNatRulefunc 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.
- External
Address List<string>Space Mappings - A list of CIDR Ranges which are used for external mapping of the VPN Gateway Nat Rule.
- Internal
Address List<string>Space Mappings - A list of CIDR Ranges which are used for internal mapping of the VPN Gateway Nat Rule.
- Ip
Configuration stringId - The ID of the IP Configuration this VPN Gateway Nat Rule applies to. Possible values are
Instance0andInstance1. - Mode string
- The source Nat direction of the VPN Nat. Possible values are
EgressSnatandIngressSnat. Defaults toEgressSnat. 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.
- Resource
Group stringName - 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
DynamicandStatic. Defaults toStatic. Changing this forces a new resource to be created. - Vpn
Gateway stringId - 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 []stringSpace Mappings - A list of CIDR Ranges which are used for external mapping of the VPN Gateway Nat Rule.
- Internal
Address []stringSpace Mappings - A list of CIDR Ranges which are used for internal mapping of the VPN Gateway Nat Rule.
- Ip
Configuration stringId - The ID of the IP Configuration this VPN Gateway Nat Rule applies to. Possible values are
Instance0andInstance1. - Mode string
- The source Nat direction of the VPN Nat. Possible values are
EgressSnatandIngressSnat. Defaults toEgressSnat. 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.
- Resource
Group stringName - 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
DynamicandStatic. Defaults toStatic. Changing this forces a new resource to be created. - Vpn
Gateway stringId - 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 List<String>Space Mappings - A list of CIDR Ranges which are used for external mapping of the VPN Gateway Nat Rule.
- internal
Address List<String>Space Mappings - A list of CIDR Ranges which are used for internal mapping of the VPN Gateway Nat Rule.
- ip
Configuration StringId - The ID of the IP Configuration this VPN Gateway Nat Rule applies to. Possible values are
Instance0andInstance1. - mode String
- The source Nat direction of the VPN Nat. Possible values are
EgressSnatandIngressSnat. Defaults toEgressSnat. 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.
- resource
Group StringName - 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
DynamicandStatic. Defaults toStatic. Changing this forces a new resource to be created. - vpn
Gateway StringId - 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 string[]Space Mappings - A list of CIDR Ranges which are used for external mapping of the VPN Gateway Nat Rule.
- internal
Address string[]Space Mappings - A list of CIDR Ranges which are used for internal mapping of the VPN Gateway Nat Rule.
- ip
Configuration stringId - The ID of the IP Configuration this VPN Gateway Nat Rule applies to. Possible values are
Instance0andInstance1. - mode string
- The source Nat direction of the VPN Nat. Possible values are
EgressSnatandIngressSnat. Defaults toEgressSnat. 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.
- resource
Group stringName - 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
DynamicandStatic. Defaults toStatic. Changing this forces a new resource to be created. - vpn
Gateway stringId - 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_ Sequence[str]space_ mappings - A list of CIDR Ranges which are used for external mapping of the VPN Gateway Nat Rule.
- internal_
address_ Sequence[str]space_ mappings - A list of CIDR Ranges which are used for internal mapping of the VPN Gateway Nat Rule.
- ip_
configuration_ strid - The ID of the IP Configuration this VPN Gateway Nat Rule applies to. Possible values are
Instance0andInstance1. - mode str
- The source Nat direction of the VPN Nat. Possible values are
EgressSnatandIngressSnat. Defaults toEgressSnat. 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_ strname - 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
DynamicandStatic. Defaults toStatic. Changing this forces a new resource to be created. - vpn_
gateway_ strid - 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 List<String>Space Mappings - A list of CIDR Ranges which are used for external mapping of the VPN Gateway Nat Rule.
- internal
Address List<String>Space Mappings - A list of CIDR Ranges which are used for internal mapping of the VPN Gateway Nat Rule.
- ip
Configuration StringId - The ID of the IP Configuration this VPN Gateway Nat Rule applies to. Possible values are
Instance0andInstance1. - mode String
- The source Nat direction of the VPN Nat. Possible values are
EgressSnatandIngressSnat. Defaults toEgressSnat. 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.
- resource
Group StringName - 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
DynamicandStatic. Defaults toStatic. Changing this forces a new resource to be created. - vpn
Gateway StringId - 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
azurermTerraform Provider.
We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
