Questions tagged [azure-web-app-service]

Use this tag for questions relating to web applications residing on Azure. Azure App Service is a cloud-based platform for hosting web applications, REST APIs, and mobile back ends. It was formerly known as Azure Web Sites. You can deploy applications written in a variety of languages: .NET, .NET Core, Java, Ruby on Rails, Node.js, PHP and Python, using either a Windows or Linux container.

See https://learn.microsoft.com/en-us/azure/app-service/app-service-web-overview for further information.

11621 questions
21
votes
3 answers

Can you update the web.config file for an Azure web app without redeploying?

I would like to update a database connection string in the web.config file for an application that is currently hosted in Azure as a web app. Seems that you can RDP into an Azure cloud service role but not a web app. If you can't RDP into an Azure…
dhughes
  • 645
  • 1
  • 7
  • 19
21
votes
4 answers

Setting EF Connection String in Azure Web App

We have an ASP .NET (MVC) app and are using Entity Framework 6 to connect to our databases. The DbContext is constructed in a standard way and it loads the connection string on our behalf. The generated code looks like this: public partial class…
21
votes
2 answers

Does the Azure Websites "*Always On" option have any implication on price?

Does the Azure Websites "Always On" option have any implication on price? Do I pay less if "Always On" is off and page is asleep as wrote here? I don't think so because you always paying for resources even if you don't use them, but please…
Anton Kalcik
  • 2,107
  • 1
  • 25
  • 43
21
votes
2 answers

How to check if code is running on Azure Websites

I knew that we can use RoleEnvironment.IsAvailable to check if code is running in Web/Worker Role. How about Azure Websites? I tried the above RoleEnvironment code but it always returns false. I need to run some configuration code in…
Gildor
  • 2,484
  • 23
  • 35
20
votes
1 answer

Deploy an ASP.NET Core app targeting a new version of .NET to an existing Azure App Service?

I have an existing Azure App Service running on ASP.NET Core 3.x. I have upgraded the application to today’s release of ASP.NET Core 5. This works fine on my local IIS Express server. When I publish to the application to the App Service using Visual…
20
votes
7 answers

Forcing reload of Blazor client after publishing changes

I have a Blazor app that I'm deploying to Azure for some alpha testing. I've managed to do this and I can run the app from the website just fine. The problem comes when I make changes to the client and server projects and republish them. Whatever…
20
votes
1 answer

Visual Studio 2015 does not find existing Web Apps on Azure Cloud during Web Deploy

On my Azure account I have several Web Apps. I'm trying to deploy my ASP.NET MVC project from Visual Studio 2015 using Publish. But it doesn't find any existing Web Apps on my Azure account. I logged in in Visual Studio. Credentials are correct. But…
Erba Aitbayev
  • 4,167
  • 12
  • 46
  • 81
20
votes
4 answers

SSL on Azure Shared Plan?

I have a 1 website and 1 database and 1 SSL hosted on azure. I used to have the 'Basic' hosting package but was paying $70 a month for a bare bones setup with the minimum scaling on everything. I realize my low traffic site doesn't need a dedicated…
hanesjw
  • 2,356
  • 4
  • 26
  • 34
20
votes
2 answers

What could be the reason for such kind of Azure Web Site hangs?

I have a rather high-load deployment on Azure: 4 Large instances serving about 300-600 requests per second. Under normal conditions: "Average Response Time" is 70 to 150ms, but sometimes it may grow up to 200-300ms, but it's absolutely OK. Though,…
20
votes
1 answer

Saving images in Azure storage

I am building a web application , where users can upload images & videos and store them in their account. I want to store these files somewhere and save only the URL in the DB. What is the right way to do it using Azure services? Is there a…
Bergerova
  • 863
  • 3
  • 10
  • 21
19
votes
2 answers

Azure App Service Returns Error - Error 403 - Forbidden The web app you have attempted to reach has blocked your access

I am getting error while accessing the Azure App Service, can you help in resolving the issue ? What setting to be applied to resolve the issue ? Thanks in advance.
Sivalingaamorthy
  • 983
  • 2
  • 9
  • 26
19
votes
1 answer

The system cannot find the file specified - azure key vault certificate

I have added a pfx certificate in azure key vault. I have one asp.net web api application where through one of the endpoint I am trying to access certificate information from key vault. public class ValuesController : ControllerBase { public…
19
votes
6 answers

'Unexpected token <' on every new build of angular production PWA until site refresh

I know there are some similar questions like so unexpected token after angular 2 production build but it doesnt actually answer my question. Basically I have an angular app and its a PWA, now everytime I do a new production build the first time I…
19
votes
3 answers

Azure Postgres: no pg_hba.conf entry for host "0.0.0.0", user "UserName", database "orders", SSL on

I have an Azure website in development that connects to a new Azure Postgresql database. This error seemed to have started over the weekend. It was working fine the last time I tried it on Friday. The IP address of my Azure Site Plan seemed to…
Brad Mathews
  • 1,567
  • 2
  • 23
  • 45
19
votes
4 answers

Azure web app redirect http to https

I use Azure cloud with web app and my server side written on nodejs. When web app receive a http request I want to redirect the request to https I found the solution. I put that to my web.config file inside the rules tag
Michael Horojanski
  • 4,543
  • 4
  • 33
  • 34