Add-AzApplicationGatewaySslProfile
Ajoute un profil SSL à une passerelle d’application.
Syntax
Add-AzApplicationGatewaySslProfile
-ApplicationGateway <PSApplicationGateway>
-Name <String>
[-SslPolicy <PSApplicationGatewaySslPolicy>]
[-ClientAuthConfiguration <PSApplicationGatewayClientAuthConfiguration>]
[-TrustedClientCertificates <PSApplicationGatewayTrustedClientCertificate[]>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
L’applet de commande Add-AzApplicationGatewaySslProfile ajoute un profil SSL à une passerelle d’application. Le profil SSL est appliqué aux écouteurs HTTPS.
Exemples
Exemple 1
$AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
$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"
$trustedClient02 = New-AzApplicationGatewayTrustedClientCertificate -Name "ClientCert02" -CertificateFile "C:\clientCAChain2.cer"
$AppGw = Add-AzApplicationGatewaySslProfile -Name $sslProfile01Name -ApplicationGateway $AppGw -SslPolicy $sslPolicy -TrustedClientCertificates $trustedClient01,$trustedClient02
La première commande obtient la passerelle Application Gateway et la stocke dans la variable $AppGw. La deuxième commande crée une stratégie SSL et la stocke dans la variable $sslPolicy. La troisième et la quatrième commande crée deux chaînes de certificats d’autorité de certification clientes approuvées et les stocke dans les variables $ClientCert 01 et $ClientCert 02. La cinquième commande ajoute le profil SSL avec la stratégie ssl et les chaînes de certificats d’autorité de certification client approuvées à la passerelle d’application $AppGw.
Paramètres
-ApplicationGateway
ApplicationGateway
Type: | PSApplicationGateway |
Position: | Named |
valeur par défaut: | None |
Obligatoire: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ClientAuthConfiguration
Paramètres de configuration de l’authentification client
Type: | PSApplicationGatewayClientAuthConfiguration |
Position: | Named |
valeur par défaut: | None |
Obligatoire: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
Informations d’identification, compte, locataire et abonnement utilisés pour la communication avec Azure.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
valeur par défaut: | None |
Obligatoire: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Nom du profil SSL
Type: | String |
Position: | Named |
valeur par défaut: | None |
Obligatoire: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SslPolicy
Stratégie SSL
Type: | PSApplicationGatewaySslPolicy |
Position: | Named |
valeur par défaut: | None |
Obligatoire: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-TrustedClientCertificates
Chaînes de certificats d’autorité de certification client approuvées
Type: | PSApplicationGatewayTrustedClientCertificate[] |
Position: | Named |
valeur par défaut: | None |
Obligatoire: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Entrées
Sorties
Liens associés
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour