azure

Deploy ASP.NET Core 5 app to Azure App Service?

此生再无相见时 提交于 2021-02-04 13:07:55
问题 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 Studio, however, I receive the following error: HTTP Error 500.31 - ANCM Failed to Find Native Dependencies Common solutions to this issue: The specified version of Microsoft.NetCore.App or Microsoft.AspNetCore.App was not found. Specific error

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 "

Concurrently JS application pipeline install and build hangs (Express js for server, Create-React-App for Client)

柔情痞子 提交于 2021-02-02 09:46:47
问题 Problem : I have a project with a server (Express Server that handles file uploading and deleting) and client (Front End Create-React-App). The project structure looks like follows: Root Folder With Server Client Folder Each folder has it's own package.json. Server Package.json. Client package.json I'm trying to build and deploy onto azure however the pipeline hangs on "npm install and build". It seems like the build succeeds but this phase just hangs. Here is my server.js (the routes are not

How is cosmosDB RU throughput enforced

强颜欢笑 提交于 2021-02-02 09:35:45
问题 I have a cosmosGB gremlin API set up with 400 RU/s. If I have to run a query that needs 800 RUs, does it mean that this query takes 2 sec to execute? If i increase the throughput to 1600 RU/s, does this query execute in half a second? I am not seeing any significant changes in query performance by playing around with the RUs. 回答1: As I explained in a different, but somewhat related answer here, Request Units are allocated on a per-second basis. In the event a given query will cost more than

.NET Core on Azure can't connect to SQL Server Database

本秂侑毒 提交于 2021-02-01 05:17:59
问题 I have a .NET Core API backend which is published on Azure. I also have a SQL Server database running on Azure, if I run my backend app locally it succesfully connects to the online database, reading/writing etc works fine. When running the online backend however, every API call results in a 500 error. When looking in the logs there is the following error which probably causes the 500: Microsoft.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred

.NET Core on Azure can't connect to SQL Server Database

心已入冬 提交于 2021-02-01 05:16:27
问题 I have a .NET Core API backend which is published on Azure. I also have a SQL Server database running on Azure, if I run my backend app locally it succesfully connects to the online database, reading/writing etc works fine. When running the online backend however, every API call results in a 500 error. When looking in the logs there is the following error which probably causes the 500: Microsoft.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred

Retrieve Azure environment variables in NodeJs

谁说胖子不能爱 提交于 2021-01-29 22:11:26
问题 I have an app service set up in Azure with a static built NodeJS web application. The application runs fine and I want to move the api key and hostname of the api to variables in the environment. In Azure->Settings->Configuration->Application Settings I have added two environment variables and set a value for each. In my Constants.js file I have export const token = process.env.API_KEY; export const host = process.env.API_HOST; But process.env.API_KEY is always null. I have even tried :

Handling multiple azure devops pipelines

a 夏天 提交于 2021-01-29 21:34:13
问题 I have several azure devops pipeline files in one project. The files are all in a subdirectory and called azure-pipelines.yml . Renaming : I can rename the pipelines in the UI to distinguish them... but I would like to skip that manual step and perform that in the yml. Is there a parameter for that - I cannot find it in the docs. Workdirs : the pipelines start in the main directory. I can adjust the working directory of the script steps with workingDirectory thanks to the answer here. But can