Azure Functions Tips: disable the home page for a function app

massimobonanni

Massimo Bonanni

Posted on April 11, 2023

Azure Functions Tips: disable the home page for a function app

When you create a Functions App in Azure, you choose its name and Azure provides you the URL of the home page for the app.

The URL of your Function App in the Azure portal

You have this URL even your Function App doesn't contain any Http Trigger Functions and if you try to navigate to that url, you can see the following page:

The default welcome page for the Function App

If you want, you can disable the welcome page using the AzureWebJobsDisableHomepage setting in the function app configuration.
You disable the welcome page setting the Function App configuration as in the following picture:

The disable welcome page configuration

With this configuration, if someone tries to browse the previous url, he gets an HTTP Status code 204 (no content).

💖 💪 🙅 🚩
massimobonanni
Massimo Bonanni

Posted on April 11, 2023

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related