< Back
Add-AzureRmApplicationGatewaySslCertificate
Post
NAME Add-AzureRmApplicationGatewaySslCertificate
SYNOPSIS
Adds an SSL certificate to an application gateway.
SYNTAX
Add-AzureRmApplicationGatewaySslCertificate -ApplicationGateway <PSApplicationGateway> -CertificateFile <String> [-DefaultProfile
<IAzureContextContainer>] -Name <String> -Password <SecureString> [<CommonParameters>]
DESCRIPTION
The Add-AzureRmApplicationGatewaySslCertificate cmdlet adds an SSL certificate to an application gateway.
PARAMETERS
-ApplicationGateway <PSApplicationGateway>
Specifies the name of application gateway to which this cmdlet adds an SSL certificate.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
-CertificateFile <String>
Specifies the .pfx file of an SSL certificate that this cmdlet adds.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Name <String>
Specifies the name of the SSL certificate that this cmdlet adds.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Password <SecureString>
Specifies the password of the SSL certificate that this cmdlet adds.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
System.String
OUTPUTS
Microsoft.Azure.Commands.Network.Models.PSApplicationGateway
NOTES
Example 1: Add an SSL certificate to an application gateway.
PS C:\\> $AppGW = Get-AzureRmApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
PS C:\\> $password = ConvertTo-SecureString "P@ssw0rd" -AsPlainText -Force
PS C:\\> $AppGW = Add-AzureRmApplicationGatewaySslCertificate -ApplicationGateway $AppGW -Name "Cert01" -CertificateFile "D:\\cert01.pfx" -Password
$password
This command gets an application gateway named ApplicationGateway01 and then adds an SSL certificate named Cert01 to it.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... ertificate
Get-AzureRmApplicationGatewaySslCertificate
New-AzureRmApplicationGatewaySslCertificate
Remove-AzureRmApplicationGatewaySslCertificate
Set-AzureRmApplicationGatewaySslCertificate
SYNOPSIS
Adds an SSL certificate to an application gateway.
SYNTAX
Add-AzureRmApplicationGatewaySslCertificate -ApplicationGateway <PSApplicationGateway> -CertificateFile <String> [-DefaultProfile
<IAzureContextContainer>] -Name <String> -Password <SecureString> [<CommonParameters>]
DESCRIPTION
The Add-AzureRmApplicationGatewaySslCertificate cmdlet adds an SSL certificate to an application gateway.
PARAMETERS
-ApplicationGateway <PSApplicationGateway>
Specifies the name of application gateway to which this cmdlet adds an SSL certificate.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
-CertificateFile <String>
Specifies the .pfx file of an SSL certificate that this cmdlet adds.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Name <String>
Specifies the name of the SSL certificate that this cmdlet adds.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Password <SecureString>
Specifies the password of the SSL certificate that this cmdlet adds.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
System.String
OUTPUTS
Microsoft.Azure.Commands.Network.Models.PSApplicationGateway
NOTES
Example 1: Add an SSL certificate to an application gateway.
PS C:\\> $AppGW = Get-AzureRmApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
PS C:\\> $password = ConvertTo-SecureString "P@ssw0rd" -AsPlainText -Force
PS C:\\> $AppGW = Add-AzureRmApplicationGatewaySslCertificate -ApplicationGateway $AppGW -Name "Cert01" -CertificateFile "D:\\cert01.pfx" -Password
$password
This command gets an application gateway named ApplicationGateway01 and then adds an SSL certificate named Cert01 to it.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... ertificate
Get-AzureRmApplicationGatewaySslCertificate
New-AzureRmApplicationGatewaySslCertificate
Remove-AzureRmApplicationGatewaySslCertificate
Set-AzureRmApplicationGatewaySslCertificate