Modifier

Partager via


Set-AzApplicationGatewaySslProfilePolicy

Modifies the SSL policy of an application gateway SSL profile.

Syntax

Set-AzApplicationGatewaySslProfilePolicy
   -SslProfile <PSApplicationGatewaySslProfile>
   [-DisabledSslProtocols <String[]>]
   [-PolicyType <String>]
   [-PolicyName <String>]
   [-CipherSuite <String[]>]
   [-MinProtocolVersion <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The Set-AzApplicationGatewaySslProfilePolicy cmdlet modifies the SSL policy of an application gateway SSL profile.

Examples

Example 1

$AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
$profile  = Get-AzApplicationGatewaySslProfile -Name "SslProfile01" -ApplicationGateway $AppGw
$profile = Set-AzApplicationGatewaySslProfilePolicy -SslProfile $profile -PolicyType Predefined -PolicyName AppGwSslPolicy20170401

The first command gets the application gateway named ApplicationGateway01 in the resource group named ResourceGroup01 and stores it in the $AppGw variable. The second command gets the ssl profile named SslProfile01 for $AppGw and stores the settings in the $profile variable. The last command modifies the ssl policy of the ssl profile object stored in $profile.

Parameters

-CipherSuite

Ssl cipher suites to be enabled in the specified order to application gateway

Type:String[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-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

-DisabledSslProtocols

List of SSL protocols to be disabled

Type:String[]
Accepted values:TLSv1_0, TLSv1_1, TLSv1_2, TLSv1_3
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-MinProtocolVersion

Minimum version of Ssl protocol to be supported on application gateway

Type:String
Accepted values:TLSv1_0, TLSv1_1, TLSv1_2, TLSv1_3
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-PolicyName

Name of Ssl predefined policy

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-PolicyType

Type of Ssl Policy

Type:String
Accepted values:Predefined, Custom, CustomV2
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-SslProfile

The application gateway SSL profile

Type:PSApplicationGatewaySslProfile
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

Inputs

PSApplicationGatewaySslProfile

Outputs

PSApplicationGatewaySslProfile