azure-web-sites

Publishing ASP.Net Core app to Azure silently fails in command line

风流意气都作罢 提交于 2019-12-25 16:46:25
问题 I'm trying to publish a dotnet core app to Azure. I've created a publish profile and using visual studio it all works fine. But since I'd like to setup continuous deployment I need to run the deployment using command line. The official documentation was pretty helpful in identifying that the [ProfileName].ps1 is the best plan of attack. However it gives no clues on how to use it. First I ran it without parameters and got this error: Production-publish.ps1 : The term 'Production-publish.ps1'

How to define a web.config file for Azure deployment for a MEAN application?

本小妞迷上赌 提交于 2019-12-25 11:58:26
问题 While my app runs fine locally, I'm having a difficult time deploying it to an Azure Web App. The structure of the application is as follows: ./index.html ./app.js - main node.js code, including Express middleware ./*.js - supporting myapp's node.js code ./assets/angular - Angular.js v1.2.x ./assets/bootstrap ./assets/css ./assets/img ./views - views for the application state.js routes to /myapp/* (e.g., /myapp/home, /myapp/login). all Express API calls are to /api/* (e.g., /api/version)

Running Azure Node.js app locally - connecting to same database

余生长醉 提交于 2019-12-25 09:40:15
问题 Is it possible to run an Azure Node.js App Service locally, but connect to the same cloud SQL database? If so, when connecting to the locally running service, how do you connect a client to the local service? Assuming a client is connecting via an HTML/javascript app, the normal code would be client = new WindowsAzure.MobileServiceClient('https://myservice.azurewebsites.net'); <-- do you just change that url to the IP the local server is running on? 回答1: Yes, it is possible to get an Azure

Azure App Service, run a native EXE to convert a file

醉酒当歌 提交于 2019-12-25 09:39:11
问题 I have a native EXE that converts a file based on command line arguments. Provided, I know how to give full path names of the input and output files, can I run such an EXE from my app service when some button is pressed and wait till the output file is created? Converting to DLL is not an option. 回答1: As far as I know, we could run a native exe in the azure app service. But we couldn't directly pass the parameter to the native exe. You need write a web application or something else for the

Azure web app with on site SQL Server and Windows authentication

自作多情 提交于 2019-12-25 08:25:42
问题 I need to connect my web app on Azure to our on site SQL Server instance via Windows authentication (not via SQL Server account authentication). Active Directory is already integrated with the on-site AD and therefore all of the users are available there. My question is, is it possible to hook up an azure web app to an on-site SQL Server via Windows authentication. 回答1: is it possible to hook up an azure web app to an on-site SQL Server via Windows authentication. Base on my option, it maybe

Run jar as a webapp on Azure

Deadly 提交于 2019-12-25 07:19:27
问题 I was able to run metabase.jar on my machine (W10), and now I need to try on Azure, because it's where I have SQL Server. Metabase.jar: metabase.com/start/ I couldn't do it by myself (closure and jetty are new to me). On Azure, I tried: Create a web app; Set to Java 8 and Jetty 9.1; Failed to run metabase.jar. 回答1: Based on my understanding, I think you want to deploy the metabase.jar file as a web application on Azure WebApps like on local. Then I followed the article to upload the metabase

Can you replace selected files in an Azure Website without deploying the whole Website?

笑着哭i 提交于 2019-12-25 05:06:59
问题 When I check in my modifications to Visual Studio Online, an automatic deployment of the Azure website is done. Is there a way to just replace some files in the Azure website, without deploying the whole website? 回答1: You can login to the site via FTP. Or you can use ServerExplorer in VisualStudio 2013 and modify files there: 回答2: You can also use the Kudu Debug Console to change files in your site. Go to http:// [yoursite].scm.azurewebsites.net/DebugConsole and log in with your FTP

Entity Framework and inconsistent performance with processing the results of a query

混江龙づ霸主 提交于 2019-12-25 04:29:09
问题 Just setup New Relic on our site and we noticed some odd spikes in one of our webapi calls. At this point I have the problem boiled down to a single EF query that I moved out to its own method so I could use New Relic to instrument it.. The only thing the method does is //I changed this from ToListAsync to ToList to see if it would help var result = Context.Data.Where(x=> x.id = id).ToList(); return result; That's it.. Using New Relic and also logging out all the SQL queries I'm fairly

Is there a Nuget package to create Azure Function Apps?

£可爱£侵袭症+ 提交于 2019-12-25 04:12:23
问题 I need to create multiple Azure Function apps in different geographic locations over and over, so I need to automate this. Doing this in the Portal isn't going to scale. I thought there would be a Nuget package for doing this, but I haven't found it yet. Any ideas on how to automate the creation of Azure Function Apps? 回答1: There isn't an Azure Functions specific NuGet package or API. Functions works with the standard Azure Resource Manager APIs (consistent with the way you manage other Azure

Deployment to new Azure Resource Group and Web Site failing

我们两清 提交于 2019-12-25 04:07:04
问题 I created a new ASP.NET MVC Web Application in Visual Studio 2015 Update 3. During the creation, I checked the box that I want to host my application on Azure as a Web App. When configuring the Azure Web App Settings, I created a new Resource Group, a new App Service plan, and a new Resource Group. When it tried to create the project and deploy it, I got the following error: { "error": { "code": "MissingRegistrationForLocation", "message": "The subscription is not registered for the resource