Microsoft.Network vpnGateways/natRules 2020-08-01

The vpnGateways/natRules resource type can be deployed to: Resource groups.

To learn about resource group deployments, see Bicep or ARM template.

Template format

To create a Microsoft.Network/vpnGateways/natRules resource, add the following Bicep or JSON to your template.

resource symbolicname 'Microsoft.Network/vpnGateways/natRules@2020-08-01' = {
  name: 'string'
  properties: {
    externalMappings: [
      {
        addressSpace: 'string'
      }
    ]
    internalMappings: [
      {
        addressSpace: 'string'
      }
    ]
    ipConfigurationId: 'string'
    mode: 'string'
    type: 'string'
  }
}

Property values

vpnGateways/natRules

Name Description Value
type The resource type

For Bicep, set this value in the resource declaration.
'Microsoft.Network/vpnGateways/natRules'
apiVersion The resource api version

For Bicep, set this value in the resource declaration.
'2020-08-01'
name The resource name

See how to set names and types for child resources in Bicep or JSON ARM templates.
string (required)
properties Parameters for VpnGatewayNatRule. 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