Hello, @selva ! I believe this is what you are looking for. Let me know in the comments if this doesn't work for your scenario.
How do I integrate an NAT Gateway with an Azure Service Fabric network?
If you want to provide internet access to Service Fabric managed clusters without exposing them directly to the internet, you can use NAT Gateways in the following scenarios:
https://learn.microsoft.com/en-us/azure/service-fabric/how-to-managed-cluster-nat-gateway
- Attach an NAT gateway to any node type and subnet configuration under the Bring your own virtual network section of the Configure managed cluster network settings article.
- Attach an NAT gateway to secondary node types using a dedicated subnet as outlined in the Bring your own Azure Load Balancer section of the Configure managed cluster network settings article. When you add your own load balancer and NAT gateway, you get increased control over your network traffic.
Bring your own virtual network with NAT gateway
You'll need both a virtual network and a load balancer, and you'll need to complete the following tasks to bring in your own virtual network with NAT gateway:
- Follow the steps in the Azure NAT Gateway quickstart to create a NAT gateway.
- Provide the Service Fabric resource provider permission to modify the NAT gateway's settings using role assignment. Follow the first two steps in Bring your own virtual network section of the Configure managed cluster network settings article, injecting your NAT gateway's information into subnet parameters.
- Now, you're ready to attach the NAT gateway to your virtual network's subnet. You can use an ARM template, the Azure CLI, Azure PowerShell, or the Azure portal.
Azure CLI:
az network vnet subnet update --resource-group myResourceGroup --vnet-name mvVNet --name mySubnet --nat-gateway myNATGateway
Portal:
- On the Azure portal, navigate to your virtual network resource.
- Under Settings, select Subnets.
- Select the subnet you want to associate with your NAT gateway.
- Open the NAT gateway dropdown and select your NAT gateway.
- Click Save.
Additional Reading:
I hope this has been helpful! Your feedback is important so please take a moment to accept answers.
If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!