azure-web-sites

Why are Azure Resource Groups associated with a specific region?

早过忘川 提交于 2020-01-01 03:53:06
问题 I'm new to Azure architecture and am trying to understand why Azure Resource Groups, which are logical deployment buckets for applications built on Azure, are associated with a region when they are defined. At first I thought it was to provide global distribution for disaster recovery or geographic redundancy, but then I realized that a single Resource Group can contain web apps in different regions, which can provide those features via Traffic Manager. I suppose that using separate Resource

Azure Websites and Sass

流过昼夜 提交于 2020-01-01 03:53:05
问题 I have been trying to find if there is a way to support sass with a windows azure website? Can someone point me to some documentation or let me now if this is even possible. I am specifically looking to support Zurb Foundation responsive framework which is built on sass(scss). I already do this by using the complied css files with an override css file. I would like to use the semantic styling of sass if possible. Thanks 回答1: Yes. But there are a few hoops because of Sass/SCSS. By default,

Successfully Saving base64 Image to Azure Blob storage but blob image always broken/small white box

不问归期 提交于 2020-01-01 03:45:11
问题 I have a image converted to base64 I am trying to upload to my azure blob storage using createBlockBlobFromText. self.blobServer.createBlockBlobFromText(containerName, fileName, baseStrChars, { contentSettings: { contentType: 'image/jpeg' } }, function(error, result, response) { if (error) { console.log(error); } console.log("result", result); console.log("response", response); }); My new jpeg image appears in blob storage container but when I go to the blob image URL I always get this. My

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

吃可爱长大的小学妹 提交于 2019-12-31 05:33:06
问题 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? 回答1: 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

Add custom domain names to web apps using REST API

牧云@^-^@ 提交于 2019-12-31 05:25:26
问题 I am new person to Azure development. Is it possible to add custom domain names to web apps using .Net REST API? 回答1: yes, you can do that. 1) Install the NuGet Web Sites Management Package into your project. 2) Get Azure Publish Settings file (for example, by using Powershell Get-AzurePublishSettingsFile). You will need that later (the value of the management certificate field inside of that file). 2) Instantiate WebSiteManagementClient. That should help with the understanding of the code. 3

Limit concurrent requests in Azure App Service

瘦欲@ 提交于 2019-12-31 04:46:06
问题 Given the following ASP.NET Web API application Target: .NET Framework 4.6.1 Hosted as Azure App Service I wish to restrict the total number of concurrent HTTP requests to the application. I have looked at https://github.com/stefanprodan/WebApiThrottle but that seems to be focused on different use cases. I would like the equivalent of this setting in IIS: https://forums.asp.net/t/1683143.aspx?Max+concurrent+requests 回答1: This is to avoid attacking a backend service in counterproductive ways.

What happens when a scheduled WebJob runs for a long time

久未见 提交于 2019-12-30 19:58:20
问题 What happens if an Azure WebJob is scheduled to run but the previous running instance hasn't finished yet? Will it run the WebJob again so that two are running at once? Will it not run the WebJob and start the clock over? I haven't been able to find this behavior documented anywhere. I have a job I want to run hourly but it's possible that sometimes it might take longer than an hour to complete, but I never want two of them running at once. 回答1: As i understand it scheduled webjobs is just

How to link exceptions to requests in Application Insights on Azure?

。_饼干妹妹 提交于 2019-12-29 17:47:30
问题 We are using Owin on Azure for a REST service, and have to report to Application Insights directly. We want to log exceptions and requests. Right now we have this: using AppFunc = Func<IDictionary<string, object>, Task>; public class InsightsReportMiddleware { readonly AppFunc next; readonly TelemetryClient telemetryClient; public InsightsReportMiddleware(AppFunc next, TelemetryClient telemetryClient) { if (next == null) { throw new ArgumentNullException("next"); } this.telemetryClient =

How to link exceptions to requests in Application Insights on Azure?

杀马特。学长 韩版系。学妹 提交于 2019-12-29 17:47:01
问题 We are using Owin on Azure for a REST service, and have to report to Application Insights directly. We want to log exceptions and requests. Right now we have this: using AppFunc = Func<IDictionary<string, object>, Task>; public class InsightsReportMiddleware { readonly AppFunc next; readonly TelemetryClient telemetryClient; public InsightsReportMiddleware(AppFunc next, TelemetryClient telemetryClient) { if (next == null) { throw new ArgumentNullException("next"); } this.telemetryClient =

How to link exceptions to requests in Application Insights on Azure?

左心房为你撑大大i 提交于 2019-12-29 17:46:05
问题 We are using Owin on Azure for a REST service, and have to report to Application Insights directly. We want to log exceptions and requests. Right now we have this: using AppFunc = Func<IDictionary<string, object>, Task>; public class InsightsReportMiddleware { readonly AppFunc next; readonly TelemetryClient telemetryClient; public InsightsReportMiddleware(AppFunc next, TelemetryClient telemetryClient) { if (next == null) { throw new ArgumentNullException("next"); } this.telemetryClient =