azure-web-sites

Difference between Azure Container Service and Web App for Containers

别等时光非礼了梦想. 提交于 2019-12-20 11:14:10
问题 What is the difference between Azure Container Service and Web App for Containers? They both seem to offer a fully managed platform on which we can deploy containers. I feel that Web App for Containers must be offering something more, but I don't see it. I've read the Azure Container Service FAQ and the Web App for Containers intro page, but the difference is not obvious to me. 回答1: Web App for Containers lets you run your custom Docker container which hosts your Web Application. By default

ASP.NET Identity 2 - UserManager.ConfirmEmail Fails In Production

☆樱花仙子☆ 提交于 2019-12-20 07:31:27
问题 I've set up OWIN in an ASP.NET MVC app (including email confirmation). When an account is created I get an email containing a link to confirm my email. When I visit the link, I get the "Invalid Token" error. If I take that exact same link and instead change the domain to point at localhost while debugging the project, the email confirms just fine. The project is being deployed to an Azure Web Site (which I can't remote debug). I've tossed in some code to email me when confirmation fails (so

ASP.NET Identity 2 - UserManager.ConfirmEmail Fails In Production

馋奶兔 提交于 2019-12-20 07:31:23
问题 I've set up OWIN in an ASP.NET MVC app (including email confirmation). When an account is created I get an email containing a link to confirm my email. When I visit the link, I get the "Invalid Token" error. If I take that exact same link and instead change the domain to point at localhost while debugging the project, the email confirms just fine. The project is being deployed to an Azure Web Site (which I can't remote debug). I've tossed in some code to email me when confirmation fails (so

Shared lock between App Service and Webjob

给你一囗甜甜゛ 提交于 2019-12-20 07:16:47
问题 I want to have a shared lock between the Webjob and the App Service code. I have tried lock keyword as well as mutex in C# but they don't seem to be working. Another alternative I could think of is Blob lease which is also the locking mechanism used for locking within webjobs environments as written here. Do azure webjobs run in a totally separate environments from the App Service such that the shared locks are not working, or am I missing something ? Is there any other way ? 回答1: WebJobs run

How do I host a public static site as a web app?

依然范特西╮ 提交于 2019-12-20 06:45:51
问题 I want the url www.example.com to display default.html From this question I understand that the easiest way is still to create a web app. [How not to do it] I tried creating a solution in VS2017 File->New ->Project -> .Net Core -> Asp.Net Core Web Application-> Empty Then I moved my static files into wwwroot and deployed What do I need to change so that default.html will load when someone goes to the site? At the moment if I remove the Program class I get a message Severity Code Description

How to Create an HKLM entry in Azure Website

痞子三分冷 提交于 2019-12-20 04:11:13
问题 How do you create an entry in the registry (HKEY_LOCAL_MACHINE) of an Azure Website? The web application only needs to read the entry. 回答1: You can't do this in Azure Web Sites. if your application absolutely needs an access to Registry, you must target Azure Web Role (classic Cloud Service). 回答2: The following page states the common baseline OS functionality for all apps running on Azure App Service and includes a section on "Registry access": https://azure.microsoft.com/en-gb/documentation

Does an Azure Web App care if its instances are healthy/unhealthy?

廉价感情. 提交于 2019-12-20 03:53:14
问题 If I deploy a web app (formerly known as an Azure WebSite) to an App Hosting Plan in Azure with a couple of instances (scale = 2) will the load balancer in front of the instances care if any of the instances is unhealthy? I'm troubleshooting an issue that sometimes causes my site to return an http 503 ~50% of the time. My thinking here is that one of two of my instances has failed but the load balancer hasn't noticed. If the load balancer does care , what does it look for? I can't find anyway

Does an Azure Web App care if its instances are healthy/unhealthy?

送分小仙女□ 提交于 2019-12-20 03:53:06
问题 If I deploy a web app (formerly known as an Azure WebSite) to an App Hosting Plan in Azure with a couple of instances (scale = 2) will the load balancer in front of the instances care if any of the instances is unhealthy? I'm troubleshooting an issue that sometimes causes my site to return an http 503 ~50% of the time. My thinking here is that one of two of my instances has failed but the load balancer hasn't noticed. If the load balancer does care , what does it look for? I can't find anyway

How to refresh an ID Token from Azure AD in a Web App?

匆匆过客 提交于 2019-12-20 02:28:48
问题 I'm trying to set up an Azure Web App to to authenticate with Azure AD and refresh ID Token behind the scenes automatically. A great blog post helped me understand how the whole thing works: https://cgillum.tech/2016/03/07/app-service-token-store/ And this guide linked from it helped me set it up: http://cgillum.tech/2016/03/25/app-service-auth-aad-graph-api/ It seems enabling refresh tokens for Azure AD authentication isn't that simple so as recommended I used the aforementioned guide to set

Azure Error: A network-related or instance-specific error occurred while establishing a connection to SQL Server

时光毁灭记忆、已成空白 提交于 2019-12-20 01:47:19
问题 I have SQL server & web app hosted over Microsoft Azure platform. I am constantly getting above error when ever i run web application (and try to connect azure sql server) from my local network, however i never face issue on azure web app service (i.e. After hosting my web app on azure) I know that this error is very familiar. But in this case it seems weird. I have already checked below things, SQL connection is managed properly. (I am using ADO.Net) All gateway IPs are white listed against