< Back

Get-AzureRmApplicationGatewaySslCertificate

Tue Jan 29, 2019 9:53 pm

NAME Get-AzureRmApplicationGatewaySslCertificate



SYNOPSIS

Gets an SSL certificate for an application gateway.





SYNTAX

Get-AzureRmApplicationGatewaySslCertificate -ApplicationGateway <PSApplicationGateway> [-DefaultProfile <IAzureContextContainer>] [-Name <String>]

[<CommonParameters>]





DESCRIPTION

The Get-AzureRmApplicationGatewaySslCertificate cmdlet gets an SSL certificate for an application gateway.





PARAMETERS

-ApplicationGateway <PSApplicationGateway>

Specifies the application gateway object that contains the SSL certificate.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

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 SSL certificate pool that this cmdlet gets.



Required? false

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.PSApplicationGatewaySslCertificate







NOTES









Example 1: Get a specific SSL certificate



PS C:\\>$AppGW = Get-AzureRmApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"

PS C:\\> $Cert = Get-AzureRmApplicationGatewaySslCertificate -Name "Cert01" -ApplicationGateway $AppGW



The first command gets the Application Gateway named ApplicationGateway01 and stores the result in the variable named $AppGW. The second command

gets the SSL certificate named Cert01 from the application gateway stored in the variable named $AppGW. The command stores the certificate in the

variable named $Cert.





Example 2: Get a list of SSL certificates



PS C:\\>$AppGW = Get-AzureRmApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"

PS C:\\> $Certs = Get-AzureRmApplicationGatewaySslCertificate -ApplicationGateway $AppGW



The first command gets the Application Gateway named ApplicationGateway01 and stores the result in the variable named $AppGW. This second command

gets a list of SSL certificates from the application gateway stored in the variable named $AppGW. The command then stores the results in the

variable named $Certs.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... ertificate

Add-AzureRmApplicationGatewaySslCertificate

New-AzureRmApplicationGatewaySslCertificate

Remove-AzureRmApplicationGatewaySslCertificate

Set-AzureRmApplicationGatewaySslCertificate