APIM should be able to access open api definition using internal domain.
Our services are deployed on AKS, and we have our APIM on the same virtual network. Now APIM can use our internal domain to reach our services. Each of our services have an endpoint where we expose our swagger definition (swagger.json file). When we try to create an API using our the accessible endpoint (internal), it doesn't find it. Why it's not possible although APIM belongs to the same network?
AHMED ELHAROUNY commented
When providing a URL to swagger file through UI, ARM or Powershell. The expectation is that its available through public internet, Azure pulls it before even it communicate with APIM (whether in a VNet or not)
Which is a big limitation and not suitable for when API definitions are private which is a requirement for most enterprise use cases.
This is indeed weird. Not even the DevOps pipeline able to map it correctly.