Add-AzApplicationGatewaySslProfile
Bir uygulama ağ geçidine SSL profili ekler.
Syntax
Add-AzApplicationGatewaySslProfile
-ApplicationGateway <PSApplicationGateway>
-Name <String>
[-SslPolicy <PSApplicationGatewaySslPolicy>]
[-ClientAuthConfiguration <PSApplicationGatewayClientAuthConfiguration>]
[-TrustedClientCertificates <PSApplicationGatewayTrustedClientCertificate[]>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Add-AzApplicationGatewaySslProfile cmdlet'i bir uygulama ağ geçidine SSL profili ekler. SSL profili HTTPS Dinleyicilerine uygulanır.
Örnekler
Örnek 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
İlk komut, uygulama ağ geçidini alır ve $AppGw değişkeninde depolar. İkinci komut yeni bir SSL ilkesi oluşturur ve $sslPolicy değişkeninde depolar. Üçüncü ve dördüncü komut, iki yeni güvenilen istemci CA sertifika zinciri oluşturur ve bunları $ClientCert 01 ve $ClientCert 02 değişkenlerinde depolar. Beşinci komut, ssl ilkesine ve güvenilen istemci CA sertifika zincirlerine sahip SSL profilini uygulama ağ geçidi $AppGw ekler.
Parametreler
-ApplicationGateway
applicationGateway
Type: | PSApplicationGateway |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ClientAuthConfiguration
İstemci kimlik doğrulaması yapılandırma ayarları
Type: | PSApplicationGatewayClientAuthConfiguration |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
Azure ile iletişim için kullanılan kimlik bilgileri, hesap, kiracı ve abonelik.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
SSL profilinin adı
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SslPolicy
SSL ilkesi
Type: | PSApplicationGatewaySslPolicy |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-TrustedClientCertificates
Güvenilen istemci CA sertifika zincirleri
Type: | PSApplicationGatewayTrustedClientCertificate[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Girişler
Çıkışlar
İlişkili Bağlantılar
Azure PowerShell
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin