How to deploy azure function without bad gateway error

rosasb 0 Reputation points
2025-02-15T00:22:49.99+00:00

I still keep getting this bad gateway error when I try to deploy a new azure function, I have tried to delete and deploy this function 5 times now, and I still keep getting this error. This is my first azure function. The account has owner role and I upgraded the plan from a free trial to pay as you go plan. Here is my subscription ID: 6854ba33-d406-42a5-b2c4-f63675c6b003. I already registered the Microsoft.web resource provider.    

ERROR: Deployment to resource group 'gh-glasses-ordering' failed. Additional details from the underlying API that might be helpful: At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details. {  "shellProps": {    "sessionId": "cfa45bf13b7e4d41ac4dab611fcbd204",    "extName": "HubsExtension",    "contentName": "DeploymentDetailsBlade",    "code": 404  },  "error": {    "message": "Deployment 'Microsoft.Web-FunctionApp-Portal-40f50b5a-b60c' could not be found. (Code: DeploymentNotFound)",    "code": 404,    "error": {      "content": {        "error": {          "code": "DeploymentNotFound",          "message": "Deployment 'Microsoft.Web-FunctionApp-Portal-40f50b5a-b60c' could not be found."        }      },      "headers": {        "cache-control": "no-cache",        "content-length": "131",        "content-type": "application/json; charset=utf-8",        "expires": "-1",        "pragma": "no-cache",        "x-ms-correlation-request-id": "86ae162d-6091-4a6b-9a3c-15bd1c107686",        "x-ms-failure-cause": "gateway",        "x-ms-ratelimit-remaining-subscription-global-reads": "3749",        "x-ms-ratelimit-remaining-subscription-reads": "249",        "x-ms-request-id": "86ae162d-6091-4a6b-9a3c-15bd1c107686",        "x-ms-routing-request-id": "WESTUS:20250215T000413Z:86ae162d-6091-4a6b-9a3c-15bd1c107686"      },      "httpStatusCode": 404    }  }}

I attached the har file when I f12 record the network activity. 

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

1 answer

Sort by: Most helpful
  1. Shireesha Eeraboina 3,435 Reputation points Microsoft External Staff Moderator
    2025-02-17T07:19:34.7166667+00:00

    Hi @rosasb ,

    Welcome to Microsoft Q&A Platform!

    As per the details you have provided that you can't be able to deploy the Azure function App, to provide you with the better solution could you please confirm the below?

    • Are you using any Bicep template or manually deploying through Azure portal?
    • At which region you are trying to deploy the resource?

     


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.