The ServerFarmCreationNotAllowed error typically indicates that there are restrictions on creating new server farms (App Service Plans) in your current subscription or resource group. Here are some steps you can take to troubleshoot and potentially resolve this issue:
- Check Subscription Limits: Ensure that your subscription type allows for the creation of new App Service Plans. Some subscriptions may have limitations on the number of resources that can be created.
- Resource Group Policies: Even if you have reviewed the subscription policies, double-check if there are any specific policies applied to the resource group where you are trying to create the Function App. Sometimes, policies can restrict the creation of certain resources.
- Region Availability: Since you mentioned trying different regions, ensure that the region you are attempting to create the Function App in supports the required App Service Plan type. Some regions may have restrictions on specific SKUs.
- Contact Support: If the issue persists, consider reaching out to Azure support for assistance. They can provide more detailed insights into your subscription and any specific limitations that may apply.
- Create in a New Resource Group: As a workaround, you might want to try creating the Function App in a new resource group to see if that resolves the issue, as different resource groups may have different policies or limits.
By following these steps, you should be able to identify the cause of the ServerFarmCreationNotAllowed error and take appropriate action to resolve it.
References: