Azure / reliable-web-app-pattern-dotnet

The Reliable Web App Pattern is a set of objectives to help your web application converge on the cloud. This repo contains a reference implementation of a reliable web application for .NET.
https://aka.ms/eap/rwa/dotnet/doc
MIT License
356 stars 113 forks source link

Being redirected to Azure Front Door URI when trying to debug locally #304

Closed KSchlobohm closed 1 year ago

KSchlobohm commented 1 year ago

Describe the bug When I open the solution in Visual studio and run it with F5 I am being redirected to the Front Door URI in the cloud. This is blocking my dev experience, I'd like to set a break point and work on the C# code locally to do bug fixes and new feature work as any dev would in their project.

Expected behavior Not redirected to Front Door when running locally

KSchlobohm commented 1 year ago

@codemillmatt - for awareness

KSchlobohm commented 1 year ago

This is happening because the MVC web app has middleware that redirects users to front door when the app is running. This redirect is added for demo purposes to help readers land on the right URI because of the way azd deploy publishes an azurewebsites.net URI after it is done.

Locally, we should disable the MVC middleware invoked by UseRetryTestingMiddleware in the Statup.cs class

KSchlobohm commented 1 year ago

This should be updated as we adjust our devOps flow for network isolation mode.

KSchlobohm commented 1 year ago

migrated to 1852507