< Back
Set-AzureRmApplicationGatewaySslCertificate
Post
NAME Set-AzureRmApplicationGatewaySslCertificate
SYNOPSIS
Sets the goal state of an SSL certificate.
SYNTAX
Set-AzureRmApplicationGatewaySslCertificate -ApplicationGateway <PSApplicationGateway> -CertificateFile <String> [-DefaultProfile
<IAzureContextContainer>] -Name <String> -Password <SecureString> [<CommonParameters>]
DESCRIPTION
The Set-AzureRmApplicationGatewaySslCertificate cmdlet sets the goal state of an SSL certificate.
PARAMETERS
-ApplicationGateway <PSApplicationGateway>
Specifies the application gateway with which the Secure Socket Layer (SSL) certificate is associated.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
-CertificateFile <String>
Specifies the path of the SSL certificate.
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.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Password <SecureString>
Specifies the password of the SSL certificate.
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: Set the goal state of an SSL certificate
PS C:\\> $appGW = Get-AzureRmApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
PS C:\\> $password = ConvertTo-SecureString "P@ssw0rd" -AsPlainText -Force
PS C:\\> $cert = Set-AzureRmApplicationGatewaySslCertificate -ApplicationGateway $AppGW -Name "Cert01" -CertificateFile "D:\\cert01.pfx" -Password
$password
This command sets the goal state for an SSL certificate from the application gateway named ApplicationGateway01.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... ertificate
Add-AzureRmApplicationGatewaySslCertificate
Get-AzureRmApplicationGatewaySslCertificate
New-AzureRmApplicationGatewaySslCertificate
Remove-AzureRmApplicationGatewaySslCertificate
SYNOPSIS
Sets the goal state of an SSL certificate.
SYNTAX
Set-AzureRmApplicationGatewaySslCertificate -ApplicationGateway <PSApplicationGateway> -CertificateFile <String> [-DefaultProfile
<IAzureContextContainer>] -Name <String> -Password <SecureString> [<CommonParameters>]
DESCRIPTION
The Set-AzureRmApplicationGatewaySslCertificate cmdlet sets the goal state of an SSL certificate.
PARAMETERS
-ApplicationGateway <PSApplicationGateway>
Specifies the application gateway with which the Secure Socket Layer (SSL) certificate is associated.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
-CertificateFile <String>
Specifies the path of the SSL certificate.
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.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Password <SecureString>
Specifies the password of the SSL certificate.
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: Set the goal state of an SSL certificate
PS C:\\> $appGW = Get-AzureRmApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
PS C:\\> $password = ConvertTo-SecureString "P@ssw0rd" -AsPlainText -Force
PS C:\\> $cert = Set-AzureRmApplicationGatewaySslCertificate -ApplicationGateway $AppGW -Name "Cert01" -CertificateFile "D:\\cert01.pfx" -Password
$password
This command sets the goal state for an SSL certificate from the application gateway named ApplicationGateway01.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... ertificate
Add-AzureRmApplicationGatewaySslCertificate
Get-AzureRmApplicationGatewaySslCertificate
New-AzureRmApplicationGatewaySslCertificate
Remove-AzureRmApplicationGatewaySslCertificate