azure-app-service-plans

React App not starting in azure app service

痴心易碎 提交于 2020-05-08 09:22:05
问题 I've deployed a simple react app to azure app service and it won't start: How do I get the app to run index.html? 回答1: If you deployed to a Node Linux Web App the default document would be hostingstart.html located in /home/site/wwwroot/ . According to this: When you create a Node.js app, by default, it's going to use hostingstart.html as the default document unless you configure it to look for a different file. You can use a JavaScript file to configure your default document. Create a file

All instances are not running in Azure App Service

一笑奈何 提交于 2020-04-12 04:04:08
问题 I am using Azure App Service which hosts application that reads data from Event hub using EventProcessorHost . I have allocated 6 instances(Manual Scaling) to run. I checked the Metrics( CPU Time ) in App Service and found only 5 instances are running. I am getting different instances count for different metrics. Data In metrics shows 6 instances while CPU Time metrics shows 5 instances. I am confused. Please suggest. Regards, Amit Agrawal 回答1: the AlwaysOn feature is used to keep your app

IP address Mismatch between Azure Application Insights and Google Search

只愿长相守 提交于 2020-02-03 10:56:15
问题 Why there is a difference between the IP address reported by Azure Application Insights and standard Google Search (What is my IP)? IP returned by Azure App Insights: xx.xx.xx.0 IP returned by Google Search: xx.xx.xx.242 回答1: Application Insights uses IP to fetch geo location information such as country/region and city and then discards the last octet of the IP for the privacy reasons. If geo location information extracted from IP is not enough for the scenarios you'd like to address and you

Azure App Service Instrumentation Profiling?

女生的网名这么多〃 提交于 2019-12-24 13:56:02
问题 It looks as though it's possible to use instrumentation profiling on an Azure Cloud Service application, but I'm not seeing a way to do the same with an Azure App Service. The only options I've found allowed sampling profiling. What methods are available for instrumentation profiling of an Azure App Service? 回答1: The Azure Service Profiler is now available as part of Application Insights. It does work with App Services. You can read my review about it here to learn more: https://stackify.com

High CPU usage was detected for the kudu app for Azure App service

橙三吉。 提交于 2019-12-24 13:07:05
问题 I noticed that our app was experiencing high CPU usage. In the diagnostics I found the below message. High CPU usage was detected for the kudu app for 'DemoApiApp'(39.1%) on only one instance out of 4 instances in your app service plan. The affected instance had a peak overall usage of 87.8% during this time. High CPU usage in the kudu process is most often caused by web job usage. Affected instance name: RD0003FF1C445A 回答1: Note that, apps in the same App Service plan share the same compute

How to clean up azure web app LogFiles directory?

僤鯓⒐⒋嵵緔 提交于 2019-12-24 06:06:04
问题 We had quite a big issue with our azure web app service. All of a sudden we started getting 'disk out of space' errors. Sure enough, the LogFiles directory was huge. We weren't sure how to clear this directory. After a while and without finding any recommended way of doing it, we figured that it was just log files and it was probably safe to just delete a few files in there. Via the kudu powershell console, we deleted a dump file LogFile/dumps and we also deleted a bunch a stdout files via a

How to clean up azure web app LogFiles directory?

与世无争的帅哥 提交于 2019-12-24 06:05:03
问题 We had quite a big issue with our azure web app service. All of a sudden we started getting 'disk out of space' errors. Sure enough, the LogFiles directory was huge. We weren't sure how to clear this directory. After a while and without finding any recommended way of doing it, we figured that it was just log files and it was probably safe to just delete a few files in there. Via the kudu powershell console, we deleted a dump file LogFile/dumps and we also deleted a bunch a stdout files via a

Set Azure Function App on Consumption Plan to 64 bit

老子叫甜甜 提交于 2019-12-24 01:53:04
问题 The new "Consumption" tier plans that you can utilise for Functions don't allow you to change the process bitness via the Portal. Is some other way I can flip the process to 64 bits as it's required for DocDB access. 回答1: You can set this by API. But note that it is not officially supported until you see the option show up in the portal. Here is an easy way to do it: Go to https://resources.azure.com/ Find your function app, and go under config/web under it in the tree Edit and change

Add certificate from Azure Key Vault to Azure App Service via REST API

妖精的绣舞 提交于 2019-12-23 05:22:25
问题 I'm trying to add a private self-signed certificate to an Azure App Service (as in the screenshot at the bottom) via the REST API (in PowerShell). I call the API as follows: $certBody = @{ name = "InfoServiceTAKeyVaultDev" location = "West Europe" properties = @{ keyVaultId = "/subscriptions/<subscriptionId>/resourceGroups/BzInfoServiceTADEV/providers/Microsoft.KeyVault/vaults/BzKVInfoServiceTADev" keyVaultSecretName = "InfoServiceTAKeyVaultCert" } } Invoke-RestMethod ` -Method Put ` -Uri (

Getting the azure app service slot name on startup?

为君一笑 提交于 2019-12-22 18:46:23
问题 How can I get the name of the slot (production or staging) of my app service when the asp.net core process starts. The HTTP_HOST environment variable doesn't appear to be set on startup and I have no http request to inspect. 回答1: If we want to get the host name, you could use the environment variable WEBSITE_HOSTNAME to do that. var hostName = Environment.GetEnvironmentVariable("WEBSITE_HOSTNAME"); If you run it on the slot environment then you will get the value youwebsiteName-slotName