azure-web-sites

Is it possible to scale Azure app services programmatically

别来无恙 提交于 2019-11-28 10:35:26
I am looking for a way to programmatically scale up/down an Azure app service instance. This question has been asked before (e.g. in the link below) several months back and the answer was not possible at the time, so I am just wondering if something has changed and/or some new feature is available now. Is possible to programmatically scale Azure instances? Please note that we would like to do this on "Azure app services", not the old style "Azure cloud services". The reason that we would like to do the scaling programmatically is so that we can control it using on our custom metrics. We did

Azure - SSL & Traffic Manager - Multiple regions

[亡魂溺海] 提交于 2019-11-28 10:32:03
问题 I'm expanding my Azure SSL web app across multiple regions, and thus need to setup a traffic manager. My current configuration works, and is: SSL cert: www.bloop.com Web App: uk-bloop.azurewebsites.net (Custom domain assigned) Registrar (Go Daddy): CNAME awverify awverify.uk-bloop.azurewebsites.net CNAME awverify.www awverify.uk-bloop.azurewebsites.net I can visit https://www.bloop.com, and everything works fine. I now wish to add a USA region app: usa-bloop.azurewebsites.net into the mix. I

azure app registration remove permissions

流过昼夜 提交于 2019-11-28 10:28:17
问题 I have registered an App in AAD. Then in required permissions I added alot of permissions for AAD and Office Graph. Then I removed all permissions but noticed my app kept working. Required Permissions is empty, but permissions still have all the permissions: Permissions How can I remove all permissions from an App in AAD? 回答1: After removing the permission, we need to grant permission to make the changing work. Here is a figure for your reference: And we can confirm the permission is changed

Phantomjs renders black boxes on Azure Websites

泄露秘密 提交于 2019-11-28 09:54:33
问题 Using latest Phantomjs binaries v1.9.7 on Azure websites, it renders black boxes instead of character. here is an example of simple phantomjs script on Azure: var page = require("webpage").create(); page.content = "Hello 123"; page.render("index.png"); phantom.exit(0); the png and pdf result is [] [] [] [] [] [] [] in black And the jpg result is big black box This prevent us from using phantomJS as a webjob and within websites Note : phantomjs is working fine on VM,WebRole and WorkerRole 回答1:

How to list all running webjobs within an azure subscription using powershell

别来无恙 提交于 2019-11-28 09:51:57
问题 I have an azure subscription that has upwards of 200 appServices where around about half of them have Continuous, always on webJobs attached, some also have slots which also have webJobs. Is there a way to list all webJobs that are inside a subscription? I was originally tring to use powershell to do this but it was getting rather complex and was wondering if anyone knew of an easy way to achieve the above. It seems like Get-AzureRmWebApp should be able to help but i cant find a way to list

How to take web app offline while publishing?

左心房为你撑大大i 提交于 2019-11-28 09:35:59
Very often, when I hit Publish in VS13, I get the site to compile but when uploading I get the error saying that a file is busy. Updating file (MyAzureSite\PrecompiledApp.config). C:...\v12.0\Web\Microsoft.Web.Publishing.targets(4255,5): Error ERROR_FILE_IN_USE: Web deployment task failed. (The file 'PrecompiledApp.config' is in use. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_FILE_IN_USE .) When I follow the link provided, it's suggested that I should go for enabling the appOffline rule . "Sure!", I think to myself. But how ?! I've googled it, only to get a bunch of

Enable Access-Control-Allow-Credentials header in Azure website (Azure App Services)

回眸只為那壹抹淺笑 提交于 2019-11-28 09:18:05
We recently migrated an API application from Azure Cloud Services to Azure Websites, and some clients are still using our legacy protocol for authentication, which uses cookies (instead of the usual Authorization: Bearer HTTP header). We need to support this authentication protocol for a little longer as the clients will not be able to migrate right away. To support cookies in a cross-origin ajax request directed to the API, the client needs to set the withCredentials setting to true in the XMLHttpRequest, and the server needs to repond with the Access-Control-Allow-Credentials header as well

Meaning of “Always On” setting on Azure Web Site

南楼画角 提交于 2019-11-28 09:16:58
We are using free BizSpark subscription on Azure and hosting our application as Azure Web Site. We periodically struggle with unexpected site shutdowns what's very painful for our application since it has a lot of background process running. "Always on" setting can be a remedy for this problem, but unfortunately it's unavailable for us in the current subscription. As you may know IIS has two settings recycle based on: By default, each application is terminated every 1740 minutes (29 hours) - periodic restart timeout . Also application can be recycled if it's unused for 20 minutes - idle

Create a Scheduled Azure WebJob with PowerShell

人走茶凉 提交于 2019-11-28 08:33:53
I am trying to create an Azure WebJob to send a BrokeredMessage to an Azure ServiceBus Topic, the actual act of creating and sending the message is trivial however I have been unable to find a way to automate the creation of the Scheduled WebJob. The automated workflow should work as follows: Create a new Azure Website [Done] Create a new triggered Azure WebJob uploading a PS1 file [Done] Create a new Azure Scheduler Job Collection [Proven Concept] Create a new Azure Scheduler Job that triggers the WebJob The Azure Management Portal provides a nice UI for this functionality, which under the

Azure WebSites - Can't Scale Sites Individually (New Web Hosting Plan Groups)

这一生的挚爱 提交于 2019-11-28 08:20:05
Just this morning, the management portal for Azure WebSites no longer lets me scale individually. It looks as though all my websites have been grouped into a "Web Hosting Plan". And now when I create a new web site, I have to choose a plan. I've looked around and I can't find any information on "Web Hosting Plans" -- is this some preview function that got pushed out early? Does anyone know how to create a new plan and switch a website to it? The ability to move a site to a new or existing Web Hosting Plan has finally been added to the Azure Portal! Note: this is only on the "new" Azure Portal