Azure Devops MS-hosted agent IP address

0 votes
We use Azure DevOps with Microsoft-hosted agents and would like to apply authorized IP ranges for our AKS we need the agent IP addresses. To automate the process in our release pipeline we have included the Azure CLI task with the command :

AGENT_IP=$(curl -s https://ipinfo.io/json | jq -r .ip)

az aks update --resource-group xxx --name yyy --api-server-authorized-ip-ranges ${AGENT_IP}

All the AGENT_IPs, we are getting from the command line, are not listed in the weekly json file. Even the operation is executed successfully and the AGENT_IP is included in the "apiServerAccessProfile.authorizedIpRanges" section, sometimes we are not able to deploy our microservice to the AKS and we are getting an error: "Unable to connect to the server: dial tcp xx.xx.xx.xx:443: i/o timeout". However, sometimes the deployment is successful, even though the AGENT_IP is not listed in the weekly json.

Why the IP addresses I am getting, are not in the weekly JSON file? Randomly I am able to deploy to AKS?
Mar 26, 2022 in Other DevOps Questions by Kichu
• 19,040 points
1,316 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Other DevOps Questions

0 votes
0 answers
0 votes
2 answers

Which is better azure devops or aws devops?

Azure DevOps, a part of Microsoft's cloud ...READ MORE

answered Jan 8 in Cloud Computing by anonymous
• 700 points
2,277 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP