Hello @Bagve, Swanand
The error message you're encountering occurs when you try to create an App Service or an App Service Slot in an App Service Plan that is specifically dedicated to hosting Azure Functions. Azure Functions uses a specific type of App Service Plan called an Elastic Premium Plan or Consumption Plan. These plans are designed exclusively for Azure Functions to provide dynamic scaling and lower costs based on the actual usage of your functions.
To resolve this issue, you have two options:
- Create a new App Service Plan for the App Service: If you need to create an App Service, you must create a separate App Service Plan that is not dedicated to Azure Functions. After the new App Service Plan has been created, you can use it for your App Service or App Service Slot.
- Create an Azure Function App instead of an App Service: If you intended to create an Azure Function App, make sure to choose the "Function App" resource type instead of "App Service" or "Web App" when creating the resource. To create a new Azure Function App, follow these steps: After the new Azure Function App has been created, you can deploy your functions to it. By following one of these options, you should be able to resolve the error and create the desired resource without any issues.