azure-web-roles

Automatically install Application Initialization in Azure Web Role (SDK v1.8, Windows Server 2012)

时光怂恿深爱的人放手 提交于 2019-12-01 04:41:20
I see Microsoft have released Application Initialization as part of IIS 8.0. Unfortunately it isn't enabled in the Web Role by default. (by that I mean, "Application Initialization" as a feature of the web server role is not enabled. I know the Web Role has IIS 8.) Does anyone know how I can enable this from a start-up script? I've already a number of start-up scripts, but I'm not sure how to add a server role feature. The module itself appears inside Server Manager under "Server Roles" -> "Web Server (IIS)" -> "Web Server" -> "Application Development" -> "Application Initialization". It's a

How do I configure Perfect Forward Secrecy in Windows Azure (OS, or Websites)

半世苍凉 提交于 2019-12-01 00:44:15
I want to move my website to Windows Azure, but need to make sure that I'm using PFS on all my instances and roles. (regular web roles and Websites as well) How do I configure this so that each deployment is automatically configured this way? Simon Opelt This excellent article by André N. Klingsheim explains detailed options for hardening the SSL/TLS configuration on Windows Server and Windows Azure. This includes Disabling SSL Enabling TLS Changing Cipher Suite Priorities The author additionally provides a NuGet package as well as related source code for handling these updates during Azure

Can I access web.config from my Azure web role entry point?

a 夏天 提交于 2019-11-30 21:12:49
I have an Azure web role and I want to store some settings in web.config under <appSettings> tag. Yes, I'm aware of service configuration files, yet I have reasons to prefer web.config. When I execute (from here ): System.Configuration.Configuration rootWebConfig = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(null); if (rootWebConfig1.AppSettings.Settings.Count > 0) { } settings count is always zero although I've added a key-value pair under <appSettings> . What am I doing wrong? Is it possible to read settings from web.config from inside web role entry point? The

How do I configure Perfect Forward Secrecy in Windows Azure (OS, or Websites)

谁说胖子不能爱 提交于 2019-11-30 19:08:33
问题 I want to move my website to Windows Azure, but need to make sure that I'm using PFS on all my instances and roles. (regular web roles and Websites as well) How do I configure this so that each deployment is automatically configured this way? 回答1: This excellent article by André N. Klingsheim explains detailed options for hardening the SSL/TLS configuration on Windows Server and Windows Azure. This includes Disabling SSL Enabling TLS Changing Cipher Suite Priorities The author additionally

How to disable RC4 cipher on Azure Web Roles

家住魔仙堡 提交于 2019-11-30 18:58:09
I have a web application that is hosted on Microsoft Azure Web-Role. How can I disable RC4 cipher? Alex S The problem I encountered using a Powershell script was that the keys that require modifying contain a forward slash and Powershell treats this as a path separator and the script fails. The solution was to create a console application and set that to run at start up: class Program { static void Main(string[] args) { string[] subKeys = new string[] { "RC4 40/128", "RC4 56/128", "RC4 64/128", "RC4 128/128", }; RegistryKey parentKey = Registry.LocalMachine.OpenSubKey( @"SYSTEM

A network-releated or instance-specific error occurred while establishing a connection to SQL Server

回眸只為那壹抹淺笑 提交于 2019-11-30 15:07:06
问题 I have a simple mvc web site (using the VS internet template) on azurewebsites talking to a SQL Azure database in the same data center. The database at this time is just to do the built-in SimpleMembership Provider. I have already switched from the default App_Data mdf file to Azure SQL. It works fine, but sometimes after a while, it would give: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible.

Azure website debugging

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-30 13:22:54
问题 I understand that I can debug an Azure Web Role using the methods outlined here: http://msdn.microsoft.com/en-us/library/windowsazure/ee405479.aspx What's the process for debugging a Windows Azure Website? I'd like to be able to step through code, set breakpoints, ect. 回答1: UPDATE: The Azure portal has changed and the Application Settings blade is being retired. I think this deserves an updated answer for recent versions of the Azure Management Portal and VS. This is how I achieved remote

Orchard Performance on Azure

强颜欢笑 提交于 2019-11-30 09:50:07
Using http://docs.orchardproject.net/Documentation/Deploying-Orchard-to-Windows-Azure I've successfully deployed Orchard into Azure. After every 20mins or so without activity (app pool recycle?) it takes minutes to render a page. I'm running on an Extra Small instance in Azure. Webinstance, Storage and SQL Database are all in the same datacentre - SE Asia. There is a module called keepalive, which does a regular ping. or http://blog.smarx.com/posts/controlling-application-pool-idle-timeouts-in-windows-azure Also turned off Debug(!) and put in full trust as described here http://docs

Multiple site strategy on web role(s) and cloud service(s)

我与影子孤独终老i 提交于 2019-11-30 09:08:21
We have 3 public facing web applications which we are migrating to Azure. All sites use port 80. OPTIONS As far as I understand, there are three different options when using Web Roles: 1. All 3 sites hosted in ONE web role in a single cloud service : HTTP access can be configured by hostHeader in ServiceDefinition.csdef This is the cheapest Requires that all projects need to be published at the same time The sites cannot be scaled separately, only as a whole 1 Cloud Service project in Visual Studio 2. Each site hosted on a SEPARATE web role in a single cloud service : HTTP access can be

Azure website debugging

泪湿孤枕 提交于 2019-11-30 07:05:33
I understand that I can debug an Azure Web Role using the methods outlined here: http://msdn.microsoft.com/en-us/library/windowsazure/ee405479.aspx What's the process for debugging a Windows Azure Website? I'd like to be able to step through code, set breakpoints, ect. UPDATE: The Azure portal has changed and the Application Settings blade is being retired. I think this deserves an updated answer for recent versions of the Azure Management Portal and VS. This is how I achieved remote debugging for an ASP.Net Core 2.0 API using Visual Studio 2017 Preview 7.1: Open the Azure Management Portal ,