Get-AzApplicationGatewayAuthenticationCertificate

取得應用程式閘道的驗證憑證。

Syntax

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

Description

Get-AzApplicationGatewayAuthenticationCertificate Cmdlet 會取得 Azure 應用程式網關的驗證憑證。

範例

範例 1:取得指定的驗證憑證

$appgw = Get-AzApplicationGateway -ResourceGroupName "rg" -Name "appGwName"
$cert = Get-AzApplicationGatewayAuthenticationCertificate -Name "cert01" -ApplicationGateway $appgw

第一個命令會取得名為 appGwName 的應用程式閘道,並將其儲存在$appgw 變數中。 第二個命令會取得名為 cert01 的驗證憑證,並將它儲存在 $cert 變數中。

參數

-ApplicationGateway

指定此 Cmdlet 取得驗證憑證的應用程式閘道名稱。

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

-DefaultProfile

用於與 azure 通訊的認證、帳戶、租用戶和訂用帳戶。

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

指定這個 Cmdlet 取得的驗證憑證名稱。

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

輸入

PSApplicationGateway

輸出

PSApplicationGatewayAuthenticationCertificate

備註

  • 關鍵詞:azure、azurerm、arm、resource、management、manager、network、networking