How to Create Function on paid account in USA without "Validation failed for a resource" error

CrispyRat 0 Reputation points
2024-09-12T16:39:43.0466667+00:00

I am unable to "create function" in any region, anywhere. The error message is "deployment validation failed." Hosting plan is Consumption.

I just need a function to move data from a static website (storage page) to a queue.

Any advice would be appreciated- thanks!

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

1 answer

Sort by: Most helpful
  1. Ryan Hill 28,106 Reputation points Microsoft Employee
    2024-09-13T21:06:28.1166667+00:00

    Hi @CrispyRat

    If it's just a static web app, I would suggest using an Azure Static Web App and adding a function api directly to it; see Add an API to Azure Static Web Apps with Azure Functions I Microsoft Learn. Doesn't matter what stack you decide to use, your static site can call the API to perform the function.

    Beyond that, the error message isn't much to go on, and I get think of anything that would prevent you from creating the function app. There should be some additional details in the error message of the deployment operation. I would also try deploying your function app through VS Code or CLI, see what error messages I get there.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.