New-AzApplicationGatewayFirewallPolicySetting
Creates a policy setting for the firewall policy
Note
This is the previous version of our documentation. Please consult the most recent version for up-to-date information.
Syntax
New-AzApplicationGatewayFirewallPolicySetting
[-Mode <String>]
[-State <String>]
[-DisableRequestBodyCheck]
[-MaxRequestBodySizeInKb <Int32>]
[-MaxFileUploadInMb <Int32>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The New-AzApplicationGatewayFirewallPolicySetting creates a policy settings for a firewall policy.
Examples
Example 1
PS C:\> $condition = New-AzApplicationGatewayFirewallPolicySetting -State $enabledState -Mode $enabledMode -DisableRequestBodyCheck -MaxFileUploadInMb $fileUploadLimitInMb -MaxRequestBodySizeInKb $maxRequestBodySizeInKb
The command creates a policy setting with state as $enabledState, mode as $enabledMode, RequestBodyCheck as false, FileUploadLimitInMb as $fileUploadLimitInMb and MaxRequestBodySizeInKb as $$maxRequestBodySizeInKb. The new policySettings is stored to $condition.
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 |
Diables the requestBodyCheck in policy settings of the firewall policy.
| Type: | SwitchParameter |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Maximum fileUpload size in MB.
| Type: | Int32 |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
MaxRequestBodySizeInKb in policy settings of the firewall policy.
| Type: | Int32 |
| Position: | Named |
| Default value: | 128 |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Firewall Mode in policy settings of the firewall policy.
| Type: | String |
| Accepted values: | Prevention, Detection |
| Position: | Named |
| Default value: | Detection |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
State variable in policy settings of the firewall policy.
| Type: | String |
| Accepted values: | Disabled, Enabled |
| Position: | Named |
| Default value: | Enabled |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Inputs
None