Create and configure NAT gateway after moving resources to another region

In this article, you'll learn how to set up a NAT gateway after moving resources to a different region. You might want to move resources to a new Azure region that better suits your customers' location or meets your organization's needs and policies.

Note

NAT gateway instances can't directly be moved from one region to another. A workaround is to use Azure Resource Mover to move all the resources associated with the existing NAT gateway to the new region. You then create a new instance of NAT gateway in the new region and then associate the moved resources with the new instance. After the new NAT gateway is functional in the new region, you delete the old instance in the previous region.

Prerequisites

  • An Azure account with an active subscription. Create an account for trial.

  • Owner access in the subscription in which resources you want to move are located.

  • Resources from previous region moved to new region. For more information on moving resources to another region, see Move resources to another region with Azure Resource Mover. Follow the steps in that article to move the resources in your previous region that are associated with the NAT gateway. After successful move of the resources, continue with the steps in this article.

Create a new NAT gateway

After you move all the resources associated with the original NAT gateway instance to the new region and verify them, you can create a new NAT gateway instance. Then, you can associate the moved resources with the new NAT gateway.

  1. In the search box at the top of the portal, enter NAT gateway. Select NAT gateways.

  2. Select + Create.

  3. In Create network address translation (NAT) gateway, enter or select the following information in the Basics tab.

    Setting Value
    Project details
    Subscription Select your subscription.
    Resource group Select Create new.
    Enter test-rg in Name.
    Select OK.
    Instead, you can select the existing resource group associated with the moved resources in the subscription.
    Instance details
    Name Enter nat-gateway.
    Region Select the name of the new region.
    Availability Zone Select No Zone. Instead, you can select the zone of the moved resources if applicable.
    Idle timeout (minutes) Enter 10.
  4. Select the Outbound IP tab, or select Next: Outbound IP at the bottom of the page.

  5. In the Outbound IP tab, enter or select the following information.

    Setting Value
    Public IP addresses Select Create a new public IP address.
    Enter public-ip-nat in Name.
    Select OK.
    Instead, you can select an existing public IP in your subscription if applicable.
  6. Select the Subnet tab, or select Next: Subnet at the bottom of the page.

  7. Select the pull-down box under Virtual network in the Subnet tab. Select the Virtual Network that you moved using Azure Resource Mover.

  8. In Subnet name, select the subnet that you moved using Azure Resource Mover.

  9. Select the Review + create tab, or select the Review + create button at the bottom of the page.

  10. Select Create.

Test NAT gateway in new region

For steps on how to test the NAT gateway, see Quickstart: Create a NAT gateway - Azure portal.

Delete old instance of NAT gateway

After you create the new NAT gateway and test the deployment, you can delete the source resources from the old region including the old NAT gateway instance.

Next steps

For more information on moving resources in Azure, see: