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:
- Misconfigured deployment slot or routing.
- Missing or incorrect resource references in the configuration.
- DNS or mapping issues for the custom domain or default Azure URL.
The below are the steps to resolve the issue: 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. - 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. - 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.
- 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.
- 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
). - 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.