azure-web-sites

Web API returning HttpResponseMessage object after nuget updates in Azure Web App

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-08 06:09:07
问题 I'm using Web API 5, it's has been working fine, I return a HttpResponseMessage object with Content = new StringContent("content here") and get the expected content when calling the API. [HttpPost] public async Task<HttpResponseMessage> GetData([FromBody]DataObject input) { ..... return new HttpResponseMessage(HttpStatusCode.OK) { Content = new StringContent(JsonConvert.SerializeObject(returnModel)) }; } However, I recently updated a number of MVC and .NET NuGet packages, and now, while the

Azure VPN to on-premises cannot connect SQL Server from azure web app

元气小坏坏 提交于 2019-12-08 05:18:53
问题 We have setup our VPN connection in Azure to our on-premises database, the connect is working with no problems. I have written a MVC app that tries to connect to our on-premise database in SQL Server and am getting the following error: System.Data.SqlClient.SqlException (0x80131904) : A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server

Memory consumption .Net Application ( Azure Websites )

大城市里の小女人 提交于 2019-12-08 04:32:30
问题 We are using Azure Websites as our platform provider and I am debugging some memory problems related to a managed application that we need a practical way of knowing why my application consumes so much memory . We have got like 50 users online but consuming 1.5 GB of IIS process coming from 120 threads. I tried taking memory dump but I did not get enough clues to solve the problem. In the past I was using yourkit.net profiler. It was so smooth to spot the issues as I was able to monitor the

GitLab Continuous Deployment to Azure Web App

徘徊边缘 提交于 2019-12-08 04:13:06
问题 I want to be able to use Continuous deployment to an Azure webapp deployment slot from a GitLab repo.. Specifying the branch so i can have a staging and develop slot for these respective git repo branches. Using the two links below i managed to configure my website to use continuous deployment on one of my deployment slots. https://forum.gitlab.com/t/is-there-true-gitlab-azure-continuous-deployment/2162/4 https://github.com/projectkudu/kudu/wiki/Continuous-deployment However since this is a

Microsoft Azure App Service Storage

偶尔善良 提交于 2019-12-08 03:57:52
问题 I have a doubt for purchase a microsoft azure app service to host my app. I have already tested the free profile and i am concerned to switch to a basic profile. That's my question. I have seen on this table on azure website here which i'll have 10GB of disk space for my application files. When i went on price calculator i see this Well my question is: Why here i see 10GB of temporary storage? will i lose my application files located in the wwwroot folder anytime? 回答1: will i lose my

How do you turn an Azure Website on and off on a schedule?

僤鯓⒐⒋嵵緔 提交于 2019-12-08 03:49:25
问题 I have a line of business app that I want to deploy to Windows Azure. The app is only needed during office ours so to save on costs I want to turn the Azure Website on and off outside of business hours. How is this achievable? 回答1: You can do this using Azure Automation (currently in preview). To do this, Create a Runbook to Start the website. For example, workflow StartContosoWebsite { $cred = Get-AutomationPSCredential -Name "rick@cloudalloc.com" Add-AzureAccount -Credential $cred

Deploy Angular4 Universal app in Azure invalid start-up command

萝らか妹 提交于 2019-12-08 03:33:19
问题 I have created a simple application with Angular 4.0.0 and Universal (platform-server) following these steps Basically it means that it's an Angular 4 application capable of being rendered in server side within a NodeJs environment. Now I want to deploy this application to my Azure app services using Git and a command line so I followed these steps. Basically: I installed Azure-Cli 2.0 for Windows Open command line (cmd) Run az login , it will ask to open a url and enter a code so that we can

Azure websites - create ftp account

人走茶凉 提交于 2019-12-08 03:11:58
问题 I'm just created a website ("Basic" plan) under Microsoft Azure. In order to deploy my website, I created an ftp user that can upload my website code. Additionally to this upload FTP user, I want to create another FTP account that will have a permission for specific directory in filesystem. I'm search all over the Dashboard and didn't found a clue where this "create ftp account" is. How I'm should do this? Thanks. 回答1: As far as I know, Azure only supports FTP only for deployment. And there

Connect to Azure SQL using Azure Active Directory from an Azure Website?

梦想的初衷 提交于 2019-12-08 01:06:46
问题 A have an Azure Website running which connects to an Azure SQL through Entity Framework 6. Everything runs and I'm using standard username/password (sql login) to connect. Now, I would like to switch over to using AAD for authenticating to sql. I already have an AD Application set up for the website. My question is: How do I connect with my cert or clientid/clientSecret? How do I ensure that the SqlAzureExecutionStrategy is still in function Any guidance is much appreciated Thanks! 回答1: There

Azure ARM Templates, VNET Integration of a Site

落花浮王杯 提交于 2019-12-07 23:44:52
问题 I'm mamanging a creation of a whole system in Azure cloud. It is possible to set VNET integration of a Site Resource (Webapp or Functions) within templates ? Attaching a screenshot of the settings that I'd manage. 回答1: It is possible to set VNET integration of a Site Resource (Webapp or Functions) within templates? The following template could be used to create website and connect it to an existing VNET, please refer to it. { "$schema": "https://schema.management.azure.com/schemas/2015-01-01