azure-web-sites

Debugging two Azure Functions projects locally

爱⌒轻易说出口 提交于 2020-01-14 18:45:33
问题 I have two Azure Functions projects. I have one project, A, running on localhost:7071/api/.... I have changed the other project, B, to run on localhost:8888/api/... I am calling a function which is running on project A from a function in Project B! How can I debug two Azure Functions projects locally? I cannot find any docs to help me. 回答1: To fix the issue add the command line switch --nodeDebugPort 5859 to your launching of func host to set the port for one of the sessions. If you are

Can we set up a FTP Site using Azure Web App?

拜拜、爱过 提交于 2020-01-14 13:35:32
问题 Totally new to FTP and Azure. So please excuse if the question sounds stupid. Is there a way to set up FTP using Azure Web App service? Is it even possible? I am trying to avoid using a dedicated VM with IIS for setting up FTP. All my search results in deployment of a web app using FTP, but that is not what I am looking for. 回答1: Since the out-of-the-box FTP for deployments is out of the question, then the answer is no. App Service is quite strict in what ports you can listen to, and FTP(S)

Azure Web app save temporary files limit

只谈情不闲聊 提交于 2020-01-14 10:13:31
问题 I have need to store files temporary on my Azure web app (app service). I don't have to share these files between web app instances. I have read (in the kudu wiki) that I can use the d:\local for such storage, but what limitations exists regarding the amount of data that can be stored there? I have also read that it depends on the selected level (sku) of the web app (Basic, standard, premium) but I have not found any exact size limitations. Is there any way to determine this in runtime using

DiagnosticMonitor in Azure Web Site

放肆的年华 提交于 2020-01-14 09:56:28
问题 Can you use the Azure DiagnosticMonitor in an Azure Web Site (not a web role) ? Or does it need a compute role? 回答1: No, You can't use Windows Azure Diagnostics (DiagnosticsMonitor) in an Azure Website. You would need to use a compute role for that. 回答2: No, Azure DiagnosticsMonitor is only for Web/Worker Roles. Diagnostic in Azure WebSite is common as for any web application. As Azure WebSites use persistent storage, you can safely write a log file (having in mind you are using multi

How to use code first migrations with Azure App Service

假装没事ソ 提交于 2020-01-14 04:41:09
问题 When I run locally I run the commands below manually and then package and publish the app onto my IIS server. Add-Migration Initial Update-Database When I want to publish to an azure appservice will these commands run automatically? If so how does it know to use a different ConnectionString when I publish it to azure? I added the connectionString for azure in appsettings.json but I don't understand how I can tell my controllers etc to use that when I publish to azure AppServices

ARM Template Web App Authentication Settings not working

て烟熏妆下的殇ゞ 提交于 2020-01-14 04:16:19
问题 I am working on setting up my site authentication settings to use the AAD provider. Most of the template is respected. However, the unauthenticatedClientAction and allowedAudiences is not being properly assigned. I observe 'allow anonymous' and no 'allowed audiences' being assigned. Here is my template segment for these settings. It is nested under resources in my website template. root > Microsoft.Web/Site > Resources { "type": "config", "name": "web", "apiVersion": "2016-08-01", "location":

PDFsharp on Azure with Custom Fonts

时光毁灭记忆、已成空白 提交于 2020-01-14 03:08:13
问题 I am using a webapp on azure to create a PDF using PDFsharp 1.32. As it is a Azure webapp I cannot install fonts. Therefore I am using the following with embedded font options: var globalFontCollection = XPrivateFontCollection.Global; _fontBytes = File.ReadAllBytes(_pathToFont); globalFontCollection.AddFont(_fontBytes, _fontName); However this does not work. There is no error just acts as if the font is not known and falls back to the default. If I install the font it works so I know the rest

How do I deploy to Azure App Service with PowerShell?

梦想与她 提交于 2020-01-13 03:55:22
问题 I have looked around and with the thousands of commands in the Azure and AzureRM commandlets in PowerShell, I'm still not sure how to do this. What I have working so far: Installed Azure and AzureRM modules and imported them to the script Generated the "*.publishsettings" file from the get-AzurePublishSettingsFile command Imported the "*.publishsettings" file Can acccess the website with the "Stop-AzureWebsite" and "Start-AzureWebsite" commandlets What I need to do: create a new deployment

How do I deploy to Azure App Service with PowerShell?

丶灬走出姿态 提交于 2020-01-13 03:55:06
问题 I have looked around and with the thousands of commands in the Azure and AzureRM commandlets in PowerShell, I'm still not sure how to do this. What I have working so far: Installed Azure and AzureRM modules and imported them to the script Generated the "*.publishsettings" file from the get-AzurePublishSettingsFile command Imported the "*.publishsettings" file Can acccess the website with the "Stop-AzureWebsite" and "Start-AzureWebsite" commandlets What I need to do: create a new deployment

Azure Website Connection Keep-Alive

北战南征 提交于 2020-01-12 21:22:24
问题 I was using Windows Azure Website to host my website. I want to enable Connection: Keep-Alive in my website, how to enable it for my website? How to check whether I have successfully enabled it on my website? How to set the timeout for the Connection: Keep-Alive and how to determine the best value for the timeout My server is Windows and using IIS 回答1: You can set most of the configuration options for IIS 8 in Azure Web Sites too. To enable keep-alive, add the following section in the web