Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Determine IP address/es of Azure Container Instances

Is there way to determine outbound IPs specific to Azure Container Instances?

Background: I would like to allow my container instance to send network messages to service behind firewall. To configure this firewall I need to know outbound IP address or range of IPs.

I found list of IPs for my region here https://www.microsoft.com/en-us/download/details.aspx?id=56519 but it's for all services (for my region it's more than 180 entries) not only container instances.

like image 283
Jakub Złoczewski Avatar asked Oct 19 '25 12:10

Jakub Złoczewski


1 Answers

The only way i have found to obtain the IP address of a container instance in Azure is to run the following command from within the container via the Azure Portal (settings -> containers -> connect)...

curl 'https://api.ipify.org?format=json'

like image 125
Baldy Avatar answered Oct 21 '25 05:10

Baldy