Partager via


New-AzApplicationGatewaySslProfile

Creates SSL profile for an application gateway.

Syntaxe

Default (Par défaut)

New-AzApplicationGatewaySslProfile
    -Name <String>
    [-SslPolicy <PSApplicationGatewaySslPolicy>]
    [-ClientAuthConfiguration <PSApplicationGatewayClientAuthConfiguration>]
    [-TrustedClientCertificates <PSApplicationGatewayTrustedClientCertificate[]>]
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

Description

The New-AzApplicationGatewaySslProfile cmdlet creates SSL profile for an application gateway. The ssl profile is configured on the HTTPS listeners.

Exemples

Example 1

$sslPolicy = New-AzApplicationGatewaySslPolicy -PolicyType Custom -MinProtocolVersion TLSv1_1 -CipherSuite "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256", "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384", "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA", "TLS_RSA_WITH_AES_128_GCM_SHA256"
$trustedClient01 = New-AzApplicationGatewayTrustedClientCertificate -Name "ClientCert01" -CertificateFile "C:\clientCAChain1.cer"
$profile = New-AzApplicationGatewaySslProfile -Name $sslProfile01Name -SslPolicy $sslPolicy -TrustedClientCertificates $trustedClient01

The first command creates a new SSL policy and stores it in the $sslPolicy variable. The second command creates a trusted client CA certificate chains and stores them in the $ClientCert01 variable. The third command create a new SSL profile with the the ssl policy and trusted client CA certificate chain.

Paramètres

-ClientAuthConfiguration

Client authentication configuration settings

Propriétés du paramètre

Type:PSApplicationGatewayClientAuthConfiguration
Valeur par défaut:None
Prend en charge les caractères génériques:False
DontShow:False

Jeux de paramètres

(All)
Position:Named
Obligatoire:False
Valeur du pipeline:False
Valeur du pipeline par nom de propriété:False
Valeur des arguments restants:False

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Propriétés du paramètre

Type:IAzureContextContainer
Valeur par défaut:None
Prend en charge les caractères génériques:False
DontShow:False
Alias:AzContext, AzureRmContext, AzureCredential

Jeux de paramètres

(All)
Position:Named
Obligatoire:False
Valeur du pipeline:False
Valeur du pipeline par nom de propriété:False
Valeur des arguments restants:False

-Name

The name of the SSL profile

Propriétés du paramètre

Type:String
Valeur par défaut:None
Prend en charge les caractères génériques:False
DontShow:False

Jeux de paramètres

(All)
Position:Named
Obligatoire:True
Valeur du pipeline:False
Valeur du pipeline par nom de propriété:False
Valeur des arguments restants:False

-SslPolicy

SSL policy

Propriétés du paramètre

Type:PSApplicationGatewaySslPolicy
Valeur par défaut:None
Prend en charge les caractères génériques:False
DontShow:False

Jeux de paramètres

(All)
Position:Named
Obligatoire:False
Valeur du pipeline:False
Valeur du pipeline par nom de propriété:False
Valeur des arguments restants:False

-TrustedClientCertificates

The trusted client CA certificate chains

Propriétés du paramètre

Type:

PSApplicationGatewayTrustedClientCertificate[]

Valeur par défaut:None
Prend en charge les caractères génériques:False
DontShow:False

Jeux de paramètres

(All)
Position:Named
Obligatoire:False
Valeur du pipeline:False
Valeur du pipeline par nom de propriété:False
Valeur des arguments restants:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Entrées

None

Sorties

PSApplicationGatewaySslProfile