Login-AzureRmAccount
$resourceGroupName = "MYRESOURCEGROUP"
$resourceName = "MYAPPSERVICE"
$webapp = Get-AzureRmResource `
-ResourceGroupName $resourceGroupName `
-ResourceType Microsoft.Web/sites/config `
-ResourceName "$resourceName/web" `
-ApiVersion 2016-08-01
$propertiesObject = $webapp.Properties
$propertiesObject.http20Enabled=$true
$propertiesObject.minTlsVersion="1.2"
Set-AzureRmResource `
-PropertyObject $propertiesObject `
-ResourceGroupName $resourceGroupName `
-ResourceType Microsoft.Web/sites/config `
-ResourceName "$resourceName/web" `
-ApiVersion 2016-08-01 `
-Force
Last active
April 24, 2018 10:51
-
-
Save nordineb/59c8be76b9d526e3b65c9481c3d6f060 to your computer and use it in GitHub Desktop.
Enable HTTP/2 and TLS 1.2 in Azure App Service
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment