azure-web-sites

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

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

喜欢而已 提交于 2019-11-30 17:52:11
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 MSDN: http://msdn.microsoft.com/en-us/library/azure/dn236426.aspx The powershell APIs (get-azureresource

Azure WebSite Always On

▼魔方 西西 提交于 2019-11-30 17:37:46
问题 I have a WebAPI application running on Azure WebSites. It is running in Basic mode and I have the option to make it "Always On". There seems to be conflicting information online about what this means exactly. I know the effect, but the "how" matters a lot here. In particular, does something automatically hit an endpoint in my application periodically? If so, can I control the endpoint it hits? As I mentioned, it is a Web API application and the default route does non-trivial work and results

Azure website resource template error

左心房为你撑大大i 提交于 2019-11-30 17:05:31
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 template. The "resources" section is what I added: { "apiVersion": "2014-06-01", "name": "[parameters(

App Service VNet Integration with Azure Storage Service Endpoint

天涯浪子 提交于 2019-11-30 16:06:46
I made an App Service (S1) and then from the Networking blade created a VNet Integration using the documentation here . The connection looks like Then I made a Storage Account and under the Firewall and Networking tab I selected the preconfigured VNet that was made by the portal Trying to access the Azure Storage from a deployed Web App give a 403 forbidden error. What settings do I need to change for the Web App to gain access to the Azure Storage Service Endpoint? Vnet integration gives your web app access to resources in your virtual network but does not grant private access to your web app

Pass flags to NodeJS's Chrome V8 engine in Azure Web Apps

末鹿安然 提交于 2019-11-30 15:59:08
I have deployed NodeJS application on Azure Web Apps. How to pass flags to NodeJS's Chrome V8 engine? In my local machine I can do it easily while running the server script as below. node -nouse-idle-notification -expose-gc -max-old-space-size=8192 server.js Where to specify these flags in Azure Web Apps? You can do this either in iisnode.yml or in web.config . If you are deploying via git, you likely don't have those in your repo. You can get the default generated web.config by using Kudu Console and finding it under d:\home\site\wwwroot . By default, there is no iisnode.yml at all. Using

Programmatically retrieve the site URL from inside an Azure website

流过昼夜 提交于 2019-11-30 15:57:00
问题 Azure websites have a default "site URL" provided by Azure, something like mysite.azurewebsites.net. Is it possible to get this URL from inside the website itself (i.e. from the ASP.NET application)? There are several properties in the Environment and HttpRuntime class that contain the name of the website (e.g. "mysite") so that is easily accessible. Things are getting complicated when not the default but e.g. the staging slot of the site is accessed (that has the site URL like mysite-staging

How to restrict access to an App Service using a setting inside the Azure Portal

蓝咒 提交于 2019-11-30 14:25:19
问题 We have a web app that is deployed as an App Service in Azure. We would like to restrict access to it by having a white list of IP addresses that can be done in some Azure App Service setting and not in web.config that we have inside the project. Currently, this is how we do IP address restriction in our environments. Production: We have VNet Integration setup for the App Service. We attached an NSG to the VNet's Subnet and from the NSG we can control inbound and outbound access. Staging: We

CORS headers missing when deployed on Azure Web App / Azure API

﹥>﹥吖頭↗ 提交于 2019-11-30 14:15:38
I have created an OWIN hosted WebAPI 2 . There's also a web app ( AngularJS ) that's using the API and acting as a client. I've added the necessary code for the CORS to the Startup.cs , and hosted it in local IIS on a port different than the client and confirmed that it fixes the Cors issue. Then, I deployed both apps to Azure (I've put both on the Azure as Web App, and I also tried putting the OWIN to the Azure API that is currently in preview) but - the preflight request now fails (no Access-Control-Allow-Origin present in the response). Q: Is there some specific of Azure I'm not aware of?

How to set redirect_uri protocol to HTTPS in Azure Web Apps

主宰稳场 提交于 2019-11-30 13:10:54
I am facing the following problem. I have an ASP Net Core 2 web app that I want to deploy to Azure. The app authentication is integrated with the Azure Active Directory, so when I try to login the following requests happen: GET https://login.microsoftonline.com/ecf3f643-27e5-4aa7-9d56-fd350e1e9c37/oauth2/authorize?client_id=20a2bcb5-0433-4bb4-bba3-d7dc4c533e85&redirect_uri=http://myapplication.mydomain.com/account/signin [...] 200 OK POST http://myapplication.mydomain.com/account/signin 301 Redirect --> https://myapplication.mydomain.com/account/signin GET https://myapplication.mydomain.com