azure-web-app-service

How to deploy a Flask+React application to Azure Web Service

℡╲_俬逩灬. 提交于 2021-02-02 10:00:23
问题 I have been working on this app on my localhost, which has Flask as the backend ( localhost:5000 ) and React as the front end ( localhost:3000 ), and they have been communicating well. Now I am supposed to put it up online so that other ppl can see it as well - I didn't have much experience in Azure, but how can I deploy these two components(React&Flask) into one URL on Azure web app service? (Before I had some experience in using FTP to upload the ' build ' folder to a " site/wwwroot "

How to deploy a Flask+React application to Azure Web Service

半世苍凉 提交于 2021-02-02 10:00:20
问题 I have been working on this app on my localhost, which has Flask as the backend ( localhost:5000 ) and React as the front end ( localhost:3000 ), and they have been communicating well. Now I am supposed to put it up online so that other ppl can see it as well - I didn't have much experience in Azure, but how can I deploy these two components(React&Flask) into one URL on Azure web app service? (Before I had some experience in using FTP to upload the ' build ' folder to a " site/wwwroot "

How to deploy a Flask+React application to Azure Web Service

老子叫甜甜 提交于 2021-02-02 09:59:10
问题 I have been working on this app on my localhost, which has Flask as the backend ( localhost:5000 ) and React as the front end ( localhost:3000 ), and they have been communicating well. Now I am supposed to put it up online so that other ppl can see it as well - I didn't have much experience in Azure, but how can I deploy these two components(React&Flask) into one URL on Azure web app service? (Before I had some experience in using FTP to upload the ' build ' folder to a " site/wwwroot "

Sending logs from .net core application running in App Service to log analytics

帅比萌擦擦* 提交于 2021-01-29 19:28:01
问题 I tried looking for the simplest way of my .net core 2.0 application to send app logs to log analytics workspace. This application is running under App Service in azure, and I tried enabling the "Diagnostic Settings" and archiving the logs to log analytics. However, I am not seeing my app custom logs messages in: AppServiceHTTPLogs . I have used the following guide: https://azure.github.io/AppService/2019/11/01/App-Service-Integration-with-Azure-Monitor.html My application is using

Static ip for azure app service using vnet integration

谁说我不能喝 提交于 2021-01-29 18:11:26
问题 I trying to assign a static ip-address ,or at least control the out bound traffic, for an azure app service with out having to invest in app service environment (it’s very expensive and not very flexible option). Reading up on "vnet integration"( https://docs.microsoft.com/en-us/azure/app-service/web-sites-integrate-with-vnet ) in the offical azure doc there exist options to force traffic to the vnet. From there it should be possible to route the all traffic using UDRs through NAT-gateway.

Virtual application solution for Linux Web App

柔情痞子 提交于 2021-01-29 16:30:46
问题 In a Windows Azure Web App we are able to set up a virtual application in which we could push separate code in . Is there any solution similar to this for a Linux Azure Web App? 回答1: It’s a feature in IIS, that is why it doesn't work in linux. There's no out of the box support for this feature on Azure web app for Linux / containers. you need to implement it by youyself. 来源: https://stackoverflow.com/questions/59607577/virtual-application-solution-for-linux-web-app

Microsoft Azure Web App - How to update apache vhost config?

丶灬走出姿态 提交于 2021-01-29 11:12:21
问题 We have a PHP (Laravel) app hosted in microsoft web app service using debian 9 and apache2. We were able to make the app work by cloning our code in /var/www/html folder. However, since we are using laravel the document root should be in /var/www/html/public instead otherwise many of the features will not work properly. We tried changing the conf file in /etc/apache2/sites-enabled/000-default.conf and reloaded the configuration however, upon checking using apache2ctl -S it's still using the

React JS App Routing Issue Only After Deploying to Azure Web App

孤街浪徒 提交于 2021-01-29 10:30:29
问题 I have a React JS app, with React Router.During development, npm start, I get no issues. I visit the following location as usual. http://localhost:3000 and due to the routing code, it becomes http://localhost:3000/index and the app loads just fine. At this point, I hit reload, the app continues to run fine. I manual link or load 'http://localhost:3000/index', the app runs fine. Then, later, I do an npm build, go inside this build folder, and do an npm start, again, the same thing. the app

How to get a token for specific user assigned managed service identity for Azure App Service?

一曲冷凌霜 提交于 2021-01-29 07:28:04
问题 I am trying to get a msi token for a specific User defined identity. Our app service has 2 user defined identities and I want a token on behalf of one of the user assigned identity. Here is the code: HttpWebRequest req = (HttpWebRequest)WebRequest.Create( "http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01&resource=https://management.azure.com/&object_id=<ObjectId>&client_id=<clientId>"); req.Headers["Metadata"] = "true"; req.Method = "GET"; try { // Call /token

ASP.NET Core on Azure WebApp crashes because of SQLite

前提是你 提交于 2021-01-29 06:09:08
问题 I am trying to run HealthChecks UI AspNetCore.Diagnostics.HealthChecks in my ASP.NET Core WebAPI. All works fine on local, but when I deploy to Azure WebApp whole application dies. When I remove the UI from the services in the Startup, all is fine, so I got to conclustion that HealthChecks UI is crashing. It uses SQLite to store data, so I suspect at this part. I connected via SFTP to the WebAppp where I deployed it and I can see that the SQLite database file is created but has 0 bytes