Hi @Punit katnalli,
Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.
To activate the "Always On" feature for your Azure Functions, you must switch from the Consumption plan to a dedicated App Service plan (Basic, Standard, Premium). The "Always On" feature isn't supported in the Consumption plan since the platform automatically handles the lifecycle of the function app.
Follow these steps to enable "Always On" in a dedicated App Service plan:
- To upgrade to a Dedicated App Service Plan, go to your Function App in the Azure Portal and select "Scale up (App Service plan)" under Settings. Choose a plan that supports "Always On" (Basic, Standard, Premium).
- Once your Function App is running on a dedicated App Service plan, go to the "Configuration" option under the "Settings" section, click on the "General settings" tab and set the "Always On" option to "On". Save the changes.
For further clarification, please refer to the following documentation:
Dedicated hosting plans for Azure Functions
I hope this information helps you understand and resolve your issue. If you have any further concerns, please feel free to reach out.