So what I'm doing is I've got a VM running in Azure. Simple enough, but what it's doing we want to secure from the outside world. I've got specific ports open, 8000, to everything on the 10 vlan, and my specific public IP that I"m using. Accessing the data that way works fine. No issues, etc.
So so, I've gone out and created a VStudio Container API on my Mac using:
az container create --resource-group=<> -name <>
--ip-address Public
--ports 80
If I do that, I can access a dummy method call and it returns data as expected.
What I need though is to have the method itself reach out to the VM and interact with it. It's just doing HTTP Posts of Json, so not really a lot of rocket science between the two.
But I can't get the WebAPI in a container to access the VM.
I've also tried --vnet=<>
where the <> is the name of the vnet my VMs are sitting in, but still nothing.
It's almost as if I need to tell the box that it's got 2 NICs and that it can communicate to the 10 net via 1, and the public net on the other.
So any ideas what I'm missing?