azure-web-sites

Azure website IP restriction

痴心易碎 提交于 2019-11-29 14:32:08
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 connection right? So I went to http://www.whatismyip.com/ and copied the address, but now my website is

How can I modify the Location of my web site in Windows azure?

巧了我就是萌 提交于 2019-11-29 13:50:14
When configured my website on windows azure, I chose Est of USA for the Web site, and North Europe for database. As you can guess, the performances are very bad, most of my users are in Europe. Looking on msdn, they said it is not possible to change database of location. So how can I change the location of my web site? You need to redeploy your website code to a new Web Site, located in Europe. If you're using git, this should be as simple as setting up a new remote location to the new Web Site and re-doing a push. In the future: Always deploy website + database in the same datacenter. This

ASP.NET 5: Access-Control-Allow-Origin in response

孤街醉人 提交于 2019-11-29 13:13:35
From what I understand, when enabled CORS accordingly, the response model should include the following header information (provided that I want to allow everything): Access-Control-Allow-Origin: * Access-Control-Allow-Method: * Access-Control-Allow-Header: * Enabling it in Startup : public void ConfigureServices(IServiceCollection services) { //... services.AddCors(); services.ConfigureCors(options => { options.AddPolicy("AllowAll", p => p.AllowAnyOrigin().AllowAnyMethod().AllowAnyHeader().AllowCredentials()); }); //... } public void Configure(IApplicationBuilder app, IHostingEnvironment env,

How to check Azure Network Security Group outbound IP Allowed or not?

邮差的信 提交于 2019-11-29 12:43:14
I have few problems regarding Azure Network Security Group. Currently I'm using Azure App Services to publish my website and in Azure, App Services, Network Side Controlled By NSG such as inbound and outbound security and other things. I'm working with sagepay payment gateway.they asked me to do following steps in order to success my sagepay integration. Please ensure that all of the following IP addresses are allowed within your Server or Firewall: For outbound traffic to our gateway: 195.170.169.9 – live.sagepay.com 195.170.169.8 – test.sagepay.com For inbound traffic you only need to

How can I determine the IP address of an Azure hosted WebApp

梦想与她 提交于 2019-11-29 12:11:09
问题 I am using Azure platform for a webapp. I need to find out IP address of my web app so that I can whitelist it to an external server where I have created APIs. Is NSLookup the correct way to determine the IP address for whitelisting? 回答1: The quickest way would be to login to the Azure portal and select your web app from the resources menu. Once you have the blade open for your web application there are two types of IP addresses. Inbound and outbound. For outbound IP, click properties from

Azure Websites AppDomain many restarts

南楼画角 提交于 2019-11-29 11:15:00
I've a group of asp.net 4.0 Websites runing in Azure Websites Compute mode: Standard Location: North Europe Capacity autoscale: Off Instance size: Large Instance Count: 1 The response time is very slow, the trafic is normal, but my log show many AppDomain shutdowns (more than 3 in one minute) . My websites load data in cache during de Application_Start to give a rapid response to all subsequents requests but if the Appdomains restarts every time is impossible to give acceptable response times. The ShutdownReason values are many: ConfigurationChange HostingEnvironment

How to define connection string for session state in Azure

醉酒当歌 提交于 2019-11-29 10:59:49
I am using the RedisSessionStateProvider using a procedimient like this https://azure.microsoft.com/en-us/documentation/articles/web-sites-dotnet-session-state-caching/ I define its connection string in web.config , in this example is XXXXXX . <system.web> <compilation debug="true" targetFramework="4.6.1" /> <httpRuntime targetFramework="4.5" /> <globalization culture="es-CO" uiCulture="es" /> <customErrors mode="Off" /> <sessionState mode="Custom" customProvider="SessionStateStore"> <providers> <add name="SessionStateStore" type="Microsoft.Web.Redis.RedisSessionStateProvider" connectionString

How to signout from an Azure Application?

感情迁移 提交于 2019-11-29 10:37:49
I have created a Azure AD application and a Web App. The Azure AD Application uses AAD Authentication. This works well. When I go to my URL and I am not authenticated, I have to enter my credentials. When I enter my credentials, I am forwarded to my application. But then comes the problem. How do I sign out. I have found this question and I wanted to implement option 2: not signing out using code, but using links Azure AD provides. The point is, I have no clue where to configure this. He states Add some specific links for logging in and logging out But where? Where in Azure and in which portal

Do you need 2 instances of Azure websites for SLA like Web Roles?

房东的猫 提交于 2019-11-29 10:12:39
On cloud services web roles you must create at least 2 instances to get Azure's 99.95% SLA because when they do updates to the servers' OS etc, Azure will need to restart the machines (one at a time). This is well documented and you will be shouted at by the portal when running a one instance web role for doing this. With Azure websites you don't get such warnings and I cannot find any documentation suggesting 2 instances for the 99.9% SLA. However, I also can't find any documentation saying that you don't need 2 instances for this SLA. So which is it? Do I need 2 instances for Azure websites'

How to customise Azure Web App 403, 503 error pages?

社会主义新天地 提交于 2019-11-29 09:55:44
I am at a loss as to how to present a custom error page, with professional branding, for errors covering: 403 - Wep App stopped - currently get blue page with Azure text. 503 - Service Unavailable - currently get white page with "service unavailable" I have tried to use CloudFlare custom error pages, but this does not work. For a 403, traffic still gets routed throught to Azure, where it gets the standard Azure 403 Page. Must be possible? There are two categories of HTTP errors that can happen on Azure Web Apps: Those that happen in IIS on the Web Worker where your site is running. Those that