Get-AzApplicationGatewayTrustedRootCertificate
從應用程式閘道取得具有特定名稱的受信任跟證書。
語法
Get-AzApplicationGatewayTrustedRootCertificate
[-Name <String>]
-ApplicationGateway <PSApplicationGateway>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Get-AzApplicationGatewayTrustedRootCertificate Cmdlet 會從應用程式閘道取得具有特定名稱的受信任跟證書。
範例
範例 1
$gw = Get-AzApplicationGateway -Name $appgwName -ResourceGroupName $resgpName
$trustedRootCert = Get-AzApplicationGatewayTrustedRootCertificate -ApplicationGateway $gw -Name $certName
第一個命令會取得應用程式閘道,並將它儲存在 $gw 變數中。 第二個命令會從應用程式閘道取得具有指定名稱的受信任跟證書。
參數
-ApplicationGateway
applicationGateway
類型: | PSApplicationGateway |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-DefaultProfile
用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。
類型: | IAzureContextContainer |
別名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-Name
TrustedRoot 憑證的名稱
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
輸入
輸出
PSApplicationGatewayTrustedRootCertificate