1

I added SSL certifcate using the below:-

 New-AzureRmWebAppSSLBinding -WebAppName $app.SiteName -Thumbprint $new_thumbprint -Name $ssl_binding.Name -ResourceGroupName $app.ResourceGroup  

but i was wondering if:- Is it possible to update SSL configuration using powershell update SSL Configuration

What I am trying to do is:-
1) Change 'https only' to 'ON'
2) Minimum TLS version to '1.2'

using PS

1 Answer 1

2

I managed to figure it out.

# SET staging
$PropertiesObject = @{
    'httpsOnly' = 'true';
    'minTlsVersion' = '1.2'

}
Set-AzureRmResource -PropertyObject $PropertiesObject -ResourceGroupName RG-AUTHSERVER -ResourceType Microsoft.Web/sites/slots -ResourceName "authserver-web/staging" -ApiVersion 2016-08-01 -Force
# SET staging
$PropertiesObject = @{
    'minTlsVersion' = '1.2'

}
Set-AzureRmResource -PropertyObject $PropertiesObject -ResourceGroupName RG-AUTHSERVER -ResourceType Microsoft.Web/sites/slots/config -ResourceName "authserver-web/staging/web" -ApiVersion 2016-08-01 -Force
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.