Microsoft.Network vpnGateways/natRules 2024-01-01
Bicep resource definition
The vpnGateways/natRules resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Network/vpnGateways/natRules resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.Network/vpnGateways/natRules@2024-01-01' = {
parent: resourceSymbolicName
name: 'string'
properties: {
externalMappings: [
{
addressSpace: 'string'
portRange: 'string'
}
]
internalMappings: [
{
addressSpace: 'string'
portRange: 'string'
}
]
ipConfigurationId: 'string'
mode: 'string'
type: 'string'
}
}
Property values
Microsoft.Network/vpnGateways/natRules
Name | Description | Value |
---|---|---|
name | The resource name | string (required) |
parent | In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource. For more information, see Child resource outside parent resource. |
Symbolic name for resource of type: vpnGateways |
properties | Properties of the VpnGateway NAT rule. | VpnGatewayNatRuleProperties |
VpnGatewayNatRuleProperties
Name | Description | Value |
---|---|---|
externalMappings | The private IP address external mapping for NAT. | VpnNatRuleMapping[] |
internalMappings | The private IP address internal mapping for NAT. | VpnNatRuleMapping[] |
ipConfigurationId | The IP Configuration ID this NAT rule applies to. | string |
mode | The Source NAT direction of a VPN NAT. | 'EgressSnat' 'IngressSnat' |
type | The type of NAT rule for VPN NAT. | 'Dynamic' 'Static' |
VpnNatRuleMapping
Name | Description | Value |
---|---|---|
addressSpace | Address space for Vpn NatRule mapping. | string |
portRange | Port range for Vpn NatRule mapping. | string |
ARM template resource definition
The vpnGateways/natRules resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Network/vpnGateways/natRules resource, add the following JSON to your template.
{
"type": "Microsoft.Network/vpnGateways/natRules",
"apiVersion": "2024-01-01",
"name": "string",
"properties": {
"externalMappings": [
{
"addressSpace": "string",
"portRange": "string"
}
],
"internalMappings": [
{
"addressSpace": "string",
"portRange": "string"
}
],
"ipConfigurationId": "string",
"mode": "string",
"type": "string"
}
}
Property values
Microsoft.Network/vpnGateways/natRules
Name | Description | Value |
---|---|---|
apiVersion | The api version | '2024-01-01' |
name | The resource name | string (required) |
properties | Properties of the VpnGateway NAT rule. | VpnGatewayNatRuleProperties |
type | The resource type | 'Microsoft.Network/vpnGateways/natRules' |
VpnGatewayNatRuleProperties
Name | Description | Value |
---|---|---|
externalMappings | The private IP address external mapping for NAT. | VpnNatRuleMapping[] |
internalMappings | The private IP address internal mapping for NAT. | VpnNatRuleMapping[] |
ipConfigurationId | The IP Configuration ID this NAT rule applies to. | string |
mode | The Source NAT direction of a VPN NAT. | 'EgressSnat' 'IngressSnat' |
type | The type of NAT rule for VPN NAT. | 'Dynamic' 'Static' |
VpnNatRuleMapping
Name | Description | Value |
---|---|---|
addressSpace | Address space for Vpn NatRule mapping. | string |
portRange | Port range for Vpn NatRule mapping. | string |
Terraform (AzAPI provider) resource definition
The vpnGateways/natRules resource type can be deployed with operations that target:
- Resource groups
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Network/vpnGateways/natRules resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Network/vpnGateways/natRules@2024-01-01"
name = "string"
body = jsonencode({
properties = {
externalMappings = [
{
addressSpace = "string"
portRange = "string"
}
]
internalMappings = [
{
addressSpace = "string"
portRange = "string"
}
]
ipConfigurationId = "string"
mode = "string"
type = "string"
}
})
}
Property values
Microsoft.Network/vpnGateways/natRules
Name | Description | Value |
---|---|---|
name | The resource name | string (required) |
parent_id | The ID of the resource that is the parent for this resource. | ID for resource of type: vpnGateways |
properties | Properties of the VpnGateway NAT rule. | VpnGatewayNatRuleProperties |
type | The resource type | "Microsoft.Network/vpnGateways/natRules@2024-01-01" |
VpnGatewayNatRuleProperties
Name | Description | Value |
---|---|---|
externalMappings | The private IP address external mapping for NAT. | VpnNatRuleMapping[] |
internalMappings | The private IP address internal mapping for NAT. | VpnNatRuleMapping[] |
ipConfigurationId | The IP Configuration ID this NAT rule applies to. | string |
mode | The Source NAT direction of a VPN NAT. | 'EgressSnat' 'IngressSnat' |
type | The type of NAT rule for VPN NAT. | 'Dynamic' 'Static' |
VpnNatRuleMapping
Name | Description | Value |
---|---|---|
addressSpace | Address space for Vpn NatRule mapping. | string |
portRange | Port range for Vpn NatRule mapping. | string |