Azure Portal- The service is unavailable Error 503 - azure

I'm new to Microsoft Azure. I've created a service which is running in the Azure Portal. See the attached image. I have created a pipeline in Azure and created a release but I keep getting service unavailable see the error below.
> 2020-12-29T12:02:14.3749416Z ##[error]Failed to deploy web package to App Service.
2020-12-29T12:02:14.3769585Z ##[error]Error: Error: Failed to deploy web package to App Service. Site Unavailable (CODE: 503
On the Azure Portal when I click on the URL of my service I also get a service unavailable message. I know it's a free trial I'm running but I checked the status and the credits are still available to use.

Thanks for asking question! The simplest way is to restart your app. On the Azure Portal, on your app’s blade, you have the options to stop or restart your app.
Also, App Service provides an intelligent and interactive experience to help you troubleshoot your app with no configuration required. Access App Service diagnostics, for this navigate to your App Service app. In the left navigation, click on Diagnose and solve problems.
Scaling might be helpful: For more information on scaling, see Scale an app in Azure App Service.
Refer to Troubleshoot HTTP errors of "502 bad gateway" and "503 service unavailable" in Azure App Service

Related

Azure Web app service becomes unavailable for a few hours

My azure web app service suddenly becomes unavailable for a few hours.
The app hosts .net core 3.1 web API.
All the requests are pending for a few minutes and then fail. Restarting the app doesn't help. Stopping and starting again too.
Applications insights don't show those failed requests.
Please help, the app serves a lot of users and requests!
I have run Availability and Performance diagnostics at the time of the crash:
Everything looks just fine except the failed requests.
As suggested earlier , you can debug why the web app went unavailable by running the availability & performance under Diagnose and solve problems in the portal.
You can also refer this Azure documentation to troubleshoot Troubleshoot HTTP errors of "502 bad gateway" and "503 service unavailable" in Azure App Service
if you are still not able to find any insights , why the webapp went unavailable you can open a discussion over Microsoft Q&A or please create a technical support ticker by following the link where technical support team would help you in troubleshooting the issue from platform end.

Failed to deploy web package to App Service. Ip Forbidden (CODE: 403)

I have an App Service that has a private endpoint and virtual network configured.
I deploy to this App Service from Azure DevOps pipeline that uses a Virtual Machine Scale Set that is in the same virtual network as the App Service. I deploy to a production App Service slot.
However, I still get the following error:
2021-10-29T11:24:48.0057934Z Package deployment using ZIP Deploy initiated.
2021-10-29T11:24:48.0198779Z ##[error]Failed to deploy web package to App Service.
2021-10-29T11:24:48.0217137Z ##[error]Error: Error: Failed to deploy web package to App
Service. Ip Forbidden (CODE: 403)
What could block the IP?
Thank you Christian Vorhemus posting your suggestion as an answer to help other community members.
"The reason for this is because as you add a private endpoint to your web app, all Internet traffic to this app is cut off. Since the Azure DevOps Default build/release agents have a public IP, they can't access the web app anymore.
To resolve your issue, in Azure create a VM or a VM Scale Set either in the same VNet as your private endpoint of the web app. Then add this scale set as a new agent pool. Finally make sure that in the release pipeline settings, the release is using this new agent pool."
Please refer this SO thread for more information .

Build/Deploy Failed in Azure

Add or update the App Service deployment workflow configuration from … Build and deploy Node.js app to Azure Web App. My app wont deploy on azure for some reason.
deploy
Deployment Failed with Error: Error: Failed to deploy web package to App Service.
Site Unavailable (CODE: 503)
For a 503 error, I'd do the following:
Start by just restarting the site. If you're getting a 503, it's in a bad state. See what happens.
In the Azure Portal, go to the Web App management blade. Click on Diagnose and Solve Problems. There's lots of utilities and reports that might shed some light.
Go to the Metrics menu. You can check to see if you're suffering from resource exhaustion. Try CPU utilization and memory utilization.
Go to App Service Logs. Turn on Application Logging, Web Server Logging, Detailed Error Messages, and Failed Request Tracing. Failed Request Tracing is particularly applicable for 503 errors.

WebApi service down hosted on Azure App Service

I hosted a Web Api to azure app service. Everything works fine when I published it.
After a couple of days, the Web Api stops responding. But my app service is still running.
Even added application Insight Logs to all the code, to all the catch blocks, even then its not helpful.No exception was logged to date.
Checked the following, but doesn't seem to be helpful.
Thread Count of app service.
CPU time.
and this was the error when I tried to hit from postman after my web API is down.
<html><head><title>500 - The request timed out.</title></head><body> <font color ="#aa0000"><h2>500 - The request timed out.</h2></font> The web server failed to respond within the specified time.</body></html>
When I restarted my app service the web API started working and stops again after a couple of days.
I think your app service is being idled out due to inactivity . Please set always on to be true in the general settings in configuration blade , you can check out link
App service configuration.

Cant able to Authorize one drive in deployment center of web app service

When authorizing one drive with my web app service getting below error 'unauthorized_client: The client does not exist. If you are the application developer, configure a new application through the application management site at https://apps.dev.microsoft.com/.'
I am trying to deploy an web app created 'index.html' file stored in onedrive and wanted to connect deployment center with one drive, checked the web app URL provided in azure it is up and running.
This issue should be fixed now. Could you please try again and update here. If it doesn't work, I would need a network trace while reproducing the issue.

Resources