Remove-AzApplicationGatewayAuthenticationCertificate
從應用程式閘道移除驗證憑證。
語法
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 從中移除驗證憑證的應用程式閘道名稱。
類型: | PSApplicationGateway |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-Confirm
在執行 Cmdlet 之前,提示您進行確認。
類型: | SwitchParameter |
別名: | cf |
Position: | Named |
預設值: | False |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-DefaultProfile
用於與 azure 通訊的認證、帳戶、租用戶和訂用帳戶。
類型: | IAzureContextContainer |
別名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-Name
指定此 Cmdlet 移除的驗證憑證名稱。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-WhatIf
顯示 Cmdlet 執行時會發生什麼事。 Cmdlet 未執行。
類型: | SwitchParameter |
別名: | wi |
Position: | Named |
預設值: | False |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
輸入
輸出
備註
- 關鍵詞:azure、azurerm、arm、resource、management、manager、network、networking