-
Notifications
You must be signed in to change notification settings - Fork 21.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What to do when the CI IP address changes? #65128
Comments
@mattp-rab Thank you for sharing your query! We are currently investigating and will get back to you shortly on this. |
@mattp-rab I had discussion internally and got below response : It seems to be a common ask. Currently we are suggesting to customers automating client configuration updates every time ACI IP changes. Here is an example for updating AppGw backend configuration using an Automation Account usin below script #Variables declarations #login to Azure $ipaddraci=(Get-AzContainerGroup -ResourceGroupName $RGACI -Name $ACINAME).IpAddress $AppGw1 = Get-AzApplicationGateway -Name $APPGWNAME -ResourceGroupName $RGAPPGW $ipaddraappgwbk1=(Get-AzApplicationGatewayBackendAddressPool -Name $APPGWBKNAME -ApplicationGateway $AppGw1) $ipaddraappgwbk=$ipaddraappgwbk1.BackendAddresses.ToArray().IpAddress If ("$ipaddraci" -eq "$ipaddraappgwbk") { } Else { 'IPs are not equal.' $AppGw =Set-AzApplicationGatewayBackendAddressPool -ApplicationGateway $AppGw -Name $APPGWBKNAME -BackendIPAddresses "$ipaddraci" Hope it helps!!! |
Thank you very much for your response, @psmanhas. I actually wasn't expecting a response :-) I had arrived at that process as a workaround too. In our case we are looking at deploying a private DNS zone and having each ACI instance update their record with the private DNS service upon boot. Then we reference container instances by DNS name instead of IP address. To us to have to code in a workaround for this is a deal-breaker for using ACI in earnest. Is there a plan with an ETA for a built-in solution to this problem? The alternative is to use Azure functions in a private VNET, but the costs are outrageous. Any suggestions would be welcomed! By the way, I couldn't access your referenced URL. I get redirected to |
@mattp-rab Thank you for sharing out your inputs. I will again reach out to our Product Group and will keep you updated on thread and apologies for adding up link since it wont be accessible you can indeed take a look on script updated in comment :) |
@mattp-rab Apologies for all the delay in response and the inconvenience caused because of the issue. IP changes upon restart/stop/start is expected behavior and published in our documentation. Hope it helps!!! Do let me know if you have any further queries on this. |
@mattp-rab We will now close this issue. If there are further questions regarding this, please tag me in a comment. I will reopen it and we will continue the discussion. |
Saying "is expected behaviour" is a little poor. We would never expose a service directly. Everything is private, on VNET subnets with NSG and Azure Firewalls. Access is controlled by Private and Public DNS pointing using Azure App Gateway as a proxy with Network Monitoring. This ensures only the right services can communicate with each other and is a core security principle. Using ACI and Application Gateway is documented without any mention that an IP will suddenly swap out. If I am making a simple Cat site demo then this is fine, but for a ISO/GDPR company, we simply can't use ACI for web services. https://docs.microsoft.com/en-us/azure/container-instances/container-instances-application-gateway Based on these comments, I don't think Azure POs even understands this is poor? Solution:
|
So what are we supposed to do when the IP address of the underlying private container instance group changes? This happens from time to time upon instance restarts or redeployments.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: