E2e testing windows app depending on API


I am working on a project with e2e testing. Our app is a C# app running on windows calling an API running on Linux.

To test the app we need the API running but I can’t figure out how can we have a Linux image and a windows image in the same pipeline.

Can you help me?