Search code examples
azureazure-cli

Programmatically Configure HTTPS Only for Azure Function App


Is there a way to programmatically enable the HTTPS Only flag on a custom domain of an Azure Function App? I've been using the CLI quite extensively and have been pleased with the comprehensive coverage it provides, but I can't seem to figure this out out.


Solution

  • Try the command as below.

    az functionapp update  --name '<function name>' --resource-group '<resource group name>' --set httpsOnly=true
    

    enter image description here