azure-web-sites

Azure resource manager template website app settings

百般思念 提交于 2019-12-19 03:16:47
问题 I am trying to add app settings to my Azure Website via the JSON template files as part of the Azure Resource Manager. In an Azure Resource template json file, there are examples for creating connectionStrings directly from the JSON template file with a sub-dependency of type 'config' with properties for 'connectionStrings' as in the final example here http://haishibai.blogspot.co.uk/2014/09/tutorial-building-azure-template.html I have also checked in the website schema definition for

Azure resource manager template website app settings

我怕爱的太早我们不能终老 提交于 2019-12-19 03:16:07
问题 I am trying to add app settings to my Azure Website via the JSON template files as part of the Azure Resource Manager. In an Azure Resource template json file, there are examples for creating connectionStrings directly from the JSON template file with a sub-dependency of type 'config' with properties for 'connectionStrings' as in the final example here http://haishibai.blogspot.co.uk/2014/09/tutorial-building-azure-template.html I have also checked in the website schema definition for

No packages found with specified pattern

╄→гoц情女王★ 提交于 2019-12-18 21:17:12
问题 I am using Deploy azure app service to slot build step in Team Services, I want to be able to build my solution with PackageAsSingleFile set to False. However when I try to release the package with path to the artifact created I get "No packages found with specified pattern". Do I need to create two artifacts, one as zip file and one as a package of files to be able to do what I want? I have tried different path to folders, but I get same error no matter. 回答1: Refer to these steps: NuGet

New Azure Distributed Cache for Azure Websites in Reserved Instance Mode

醉酒当歌 提交于 2019-12-18 20:17:12
问题 Something that seems to be absent from the otherwise great new features for Windows Azure (announced on June 7th), is the ability to define distributed caches for the reserved instances of a Website Cluster in Reserved Instance Mode. As of now it seems to be only possible to create distributed caches for standalone webroles or worker roles. Does anyone know a workaround or know if this is something that is coming? The reason why I'm asking this is because it forces me to create a dedicated

Is it possible to enable Always On for Azure websites through management/resource management APIs?

烂漫一生 提交于 2019-12-18 19:06:42
问题 I am writing some code for automatic deployment of Azure websites (including the creation of the website in Azure). I'm using the Azure Management Libraries and Azure Resource Management Libraries available in Nuget. Most of it is in place, however I have not been able to find a way to enable the "Always On" property through any of the APIs I've seen. This property can be set through the azure management portal under the Configure tab for a website. I've checked: The properties reference on

Azure website resource template error

只谈情不闲聊 提交于 2019-12-18 13:58:06
问题 I'm attempting to use the AzureResourceManager PowerShell module to create and configure a website. I started with a template file generated by Visual Studio, which works fine when I use it via New-AzureResourceGroup -TemplateFile website.json . So now I'm trying to tweak the template file to configure the site. I'm trying to set the php and .NET Framework versions. According to the schema these properties are set via a config object in a resources array. Here's the website section of my json

Powershell for an Advanced Application Restart on an Azure Web App

£可爱£侵袭症+ 提交于 2019-12-18 13:32:24
问题 It is possible to use Restart-​Azure​Rm​Web​App PowerShell to restart a web app but this will restart all servers in the plan simultaneously, giving a short downtime. The Azure Portal has an "Advanced Application Restart" feature that uses a time delay between restarting individual instances. Is there any way to invoke that from PowerShell? 回答1: According to your description, I suggest you could firstly find each instance's process in your web app by using Get-AzureRmResource command. Then

Using an array in Azure web app settings

£可爱£侵袭症+ 提交于 2019-12-18 12:47:53
问题 In my ASP.NET 5 (RC1) code I have an appsetting.json that looks something like this: { "SomeSettings": { "PropA": "ValueA", "PropB": [ "ValueB1", "ValueB2" ] } } These value are used when a run the code on my dev machine (ie. localhost). If I want to overwrite the "SomeSettings" in Azure's Application settings for the wep app, how would I specify the "PropB" array? The SomeSettings.cs class that I want to store the information in looks like this: public class SomeSettings { public string

Azure websites and wkhtmltopdf

主宰稳场 提交于 2019-12-18 12:18:33
问题 So after beginning my azure websites-adventure, I have been encountering disappointment after disappointment to the point of 'almost' regretting taking the azure route..the latest: my app uses wkhtmltopdf(Rotativa) for all its PDF generation. And as I discovered now during my staging testing...that doesnt work. According to most info on the web, azure websites cannot run .exe's. However, most info I've seen is by now 2 years old and I know Azure development is going fast. Is there by now a

Azure website IP restriction

為{幸葍}努か 提交于 2019-12-18 08:30:10
问题 I have an Azure website which I only use for development and testing, therefore I want to restrict access to it for everyone but myself. According to this blog article this is now offically supported, so I tried adding this to my web.config file: <system.webServer> <security> <ipSecurity allowUnlisted="false" denyAction="NotFound"> <add allowed="true" ipAddress="1.2.3.4" /> </ipSecurity> </security> </system.webServer> For the ipAddress attribute I have to use the IP address of my internet