azure-web-sites

How can I deploy production npm build of react app to Azure App Service

不羁岁月 提交于 2020-04-30 07:18:27
问题 I'm trying to deploy the npm build version of my react app to azure web service through ftp. I moved the build folder, but when I load my application's URL, the default screen loads with Hey Node Developers! . I can deploy via github and kudu. However, I don't believe that's a production quality application since it's not built using npm run build with create-react-app . I've been through this azure guide, as well as various blogs. I've also included the web.config file. Nothing has gotten my

Unable to import App Service Certificate after Subscription transfer

混江龙づ霸主 提交于 2020-04-18 03:49:14
问题 I recently transferred an Azure Subscription to a new account owner in a new directory. After doing so, I am no longer able to import an App Service Certificate into my App Service, and am thus unable to create any TSL/SSL bindings . When I click Import App Service Certificate , the certificate correctly shows up; when I click on the certificate it correctly displays Validated the App Service Certificate ; but when I click OK , I get the following error: Failed to add App Service certificate

Deployment to Azure Linux App services from Azure DevOps has no effect

邮差的信 提交于 2020-04-16 05:55:30
问题 I have an Angular 8 + asp.net core 3.1 application generated by Visual Studio 2019. I tried to deploy the application as is without modification on the Azure Linux App Service by using a VS 2019 Publish and the application gets deployed with no issue and I can access the application from web browsers on the <app-name>.azurewebsites.net url When deploying the application from an Azure release pipeline with the Azure App Service deploy Task, the deployment occurs with no errors but when

How to create a Linux AppService Plan with New-AzAppServicePlan?

℡╲_俬逩灬. 提交于 2020-04-16 05:53:51
问题 What is the equivalient of this code using New-AzAppServicePlan ? az appservice plan create --resource-group $ServerFarmResourceGroupName ` --name $AppServicePlanName ` --is-linux ` --location $ResourceGroupLocation ` --sku $AppServicePlanTier ` --number-of-workers $NumberOfWorkers Is there really no way to create an App Service Plan using Az Powershell? Why can it only be done via Azure CLI or ARM? I only found this answer, which basically uses ARM directly: How do I use Powershell to create

Issue on ClickOnce hosting on Azure

℡╲_俬逩灬. 提交于 2020-04-16 02:32:49
问题 Following this article, I have successfully hosted my ClickOnce app to Azure Blob Storage. But what URL should a user use to install the app. For example, when you publish an app to a website using VS2019 , it creates a publish.html page whose URL a user can use to install the app. But here we don't have that publish.html page. So, what we do in that case? 回答1: nam. I am very happy to tell you how to generate publish.htm. After my test, I found the reason why you can't generate piblish.htm.

Is it possible to install fonts on an Azure App Service?

假装没事ソ 提交于 2020-04-13 06:49:47
问题 We are using MigraDoc/PDFsharp GDI+ which depends on having fonts installed to the system in order to render. We have tried embedding the fonts but the GDI+ version of MigraDoc does not seem to support this. When trying to move this component to an Azure App Service, it cannot find the fonts. Is there a way to "install" the fonts locally to the App Service so that they would be visible to GDI? 回答1: As I know, Components rely on GDI API may not work on Azure Web APP. We could find this known

Azure Web App Temp file cleaning responsibility

烈酒焚心 提交于 2020-04-10 07:37:11
问题 In one of my Azure Web App Web API application, I am creating temp files using this code in a Get method string path = Path.GetTempFileName(); // do some writing on this file. then read var fileStream = File.OpenRead(path); // then returning this stream as a HttpResponseMessage response My question is, in a managed environment like this (not in VM), do I need to clear those temporary files by myself? Shouldn't Azure itself supposed to clear those temp files? 回答1: Those files only get cleaned

How to replace %PUBLIC_URL% in react app on an azure website

99封情书 提交于 2020-04-09 20:07:51
问题 I have a react app that works perfectly fine locally, when I deploy it to Azure, I have a few 404 errors, on the index.html All of them with the tag %PUBLIC_URL% According to the documentation, they will be replaced in the build process, but not sure how this is done, so that when deployed, the correct urls are put in place <!doctype html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable

Troubleshooting 500.31 ANCM on Azure App Service

这一生的挚爱 提交于 2020-04-07 07:09:23
问题 After upgrading a project from ASP.NET Core 3.0 to ASP.NET Core 3.1 , my application stopped working on Azure App Services —but only when published using continuous deployment from Azure DevOps Pipelines . (Similar to another question, it continues to work if I publish directly from Visual Studio.) Specifically, the pipeline is still able to publish using the Azure App Service Deploy ( AzureRmWebAppDeployment ) task, but it fails to load in the Azure App Service environment with a 500.32

Troubleshooting 500.31 ANCM on Azure App Service

╄→尐↘猪︶ㄣ 提交于 2020-04-07 07:05:52
问题 After upgrading a project from ASP.NET Core 3.0 to ASP.NET Core 3.1 , my application stopped working on Azure App Services —but only when published using continuous deployment from Azure DevOps Pipelines . (Similar to another question, it continues to work if I publish directly from Visual Studio.) Specifically, the pipeline is still able to publish using the Azure App Service Deploy ( AzureRmWebAppDeployment ) task, but it fails to load in the Azure App Service environment with a 500.32