New-AzFirewallPolicyNetworkRule
Create a new Azure Firewall Policy Network Rule
Syntax
New-AzFirewallPolicyNetworkRule
-Name <String>
[-Description <String>]
-SourceAddress <String[]>
[-DestinationAddress <String[]>]
[-DestinationIpGroup <String[]>]
-DestinationPort <String[]>
[-DestinationFqdn <String[]>]
-Protocol <String[]>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
New-AzFirewallPolicyNetworkRule
-Name <String>
[-Description <String>]
-SourceIpGroup <String[]>
[-DestinationAddress <String[]>]
[-DestinationIpGroup <String[]>]
-DestinationPort <String[]>
[-DestinationFqdn <String[]>]
-Protocol <String[]>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The New-AzFirewallPolicyNetworkRule cmdlet creates a Network rule for a Azure Firewall Policy.
Examples
Example 1
New-AzFirewallPolicyNetworkRule -Name NRC1 -Protocol "TCP" -SourceAddress "192.168.0.0/16" -DestinationAddress * -DestinationPort *
This example creates an network rule with the source address, protocol , destination address and destination port
Parameters
-DefaultProfile
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 |
-Description
The description of the rule
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DestinationAddress
The destination addresses of the rule
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DestinationFqdn
The destination FQDN of the rule
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DestinationIpGroup
The destination ipgroups of the rule
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DestinationPort
The destination ports of the rule
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
The name of the Network Rule
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Protocol
The protocols of the rule
Type: | String[] |
Accepted values: | Any, TCP, UDP, ICMP |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SourceAddress
The source addresses of the rule
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SourceIpGroup
The source ipgroups of the rule
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
None
Outputs
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure PowerShell