Couldn't able to create azure function

Muthu, Sathiamoorthy 1 Reputation point


I am trying to create the azure function. In my resource group, there is no other previous azure function is available. I selected the consumption(Serverless) and selected the hosting(storage account). I am getting the below error

{"code":"InvalidTemplateDeployment","message":"The template deployment 'Microsoft.Web-FunctionApp-Portal-fe3aa4a7-927f' is not valid according to the validation procedure. The tracking id is '1fad1de5-fc10-4f2a-89dd-506890f7ddca'. See inner errors for details.","details":[{"code":"ValidationForResourceFailed","message":"Validation failed for a resource. Check 'Error.Details[0]' for more information.","details":[{"code":"LinuxDynamicWorkersNotAllowedInResourceGroup","message":"Linux dynamic workers are not available in resource group "xxxxx". Use this link to learn more"}]}]}

Please help me resolve the error.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,212 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Manu Philip 16,966 Reputation points MVP

    Looks like, this is a known issue when the resource group where you try to create the Linux Function contains a certificate which is associated with one of the services like web app in the group. If you can't delete the certificate, try to create the function in a different resource group. If you are in a position to delete the certificate, try creating the function by after deleting it.

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    1 person found this answer helpful.
    0 comments No comments

  2. MayankBargali-MSFT 68,391 Reputation points

    @Muthu, Sathiamoorthy Thanks for reaching out. It looks like you are encountering an error when trying to create an Azure Function App in your resource group. The error message you're encountering suggests that the resource group you're using does not support Linux dynamic workers.

    It's possible that the resource group you're using has a different hosting plan or configuration that doesn't support Linux dynamic workers. To resolve this issue, you may need to create a new resource group that supports Linux dynamic workers, or switch to a different hosting plan that supports this feature.

    The same is documented here

    Feel free to get back to me if you have any queries or concerns.

    1 person found this answer helpful.
    0 comments No comments

  3. Guy Cutting 0 Reputation points

    I was experiencing the same issue. What solved it for me is that I switched my subscription from Free to Pay As You Go. Then the option to create functions in the portal appeared. I believe that Functions are one of the services that does not qualify for the free tier - you have to pay for them so you're not able to create Functions without a pay-as-you-go billing setup. Hopefully this helps.

    0 comments No comments