根据docs,您可以通过ARMClient工具设置ClientCertEnabled。如今,您还可以使用https://resources.azure.com进行操作,甚至可以将其设置为ARM模板中的属性。

是否可以直接通过Azure PowerShell进行设置?我发现通过Get-AzureRmWebApp检索应用程序还会指出是否启用了ClientCertificates。

最佳答案

是的,您可以在基础资源上进行设置。样品:

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


HTH

关于powershell - 如何通过PowerShell为Azure Web App配置TLS相互身份验证?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/41585662/

10-15 21:53