简体   繁体   中英

How To Configure TLS Mutual Authentication for Azure Web App through PowerShell?

According to the docs you can set ClientCertEnabled through the ARMClient Tool. You can nowadays also use https://resources.azure.com to do so or even set it as property in ARM Templates.

Is there any possibility to set it directly through Azure PowerShell? I found that retrieving an app through Get-AzureRmWebApp also states if ClientCertificates are enabled or not.

Yes, you can set it on the underlying resource. Sample:

$Resource = Get-AzureRmResource -ResourceGroupName $resourceGroupName -ResourceType Microsoft.Web/sites -ResourceName $resourceName -ApiVersion 2016-08-01
$Resource.Properties.clientCertEnabled = "True"
$Resource | Set-AzureRmResource -Force

HTH

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM