azure-web-sites

Firewall access from Azure app service to blob storage using Virtual Network

半世苍凉 提交于 2019-12-02 11:42:54
Originally I tried to restrict access from an app service to blob storage using IP addresses, however it turned out that you can only do this using a Virtual Network: Firewall access from Azure app service to blob storage I want to be able to achieve this without setting up a point-to-site VPN. The steps I have taken to set up a virtual network in Azure are as follows: Created Network security group "securitygroup-frontend", add custom inbound rule called Web with Source: Service Tag, Source service tag: Internet, Source port ranges: *, Destination : Any, Destination port ranges: 80, 443,

Shared lock between App Service and Webjob

折月煮酒 提交于 2019-12-02 11:28:32
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 ? WebJobs run in a separate process so a lock in C# will not work. Lease on a blob is one way to make a distributed lock

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

大城市里の小女人 提交于 2019-12-02 11:09:48
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 that I can see the userId and code it was trying to confirm with) and I've verified that the code it's

Is it possible to perform configuration changes to an Azure Web App without the application restarting?

試著忘記壹切 提交于 2019-12-02 11:06:13
问题 Currently when pushing updates via our CI/CD pipeline to the Azure Web Apps the nodes are being forcefully rebooted by azure once the configuration changes are completed. Has anyone come across a way where you can apply a configuration (web.config or other) changes to the web app in a single slot configuration with out the forced restart? Thanks in advanced 回答1: As Fabrizio Accatino said, when you touch the web.config, IIS automatically restarts the app domain. If you do this to avoid

Set document root in Zend Framework 1.12.x application in Azure Web Sites

半城伤御伤魂 提交于 2019-12-02 10:24:55
I have a problem setting the document root for a Zend Framework application that I want to run in Azure. Now I'm testing Web Sites, Cloud Service and VM's to deploy my work. Deploying with Webmatrix works fine, but I need to set the document root of IIS to a subfolder. - application - htdocs => Webroot with Web.config - libs How do I set this? With a second Web.config outside of htdocs Redirecting inside? Tried that, but IIS doesn't seem to like it (500err). The only thing I found was building a WEBSITE_PRIVATE_EXTENSIONS to change the ApplicationHost.config: Azure PHP Documentation This seems

Angular 2 configuration issues with Azure Slot deployments

自闭症网瘾萝莉.ら 提交于 2019-12-02 09:55:31
I'm having a problem with Angular environment variables and Azure Slots We want to use an app service providing static Angular files and we also want to use Azure slots to make our deployments safer. The reasons we want to use slots are: Ensure that code works in the production environment before making it fully available to everyone Reduce downtime to almost nil as there is no build being deployed during the "go-live" phase Our Angular site only serving up static files means that slot deployments require a different build to populate the env.json environment settings differently for each slot

Why I can swap some settings between deployment slots and I cannot for other settings?

守給你的承諾、 提交于 2019-12-02 09:33:34
I can note that some of the deployment slots settings of Azure app services can be swapped, but others cannot be swapped. Do you know why? First we should understand that slots are primarily meant to be used to deploy new versions of a website real quick. Running (for instance) a staging environment on a slot is not recommended. These are the settings that, according to the documentation, don't get swapped: Publishing endpoints Custom Domain Names SSL certificates and bindings Scale settings WebJobs schedulers If any of these would be swapped, that would mean that your application would break.

Rewrite Rule to IIS for HTTPS redirect to HTTP causes null HttpContext.Request.ContentType

坚强是说给别人听的谎言 提交于 2019-12-02 08:26:29
I am using HTTPS redirect site extension for Azure which has an applicationhost.xdt like this: <?xml version="1.0"?> <configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> <location path="%XDT_SITENAME%" xdt:Transform="InsertIfMissing" xdt:Locator="Match(path)"> <system.webServer xdt:Transform="InsertIfMissing"> <rewrite xdt:Transform="InsertIfMissing"> <rules xdt:Transform="InsertIfMissing"> <rule name="redirect HTTP to HTTPS" enabled="true" stopProcessing="true" xdt:Transform="InsertIfMissing" xdt:Locator="Match(name)"> <match url="(.*)" /> <conditions> <add input="

Azure uploaded jar but doesn't run it (Spring boot)

不羁岁月 提交于 2019-12-02 08:00:33
I've got myself an Azure Web App Service and a SQL database to go with it. I'm using Azures Intellij plugin to "Run On Web App". Issue is, it doesn't run anything, however it does put the jar in the folder: Connecting to FTP server... Uploading artifact to: /site/wwwroot/ROOT.jar ... Uploading successfully... Start Web App... Logging out of FTP server... Deploy successfully! I then, using console try to run the ROOT.jar by using java -jar ROOT.jar , but I get the error message Java is not recognised as an internal command or external command In the webapp application settings I have Java

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

不羁岁月 提交于 2019-12-02 07:43:43
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 Project File Line Suppression State Error CS5001 Program does not contain a static 'Main' method