1

I Have an Azure Release Pipeline for my website. For one of the task in that Release Pipeline, i need to disable HTTPS ONLY option (its is available under SSL/TLS Blade in Azure Portal check below image). After that task is executed i want to turn ON that "HTTPS ONLY" again.

Is there a simple way simple way to do that?

enter image description here

PS: i have reviewed this question already but i don't want to use ARM Template

1 Answers1

5

You may use Azure CLI and Azure CLI task to achieve this. Here is the command:

az webapp update --resource-group <YourResourceGroupName> --name <YourWebAppName> --set HttpsOnly=true
Krzysztof Madej
  • 32,704
  • 10
  • 78
  • 107