New-AzFirewallPolicyNatRule
Create a new Azure Firewall Policy NAT Rule
New-AzFirewallPolicyNatRule
-Name <String>
[-Description <String>]
-SourceAddress <String[]>
-DestinationAddress <String[]>
-DestinationPort <String[]>
-Protocol <String[]>
-TranslatedAddress <String>
-TranslatedPort <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
New-AzFirewallPolicyNatRule
-Name <String>
[-Description <String>]
-SourceAddress <String[]>
-DestinationAddress <String[]>
-DestinationPort <String[]>
-Protocol <String[]>
-TranslatedFqdn <String>
-TranslatedPort <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
New-AzFirewallPolicyNatRule
-Name <String>
[-Description <String>]
-SourceIpGroup <String[]>
-DestinationAddress <String[]>
-DestinationPort <String[]>
-Protocol <String[]>
-TranslatedAddress <String>
-TranslatedPort <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
New-AzFirewallPolicyNatRule
-Name <String>
[-Description <String>]
-SourceIpGroup <String[]>
-DestinationAddress <String[]>
-DestinationPort <String[]>
-Protocol <String[]>
-TranslatedFqdn <String>
-TranslatedPort <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
The New-AzFirewallPolicyNatRule cmdlet creates a NAT rule for a Azure Firewall Policy.
New-AzFirewallPolicyNatRule -Name NatRule1 -Protocol "TCP" -SourceAddress "192.168.0.0/16" -DestinationAddress 10.20.30.40 -DestinationPort 1000 -TranslatedAddress "192.168.0.1" -TranslatedPort "100"
This example creates a NAT rule with the source address, protocol, destination address, destination port, translated address, and translated port.
New-AzFirewallPolicyNatRule -Name NatRule1 -Protocol "TCP" -SourceAddress "192.168.0.0/16" -DestinationAddress 10.20.30.40 -DestinationPort 1000 -TranslatedFqdn "internalhttp.server.net" -TranslatedPort "100"
This example creates a NAT rule with the source address, protocol, destination address, destination port, translated fqdn, and translated port.
The credentials, account, tenant, and subscription used for communication with Azure.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
The description of the rule
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
The destination addresses of the rule. This has to be Public IP of the Firewall.
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
The destination ports of the rule
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
The name of the NAT Rule Collection
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
The protocols of the rule
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
The source addresses of the rule
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
The source ipgroups of the rule
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
The translated address for this NAT rule
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
The translated FQDN for this NAT rule
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
The translated port for this NAT rule
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
None
Azure PowerShell-feedback
Azure PowerShell is een open source project. Selecteer een koppeling om feedback te geven: