New-AzApplicationGatewaySslProfile
Creates SSL profile for an application gateway.
Note
This is the previous version of our documentation. Please consult the most recent version for up-to-date information.
Syntax
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.
Examples
Example 1
PS C:\> $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"
PS C:\> $trustedClient01 = New-AzApplicationGatewayTrustedClientCertificate -Name "ClientCert01" -CertificateFile "C:\clientCAChain1.cer"
PS C:\> $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.
Parameters
Client authentication configuration settings
| Type: | PSApplicationGatewayClientAuthConfiguration |
| Position: | Named |
| Default value: | None |
| 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 |
The name of the SSL profile
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
SSL policy
| Type: | PSApplicationGatewaySslPolicy |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
The trusted client CA certificate chains
| Type: | PSApplicationGatewayTrustedClientCertificate[] |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Inputs
None
Outputs
PSApplicationGatewaySslProfile