MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.08k stars 21.12k forks source link

Document config for AKS whith api-server-authorized-ip-ranges #54753

Open ezYakaEagle442 opened 4 years ago

ezYakaEagle442 commented 4 years ago

as described per https://docs.microsoft.com/en-us/azure/aks/api-server-authorized-ip-ranges could you please explain on this page how to setup an Azure DevOps agent / Jenkins Slave / Ansible ToolBox

see also :


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

MonikaReddy-MSFT commented 4 years ago

@ezYakaEagle442 , Thanks for brining this to our attention. We will investigate it further and update you shortly.

MonikaReddy-MSFT commented 4 years ago

@ezYakaEagle442 , I'm going to assign this to the document author so they can update the document accordingly.

mlearned commented 4 years ago

@pulkitaggarwl can you comment on this one please?

abarqawi commented 12 months ago

i faced similar issue today with AKS+Azure DevOps pipeline that AzureDevOps cannot connect to AKS with Authorized Ips even with correct IP regions ,, and we were able to solve by adding following Azure CLI task i added the outbound IPs also the regions Ips for india central and south india incase but most important is the agent Ip

in the Azure Dev Ops :

Task 1: add the MS hosted Ips IP=($(curl -s http://ipinfo.io/json | jq '.ip' | sed -e 's/^"//' -e 's/"$//')) echo "This Microsoft hosted agent public IP is: $IP" echo "##vso[task.setvariable variable=AGENT_IP;]$IP " az aks update --resource-group myResourceGroup --name myAKSCluster --api-server-authorized-ip-ranges "13.107.6.0/24,13.107.9.0/24,13.107.42.0/24,13.107.43.0/24, 20.41.194.0/24, $IP"

Task 2: remove only the Agent Ip

az aks update \ --resource-group myResourceGroup \ --name myAKSCluster \ --api-server-authorized-ip-ranges "13.107.6.0/24,13.107.9.0/24,13.107.42.0/24,13.107.43.0/24,20.41.194.0/24"

hope this helps