Hi tarun k
To allow your AKS agent to access dev.azure.com, you’ll need to configure outbound network access by whitelisting the required IP ranges and domain URLs used by Azure DevOps.
Please follow the below steps to resolve this issue:
- Determine if your AKS cluster is Public or Private.
- Azure DevOps requires access to specific domains and IPs. You must allow outbound access to: Domains:
-
dev.azure.com -
*.visualstudio.com -
*.vsassets.io -
*.vssps.visualstudio.com
You can find the latest list on: Allowed IP addresses and domain URLs13.107.6.0/24 13.107.9.0/24 13.107.42.0/24 13.107.43.0/24 150.171.22.0/24 150.171.23.0/24 150.171.73.0/24 150.171.74.0/24 150.171.75.0/24 150.171.76.0/24 -
- If your AKS nodes are in a subnet with an NSG then go to Azure Portal -> Network Security Groups -> Select the NSG attached to your AKS subnet. Add Outbound Security Rules:
- Destination: IP ranges listed above
- Port:
443 - Protocol:
TCP - Action:
Allow - Priority: Lower than any deny rule
- Update User Defined Routes (UDR) if Present.
- Ensure your AKS nodes can resolve
dev.azure.com. If using custom DNS, add conditional forwarders or rules to resolve Azure DevOps domains and test with:nslookup dev.azure.cominside the pod. - Deploy a test pod and run:
kubectl run curlpod --image=busybox -it --restart=Never -- sh # Inside the pod wget https://dev.azure.com
Hope this helps!
Please Let me know if you have any queries.
If you found the information helpful, please click "Upvote" on the post to let us know and consider accepting the answer as the token of appreciation. Thank You.