I'm automating the deployment of an Azure Web App via powershell. I can't figure out how you force "HTTPS Only" to on. The code below is my best guess, but it isn't working. Any ideas?
$properties = @{"httpsOnly" = $true}
Set-AzureRmResource -PropertyObject $properties -ResourceGroupName
$resourcegroupname -ResourceType Microsoft.Web/sites/config -ResourceName
$webappname/web -ApiVersion 2015-08-01 -Force

2016-08-01? I'd also pass-Debugto see the request that gets sent on the wire.