New-AzFirewallPolicyApplicationRule
Create a new Azure Firewall Policy Application Rule
Note
This is the previous version of our documentation. Please consult the most recent version for up-to-date information.
Syntax
New-AzFirewallPolicyApplicationRule
-Name <String>
[-Description <String>]
-SourceAddress <String[]>
-TargetFqdn <String[]>
-Protocol <String[]>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
New-AzFirewallPolicyApplicationRule
-Name <String>
[-Description <String>]
-SourceAddress <String[]>
-FqdnTag <String[]>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
New-AzFirewallPolicyApplicationRule
-Name <String>
[-Description <String>]
-SourceAddress <String[]>
-WebCategory <String[]>
-Protocol <String[]>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
New-AzFirewallPolicyApplicationRule
-Name <String>
[-Description <String>]
-SourceAddress <String[]>
-TargetUrl <String[]>
-Protocol <String[]>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
New-AzFirewallPolicyApplicationRule
-Name <String>
[-Description <String>]
-SourceIpGroup <String[]>
-TargetUrl <String[]>
-Protocol <String[]>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
New-AzFirewallPolicyApplicationRule
-Name <String>
[-Description <String>]
-SourceIpGroup <String[]>
-TargetFqdn <String[]>
-Protocol <String[]>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
New-AzFirewallPolicyApplicationRule
-Name <String>
[-Description <String>]
-SourceIpGroup <String[]>
-FqdnTag <String[]>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
New-AzFirewallPolicyApplicationRule
-Name <String>
[-Description <String>]
-SourceIpGroup <String[]>
-WebCategory <String[]>
-Protocol <String[]>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The New-AzFirewallPolicyApplicationRule cmdlet creates an Application Rule for a Azure Firewall Policy.
Examples
Example 1
PS C:\> New-AzFirewallPolicyApplicationRule -Name AR1 -SourceAddress "192.168.0.0/16" -Protocol "http:80","https:443" -TargetFqdn "*.ro", "*.com"
This example creates an application rule with the source address, protocol and the target fqdns.
Example 2
PS C:\> New-AzFirewallPolicyApplicationRule -Name AR1 -SourceAddress "192.168.0.0/16" -Protocol "http:80","https:443" -WebCategory "DatingAndPersonals", "Tasteless"
This example creates an application rule with the source address, protocol and web categories.
Parameters
The credentials, account, tenant, and subscription used for communication with Azure.
| Type: | IAzureContextContainer |
| Aliases: | AzContext, AzureRmContext, AzureCredential |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
The description of the rule
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
The FQDN Tags of the rule
| Type: | String[] |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
The name of the Application Rule
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
The protocols of the rule
| Type: | String[] |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
The source addresses of the rule
| Type: | String[] |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
The source ipgroups of the rule
| Type: | String[] |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
The target FQDNs of the rule
| Type: | String[] |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
The Target Url of the rule
| Type: | String[] |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Indicates terminating TLS
| Type: | SwitchParameter |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
The Web Categories of the rule
| Type: | String[] |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Inputs
None