New-AzFirewallPolicySnat
Creates SNAT configuration of PrivateRange and AutoLearnPrivateRanges for the firewall policy
Syntax
Default (Default)
New-AzFirewallPolicySnat
[-PrivateRange <String[]>]
[-AutoLearnPrivateRange]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The New-AzFirewallPolicySnat is used to configure Private Ranges and auto learn private ranges for a firewall policy.
Examples
Example 1
New-AzFirewallPolicySnat -PrivateRange @("3.3.0.0/24", "98.0.0.0/8","10.227.16.0/20") -AutoLearnPrivateRange
PrivateRange : ["3.3.0.0/24", "98.0.0.0/8","10.227.16.0/20"]
AutoLearnPrivateRanges : Enabled
This example configures private IP addresses/IP ranges to which traffic will not be SNATed and enables auto learn of private ip ranges in Firewall Policy.
Example 2
New-AzFirewallPolicySnat -PrivateRange @("3.3.0.0/24", "98.0.0.0/8","10.227.16.0/20")
PrivateRange : ["3.3.0.0/24", "98.0.0.0/8","10.227.16.0/20"]
AutoLearnPrivateRanges : Disabled
This example configures private IP addresses/IP ranges to which traffic will not be SNATed and disables auto learn of private ip ranges in Firewall Policy.
Parameters
-AutoLearnPrivateRange
Enable/disable auto learn private ranges. By default it is disabled.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Parameter properties
Type: | IAzureContextContainer |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-PrivateRange
The Private IP Range
Parameter properties
Type: | String[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.