Set-AzApplicationGatewaySslPolicy
Modifies the SSL policy of an application gateway.
Note
This is the previous version of our documentation. Please consult the most recent version for up-to-date information.
Syntax
Set-AzApplicationGatewaySslPolicy
-ApplicationGateway <PSApplicationGateway>
[-DisabledSslProtocols <String[]>]
[-PolicyType <String>]
[-PolicyName <String>]
[-CipherSuite <String[]>]
[-MinProtocolVersion <String>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Set-AzApplicationGatewaySslPolicy cmdlet modifies the SSL policy of an application gateway.
Examples
Example 1
PS C:\>$AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
PS C:\> $AppGw = Set-AzApplicationGatewaySslPolicy -ApplicationGateway $getgw -PolicyType Predefined -PolicyName AppGwSslPolicy20170401
The first command gets the application gateway named ApplicationGateway01 and stores it in the $AppGw variable. This second command modifies the ssl policy to a policy type Predefined and policy name AppGwSslPolicy20170401.
Example 2
Modifies the SSL policy of an application gateway. (autogenerated)
Set-AzApplicationGatewaySslPolicy -ApplicationGateway <PSApplicationGateway> -CipherSuite 'TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256' -MinProtocolVersion TLSv1_0 -PolicyType Predefined
Parameters
Specifies the application gateway of the SSL policy that this cmdlet modifies.
| Type: | PSApplicationGateway |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Ssl cipher suites to be enabled in the specified order to application gateway
| Type: | String[] |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Prompts you for confirmation before running the cmdlet.
| Type: | SwitchParameter |
| Aliases: | cf |
| Position: | Named |
| Default value: | False |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
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 |
Specifies which protocols are disabled. The acceptable values for this parameter are:
- TLSv1_0
- TLSv1_1
- TLSv1_2
| Type: | String[] |
| Accepted values: | TLSv1_0, TLSv1_1, TLSv1_2 |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Minimum version of Ssl protocol to be supported on application gateway
| Type: | String |
| Accepted values: | TLSv1_0, TLSv1_1, TLSv1_2 |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Name of Ssl predefined policy
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Type of Ssl Policy
| Type: | String |
| Accepted values: | Predefined, Custom |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Shows what would happen if the cmdlet runs. The cmdlet is not run.
| Type: | SwitchParameter |
| Aliases: | wi |
| Position: | Named |
| Default value: | False |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Inputs
Outputs
Notes
- Keywords: azure, azurerm, arm, resource, management, manager, network, networking