I'm new to Azure and have set up a new account with free credits. However, whenever I attempt to create a new Azure Function, I encounter the error 'ServerFarmCreationNotAllowed.' I've tried deploying in multiple regions, but nothing seems to work. The error message provides details about 'InvalidTemplateDeployment' and indicates my subscription isn't allowed to create or update the server farm. Has anyone else faced this issue, and do you have any suggestions on how to resolve it?
3 Answers
It sounds like a frequent issue. You might want to open a support ticket with Azure support if it keeps happening. In the meantime, trying another region could be worth a shot, although you've mentioned you've already done that. Just keep at it, and don’t hesitate to reach out for support if things don't improve.
This issue seems pretty common on the free trial. Sometimes, just waiting helps, or you may want to consider upgrading to a pay-as-you-go plan. That could remove the restrictions you're experiencing.
Have you considered using the Flex Consumption SKU instead? ServerFarm refers to an App Service Plan, which requires dedicated compute resources. Since you're using free credits, you probably don’t need those for your functions. Switching to Flex might solve your problem!

Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically