I have an ASP.NET Core Web API that sends HTTP requests to on-prem resources. This is made possible by adding Hybrid Connections to the App Service (under "Networking"). This works fine.
I added integration tests which call my API endpoints. When I run these tests in the Azure DevOps pipeline, obviously these on-prem resources are unavailable because there are no Hybrid Connection involved.
Can I configure the WebApplicationFactory
to use Hybrid Connections?
CodePudding user response:
I ended up running the pipeline on a self-hosted agent instead. Then my on-prem resources are available.