你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Remove-AzApplicationGatewayTrustedClientCertificate

从应用程序网关中删除受信任的客户端 CA 证书链对象。

语法

Remove-AzApplicationGatewayTrustedClientCertificate
      -Name <String>
      -ApplicationGateway <PSApplicationGateway>
      [-DefaultProfile <IAzureContextContainer>]
      [<CommonParameters>]

说明

Remove-AzApplicationGatewayTrustedClientCertificate cmdlet 从应用程序网关中删除受信任的客户端 CA 证书链对象。

示例

示例 1

$gw = Get-AzApplicationGateway -Name $appgwName -ResourceGroupName $resgpName
$gw = Remove-AzApplicationGatewayTrustedClientCertificate -ApplicationGateway $gw -Name "TrustedClientCertificate01"
Set-AzApplicationGateway -ApplicationGateway $gw

第一个命令获取应用程序网关并将其存储在$gw变量中。 第二个命令从存储在 $gw 中的应用程序网关中删除名为“TrustedClientCertificate01”的受信任客户端 CA 证书链。 最后一个命令更新应用程序网关。

参数

-ApplicationGateway

applicationGateway

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

受信任的客户端 CA 证书链的名称

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

输入

PSApplicationGateway

输出

PSApplicationGateway