Getting error - Resource not found in my app service

Dor 0 Reputation points
2025-04-03T07:50:28.29+00:00

Hello,

I'm trying to deploy a Next.js application using Azure App Service. I have created a YAML pipeline, and the deployment shows as successful. However, when I try to access the URL, I receive the following error:

"Resource not found. The resource was not found; it may have been deleted. If this was launched from a pinned tile on the dashboard, it should be removed."

I checked my deployment slots, and they are empty, which is expected since I don't need one.

Resource ID: /subscriptions/08b0ac81-a17e-421c-8c1b-41b59e58a3/resourceGroups/co-company/providers/Microsoft.Web/sites/trackflae/slots/apcaawgueceea5hs

How can I resolve this issue?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,635 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sina Salam 18,961 Reputation points
    2025-04-03T16:00:16.82+00:00

    Hello Dor,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    I understand that your deployment was successful because the pipeline completed, but the app might not have been deployed to the correct directory or was missing essential build files.

    Ensure that the App Service resource exists in the specified resource group https://learn.microsoft.com/en-us/azure/app-service/overview also, identify errors during the startup phase of the Next.js application - https://learn.microsoft.com/en-us/azure/app-service/troubleshoot-diagnostic-logs and https://blog.xmi.fr/posts/terraform-app-service-slots

    Another thing is your environment variables, connection strings, and settings should be corrected in Azure App Service - https://learn.microsoft.com/en-us/azure/app-service/configure-common

    You can check if the app is correctly mapped to a custom domain in Azure App Service - https://learn.microsoft.com/en-us/azure/app-service/app-service-web-tutorial-custom-domain then, restart the application to resolve potential transient issues - https://learn.microsoft.com/en-us/azure/app-service/manage-apps

    If the problem persists, use diagnostic tools or diagnose and solve problems in Azure App Service using this link - https://learn.microsoft.com/en-us/azure/app-service/overview-diagnostics or contact Microsoft support.

    I hope this is helpful! Do not hesitate to let me know if you have any other questions or clarifications.


    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.

    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.