Remove-AzApplicationGatewayAuthenticationCertificate

從應用程式閘道移除驗證憑證。

Syntax

Remove-AzApplicationGatewayAuthenticationCertificate
      -Name <String>
      -ApplicationGateway <PSApplicationGateway>
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

Remove-AzApplicationGatewayAuthenticationCertificate Cmdlet 會從 Azure 應用程式閘道移除驗證憑證。

範例

範例 1:從應用程式閘道移除驗證憑證

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

第一個命令會取得名為 appGwName 的應用程式閘道,並將結果儲存在 $appgw 變數中。 第二個命令會從應用程式閘道中移除名為 cert01 的驗證憑證。 第三個命令會更新應用程式閘道。

參數

-ApplicationGateway

指定此 Cmdlet 從中移除驗證憑證的應用程式閘道名稱。

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

-Confirm

執行 Cmdlet 之前先提示您確認。

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Required:False
Accept pipeline input:False
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:True
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

顯示執行 Cmdlet 後會發生的情況。 未執行 Cmdlet。

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

輸入

PSApplicationGateway

輸出

PSApplicationGateway

備註

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