Skip to content

Azure Web Swaps Warmup Pings Do Not Support HTTPS #41231

@Mike-E-angelo

Description

@Mike-E-angelo

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

This probably does not belong here, or maybe it does. It is based on a Twitter thread with several ASP.NET developers from this repository, and not Azure developers, so I am posting it here and we can take it from there. :)

The issue appears to be that when a swap occurs in Azure, it only sends an HTTP request, not an HTTPS request. This is not configurable. The result in an HTTPS-only App Service is that a redirect occurs and the warmup never happens. In order to make this work, the directions from this well-written blog post must be followed:
https://haacked.com/archive/2020/09/28/azure-swap-with-warmup-aspnetcore/

One of the steps is to turn off HTTP-only, which reduces security posture and accordingly creates an alert from Azure Advisor when runs its security checks:
https://stackoverflow.com/questions/55706533/azure-how-to-fix-web-application-should-only-be-accessible-over-https-warnin

Expected Behavior

When the warmup ping pings, it pings as a ping is supposed to ping, resulting in a proper warmup. :)

Steps To Reproduce

Spend several days setting up swapping and wonder why your application is taking as much time warming up after a "warmup" as it does with a direct deployment:
https://docs.microsoft.com/en-us/answers/questions/807835/swap-warmup-takes-same-time-as-straight-deployment.html

Exceptions (if any)

NA

.NET Version

NA

Anything else?

I <3 you all. :) :) :) Really nice work out there regardless of this issue.

Metadata

Metadata

Assignees

Labels

ExternalThis is an issue in a component not contained in this repository. It is open for tracking purposes.area-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions