New-AzFirewallPolicyNetworkRule
Skapa en ny nätverksregel för Azure Firewall Policy
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
Cmdleten New-AzFirewallPolicyNetworkRule skapar en nätverksregel för en Azure Firewall-princip.
Exempel
Exempel 1
New-AzFirewallPolicyNetworkRule -Name NRC1 -Protocol "TCP" -SourceAddress "192.168.0.0/16" -DestinationAddress * -DestinationPort *
Det här exemplet skapar en nätverksregel med källadressen, protokollet, måladressen och målporten
Parametrar
-DefaultProfile
Autentiseringsuppgifter, konto, klientorganisation och prenumeration som används för kommunikation med Azure.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Description
Beskrivningen av regeln
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DestinationAddress
Regelns måladresser
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DestinationFqdn
Regelns mål-FQDN
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DestinationIpGroup
Regelns mål-ipgroups
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DestinationPort
Regelns målportar
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Namnet på nätverksregeln
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Protocol
Regelns protokoll
Type: | String[] |
Accepted values: | Any, TCP, UDP, ICMP |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SourceAddress
Regelns källadresser
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SourceIpGroup
Regelns käll-ipgroups
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Indata
None
Utdata
Azure PowerShell
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för