azure-web-sites

How to programatically apply an existing SSL certificate to an Azure web app

橙三吉。 提交于 2019-12-13 17:23:29
问题 I'm using the Azure Fluent Management API to automate our deployment process. Up until now, I've had minimal problems. We have SSL certificates already uploaded into Azure and can manually bind them to a web site through the Azure portal. But I can't find a mechanism for doing this programmatically. The closest I can find is below and in the documentation here. webApp.Update() .DefineSslBinding() .ForHostname(domainName) .WithPfxCertificateToUpload(pfxFile, password) .WithSniBasedSsl()

Securing access to redis & solr clusters from azure websites

南楼画角 提交于 2019-12-13 17:12:58
问题 We are looking at deploying an application on azure web sites and deploying a redis and solr clusters on sets of azure virtual machines. What is the best practise for restricting access so just my azure web site can access these boxes? We store private information in the redis and solr cluster so cannot risk allowing other azure websites access to the redis and solr clusters so allowing the complete IP range of the azure data centres is a no go. 回答1: Azure Web Sites do not have dedicated

ActiveDirectoryMembershipProvider with Azure Active Directory

a 夏天 提交于 2019-12-13 16:27:43
问题 I realize there are other (preferred) ways of implementing authentication with Azure Active Directory, but is it possible to use the standard ActiveDirectoryMembershipProvider with Azure Active Directory for an Azure website ? 回答1: No. There is no way to use ActiveDirectoryMembershipProvider with Azure Active Directory. . (Period) :) Why? ActiveDirectoryMambershipProvider uses Active Directory Application Mode (ADAM) server and talks to AD over LDAP protocol. Both of which are not supported

How to deploy a pure Angular application from Visual Studio Team System to Azure websites

做~自己de王妃 提交于 2019-12-13 16:14:16
问题 Does anyone know how to deploy a pure Angular application to Azure websites? I have a Angular 2 application (like the Angular 2 Quick Start) in VSTS Git source control. How can I deploy the application to Azure websites from setting up the VSTS build? I saw document for deploying node.js (with angular) to Azure: https://msdn.microsoft.com/en-us/library/vs/alm/build/azure/nodejs. I did successfully deploy many of my angular applications to Azure websites following the instructions in the

arm template web app publish profile

六月ゝ 毕业季﹏ 提交于 2019-12-13 15:50:22
问题 I am deploying a web app using an ARM template and need to get the publish profile as an output Is there a way to do this? I saw this: azure template output publish profile content But couldn't get it to work I tried both with reference and listKeys but none of the properties was the publish profile Thanks 回答1: If you want to get the publish Credentials, you could use the ARM template list function to do that. "outputs": { "publishProfile": { "type": "object", "value": "[list(concat(

IS Azure Webjobs have its own memory allocation?

断了今生、忘了曾经 提交于 2019-12-13 14:41:12
问题 I am new to Azure web-jobs. When I am working with web-jobs I have come up with an question that whether web-job have its own memory allocation like process? we are creating web-jobs under website(web app) so for website a separate memory will get created.And then we are creating multiple web-jobs under that website in azure. so if static class gets instanciated under azure website instance.then web-jobs which uses that static class concurrently,will leads to data loss? like this eg: website

Azure WebJobs - Can I use Async Methods?

大城市里の小女人 提交于 2019-12-13 11:54:01
问题 I was wondering if the Azure WebJobs SDK can trigger async methods? Currently I have a method that looks like the following: class Program { static void Main(string[] args) { var host = new JobHost(); host.RunAndBlock(); } public static void ProcessStuff([QueueInput("myqueue")] string msg) { var tsk = ProcessStuffAsync(msg) .ContinueWith(x => HandleAsyncError(x), TaskContinuationOptions.OnlyOnFaulted); tsk.Wait(); } public static async Task ProcessStuffAsync(string msg) { // do some async

Azure - How can I read cpu and memory of my web app?

*爱你&永不变心* 提交于 2019-12-13 10:57:28
问题 I'm trying to read the CPU and Memory usage for my app using PerformanceCounters . code: PerformanceCounter cpuCounter; cpuCounter = new PerformanceCounter(); cpuCounter.CategoryName = "Processor"; cpuCounter.CounterName = "% Processor Time"; cpuCounter.InstanceName = "_Total"; var result = cpuCounter.NextValue();//ERROR HERE I'm getting a Unauthorized exception. How can I work around this? Edit 1: I tried to set the current instance name for both the processor count and the memory without

Azure Linux App Service: Just start one container

只愿长相守 提交于 2019-12-13 07:04:25
问题 I am using this Dockerfile on Azure Linux App Service: FROM ruby:2.3.3 ENV "GEM_HOME" "/home/gems" ENV "BUNDLE_PATH" "/home/gems" EXPOSE 3000 WORKDIR /home/webapp CMD bundle install && bundle exec rails server puma -b 0.0.0.0 -e production As you can see the gems folder is located in the home folder. The home folder is shared with the host system of the App Service. Now my problem the App Service LogFiles/docker/docker_***_out.log indicates that bundle install is called multiple times

Stop Web Configuration Inheritence with Azure Virtual Web Application

拥有回忆 提交于 2019-12-13 06:11:58
问题 I have created a web application project and deployed it to Azure. In the web.config file for this application, a number of <assembly> elements appear in the <system.web><compilation> element. Specifically, these assembly entries point to DevExpress assemblies but they could really be anything. I have also created a Web API project that is deployed as a virtual application under the web application. It looks like the <assembly> entries are being inherited from the configuration of the web