azure-application-gateway

How to create Azure Application gateway using python SDK

馋奶兔 提交于 2019-12-12 02:16:13
问题 I'm starting to feel a bit stupid. Have someone been able to successfully create an Application gateway using Python SDK for Azure? The documentation seems ok, but I'm struggling with finding the right parameters to pass 'parameters' of azure.mgmt.network.operations.ApplicationGatewaysOperations application_gateways.create_or_update(). I found a complete working example for load_balancer but can't find anything for Application gateway. Getting 'string indices must be integers, not str' doesn

Azure WebRole Sticky Load Balance

隐身守侯 提交于 2019-12-11 07:58:57
问题 I have an Azure WebRole, which publishes a WCF Service with PerSession setting. This means, session needs to be preserved for a long time... This is because of synch-framework and cannot be changed. Now I have the problem when I want to use Multi-Instances on that Web Role (Classic Azure Cloud Service) Can I configure an Application Gateway with endpoints not to the Public WebRole but to each Instances, so that the Gateway handles the Balancing? How? Thanks 回答1: Technically, the Application

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

天涯浪子 提交于 2019-12-06 08:26:24
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.AuthenticationScheme; }) .AddAzureAd(options => { Configuration.Bind("AzureAd", options); }) .AddCookie(p => p

Attaching SSL certificate to Azure application gateway in Terraform

一个人想着一个人 提交于 2019-12-05 10:20:21
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_group" "rg" { name = "my-rg-application-gateway-12345" location = "West US" } # Create a application

Azure Application Gateway with Service Fabric

狂风中的少年 提交于 2019-12-04 17:32:49
问题 Currently I have a Service Fabric cluster with 2 stateless services hosting Asp Web APIs. While creating the cluster also appropriate Azure Load Balancers got created. Now I would like to add Application Gateway in front of my cluster for various reasons like SSL offloading, url-routing etc. I'd like to understand how to configure the Application Gateway correctly. I see 2 options, not sure which one is valid: Application Gateway replaces the existing Load Balancer and points directly to SF

Azure Application Gateway with Service Fabric

被刻印的时光 ゝ 提交于 2019-12-03 10:29:46
Currently I have a Service Fabric cluster with 2 stateless services hosting Asp Web APIs. While creating the cluster also appropriate Azure Load Balancers got created. Now I would like to add Application Gateway in front of my cluster for various reasons like SSL offloading, url-routing etc. I'd like to understand how to configure the Application Gateway correctly. I see 2 options, not sure which one is valid: Application Gateway replaces the existing Load Balancer and points directly to SF services hosting WebApi I keep existing LB configuration and Application Gateway points to this LB

Application Gateway - 502 error

眉间皱痕 提交于 2019-11-30 16:06:35
问题 I have set up a new application Gateway following the MS document. I have configured the back end pool .it is connected to an App Service via FQDN. Somehow I receive 502 immediately every time I browse to the application gateway. Browsing to the website directly works with no issues . 回答1: I have resolved this issue. Here is the solution. If you have web apps in your backend pools you CAN'T set up the health probes via Azure portal. You need to set them up via resource templates or Powershell

Redirect HTTP to HTTPS in Azure Application Gateway

冷暖自知 提交于 2019-11-30 07:27:24
问题 I have configured an Application Gateway (AG) to do SSL termination/offload. The AG is configured to only listen on port 443 for HTTPS connections. Is it possible to redirect HTTP to HTTPS without having to: Create a new VM that contains a webserver that redirects the traffic and configure AG to listen on port 80 with the new VM in its backend pool, or Also allow HTTP connections to my application VM's and handle redirect in my application code I'm hoping I overlooked a flag/feature in AG.

Custom domain for Azure application gateway

最后都变了- 提交于 2019-11-30 03:31:15
问题 I am trying to create application gateway with custom domain name, I keep getting error saying "cannot have Domain Name Label specified." I was wondering if I am doing something wrong or it's not possible for azure application gateway to have custom domain name ? 回答1: Here are my lessons learned regarding the azure application gateway: 1.) Application gateway does _not_ support statically addressed public IPs 2.) Application gateway does _not_ support public IPs with a DNS name (e.g. somename