I have deployed an application in azure web app service. But while accessing the url i am getting application error .

Aswathi Anil 0 Reputation points
2024-12-27T08:36:21.7066667+00:00

I have deployed a containerized application in azure web app service. The deployment was successful .But while accessing the url, the webpage is displaying application error . The error says :

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. Resource ID: /subscriptions/83130aba-cb89-4f7e-b969-23e91bb6029f/resourceGroups/myresourcegroup/providers/Microsoft.Web/sites/botperf/slots/h4fcbnbmcpfsbrht Status Code: 404 Status Message: The Resource 'Microsoft.Web/sites/botperf/slots/h4fcbnbmcpfsbrht' under resource group 'myresourcegroup' was not found.

Every resources are present in my resource group" Myresourcegroup" . Nothing is deleted or renamed. I have a container registry, blob storage container and this azure app service web app under this resource group.

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

1 answer

Sort by: Most helpful
  1. Sina Salam 14,616 Reputation points
    2024-12-28T19:30:18.05+00:00

    Hello Aswathi Anil,

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

    I understand that you are having error with Status Code: 404 Status Message: The Resource 'Microsoft.Web/sites/botperf/slots/h4fcbnbmcpfsbrht' under resource group 'myresourcegroup' was not found while accessing the url of your web app, despite the fact you have other resources like Azure Blob et al in the Resources Group.

    The 404 error with the resource not found message usually occurs due to the following:

    1. Misconfigured deployment slot or routing.
    2. Missing or incorrect resource references in the configuration.
    3. DNS or mapping issues for the custom domain or default Azure URL.

    The below are the steps to resolve the issue: 1

    1. First, confirm that the deployment slot h4fcbnbmcpfsbrht exists and is active as a Resource exists by Go to the Azure Portal and navigate to > Resource Group > App Service > Deployment Slots.
    2. Secondly, under Deployment Slots, check that traffic is routed correctly to the slot (h4fcbnbmcpfsbrht) if you're accessing the slot URL directly and verify whether the slot is configured to swap traffic with the production slot.
    3. Also, validate the Web App Configuration by Go to the Configuration section of your Azure Web App Service and check, make sure correct container registry URL and credentials are configured and correct paths for the app.
    4. Also, inspect Logs such as Log Stream from the Azure portal to view real-time application logs, then enable Application Logging and Container Logging to check if the container failed to start.
    5. Fifth, if accessing via a custom domain, ensure the domain is correctly mapped to the App Service. Use Diagnose and Solve Problems > DNS Validation. For the default Azure URL, confirm no issues with the FQDN (e.g., botperf.azurewebsites.net).
    6. Finally, if configurations and logs show no issues, redeploy the container using az webapp create or directly from the container registry. After making the changes, access the slot URL and validate whether the 404 error persists.

    This is an alternative step to take if the issue persists:

    • Manually Recreate the Slot by delete and recreate the deployment slot if misconfiguration is suspected, reconfigure traffic routing and redeploy the container, enable App Service Diagnostic Tools, use the Diagnose and Solve Problems feature to identify deployment slot-specific issues.
    • Then, contact Azure Support via your Portal.

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


    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.