azure-application-gateway

Azure Application Gateway with API as a backend pool is not working

筅森魡賤 提交于 2020-04-18 05:55:10
问题 I have .net core API inside the web app and that web app is backend pool for azure application gateway. while trying to access the web app got below error. "502 - Web server received an invalid response while acting as a gateway or proxy server." On app GW, health prob for that web app in unhealthy but while access the API as a https://abc.azurewebsites.net/api/values then it works. 回答1: When we deploy API in Web App Service then apiname.azurewebsites.net does not work give any probes to

How can I configure Azure Application Gateway to redirect old SSL connections?

牧云@^-^@ 提交于 2020-01-07 02:24:12
问题 I have a website that I want to allow SSL access to everything, but TLS 1.2 only to the API, and any sensitive portion of the app. Any outdated client should go to an error page, explaining why they can't access the resource, and that "it's not us, its you" warning about an outdated browser. How can I configure this equivalent functionality (which is present on a Netscaler BTW) in App Gateway? 回答1: I remember recommending you try that on a different thread. In hindsight i now regret it, since

Correlation failed. at Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler during OIDC authentication

♀尐吖头ヾ 提交于 2020-01-02 12:17:33
问题 I am hitting this with the following combination: 1) Browser incognito mode (Chrome) 2) Application is behind Azure application gateway (no repro if it isnt). Cookie based affinity is turned OFF (default); if turned ON, seems to make repro happen more often. Code is rather plain vanilla OIDC authN + cookies. services.AddAuthentication(options => { options.DefaultScheme = CookieAuthenticationDefaults.AuthenticationScheme; options.DefaultChallengeScheme = OpenIdConnectDefaults

Application Gateway routing URL's to custom ports

*爱你&永不变心* 提交于 2019-12-25 01:34:54
问题 We have an Application Gateway operational with the following setup Backend 1 : Server A, Server B Backend 2 : Server C Listener1 - site.com - Port 8888 HTTPS - Backend 1 Listener2 - site.com - Port 3000 HTTPS - Backend 2 Listener3 - site.com - Port 10001 HTTPS - Backend 1 This is routing correctly when site.com:port is specified however this isn't ideal for the end user to remember to include the port. What we want to do is sub.site.com to map to site.com:8888 sub2.site.com to map to site

Add VM to Azure App Gateway python

丶灬走出姿态 提交于 2019-12-24 11:15:40
问题 How do I add an existing VM to an existing App gateway via the Python SDK for Azure? I've looked at this, and used it too, to create an app gateway programatically, but how do I go about adding newly created VMs to the existing gateway? 回答1: You could check this answer. Note: Firstly, your existing VM should be in your application gateway's VNet. If you add your VM's public IP to application, you could use like below: "backend_address_pools": [{ "name": appgateway_backend_pool_name, "backend

How to check the health of application gateway in Azure

我的未来我决定 提交于 2019-12-23 04:47:12
问题 How to check the health of application gateway using java sdk. I need to perform a similar operation like below azure cli command using java sdk: azure network application-gateway backend-health show "$1" "$2" --json \ | jq -r '.backendAddressPools[].backendHttpSettingsCollection[].servers[] | select(.health == "Healthy") | .address' 回答1: I tried to get the health value of your pipeline command via the method health() of the class ApplicationGatewayBackendHealthServer of Azure Java SDK, but

Attaching SSL certificate to Azure application gateway in Terraform

偶尔善良 提交于 2019-12-22 08:10:47
问题 It's been somewhat long I'm trying to automate the deployment of an application gateway using Terraform but it simply fails with an error message. I have made sure all protocol settings to HTTPS. However, I doubt there is something fishy with the PFX certificate. Is it that I'm not supplying the authentication certificate due to which it's failing? Tried a lot over the web to get a solution but there are no mentions of this. Terraform Code: # Create a resource group resource "azurerm_resource

Configuring Azure Application Gateway to Azure web app to route requests by path

孤者浪人 提交于 2019-12-13 03:39:19
问题 I have two web apps (webapp1 and webapp2). I would like to use Application Gateway features where can route using path based redirect. http://mywebsite/login1 redirect to webapp1 http://mywebsite/login2 redirect to webapp2 Is this possible it possible to do this with Application gateway if so can you please give link or direction on how to do this for web apps prespective 回答1: Yes, it is. You can use path-based routing in the Application Gateway to do the job. Here is the link: Application

Configure WAF Application Gateway in front of App Services [closed]

十年热恋 提交于 2019-12-12 15:33:44
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year . I have a VNET with two App Services and one Windows VM in Azure. They are in the same VNET using VPN point-to-site. I want to protect this environment with a WAF and have read that I can use Application Gateway WAF instead of the very expensive setup with App Service Environment and

Azure power shell command to remove IP restrictions on App service

喜你入骨 提交于 2019-12-12 06:57:19
问题 I did my part of RnD and could not find Azure Powershell command remove IP restrictions on App service. Can someone help me out here plz. 回答1: Try the command below, it works fine on my side. $r = Get-AzureRmResource -ResourceGroupName "yourresourcegroup" -ResourceType Microsoft.Web/sites/config -ResourceName yourappservicename/web -ApiVersion 2016-08-01 $p = $r.Properties $p.ipSecurityRestrictions = @() Set-AzureRmResource -ResourceGroupName "yourresourcegroup" -ResourceType Microsoft.Web