Add-AzureApplicationGatewaySslCertificate

Adds an SSL certificate to an Application Gateway.

Note

The cmdlets referenced in this documentation are for managing legacy Azure resources that use Azure Service Manager (ASM) APIs. This legacy PowerShell module isn't recommended when creating new resources since ASM is scheduled for retirement. For more information, see Azure Service Manager retirement.

The Az PowerShell module is the recommended PowerShell module for managing Azure Resource Manager (ARM) resources with PowerShell.

Syntax

Add-AzureApplicationGatewaySslCertificate
   -Name <String>
   -CertificateName <String>
   -Password <String>
   -CertificateFile <String>
   [-Profile <AzureSMProfile>]
   [<CommonParameters>]

Description

The Add-AzureApplicationGatewaySslCertificate cmdlet adds a Secure Sockets Layer (SSL) certificate to an Azure Application Gateway.

Examples

Example 1: Add an SSL certificate

PS C:\> Add-AzureApplicationGatewaySslCertificate -Name "ApplicationGateway08" -CertificateName "SslCertificate13" -Password "password" -CertificateFile "c:\Certs\sslCertificate.pfx"

This command adds an SSL certificate named SslCertificate13 to the Application Gateway named ApplicationGateway08. The command specifies the path of the certificate file and the password for the certificate.

Parameters

-CertificateFile

Specifies the path of an SSL certificate file. This cmdlet adds the certificate in the file that this parameter specifies.

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

-CertificateName

Specifies the name of an SSL certificate. This cmdlet adds the certificate that this parameter specifies.

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

-Name

Specifies the name of the Application Gateway to which this cmdlet adds an SSL certificate.

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

-Password

Specifies the password of the SSL certificate that this cmdlet adds.

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

-Profile

Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.

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

Inputs

String

Outputs

Microsoft.WindowsAzure.Management.ApplicationGateway.Models.ApplicationGatewayOperationResponse