Skip to content

Commit 7779c50

Browse files
authored
Merge pull request #222895 from b-branco/move-resources-between-regions
Move AP5G resources to a different region
2 parents 2af00e0 + f012eb9 commit 7779c50

File tree

4 files changed

+128
-0
lines changed

4 files changed

+128
-0
lines changed
67 KB
Loading
77.4 KB
Loading
Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
---
2+
title: Move Azure Private 5G Core private mobile network resources between regions
3+
titleSuffix: Azure Private 5G Core Preview
4+
description: In this how-to guide, you'll learn how to move your private mobile network resources to a different region.
5+
author: b-branco
6+
ms.author: biancabranco
7+
ms.service: private-5g-core
8+
ms.topic: how-to
9+
ms.date: 01/04/2023
10+
ms.custom: subject-moving-resources
11+
---
12+
13+
# Move your private mobile network resources to a different region
14+
15+
In this how-to guide, you'll learn how to move your private mobile network resources to a different region. This involves exporting your resources from the source region's resource group and recreating them in a new resource group deployed in the target region.
16+
17+
You might move your resources to another region for a number of reasons. For example, to take advantage of a new Azure region, to create a backup of your deployment, to meet internal policy and governance requirements, or in response to capacity planning requirements.
18+
19+
If you also want to move your Arc-enabled Kubernetes cluster, contact your support representative.
20+
21+
## Prerequisites
22+
23+
- Ensure you can sign in to the Azure portal using an account with access to the active subscription you used to create your private mobile network. This account must have the built-in Contributor or Owner role at the subscription scope.
24+
- Ensure Azure Private 5G Core supports the region to which you want to move your resources. <!-- Refer to [Products available by region](https://azure.microsoft.com/explore/global-infrastructure/products-by-region/) -->
25+
- Verify pricing and charges associated with the target region to which you want to move your resources.
26+
- Choose a name for your new resource group in the target region. This must be different to the source region's resource group name.
27+
28+
## Back up deployment information
29+
30+
The following list contains the data that will be lost over the region move. Back up any information you'd like to preserve; after the move, you can use this information to reconfigure your deployment.
31+
32+
1. For security reasons, your SIM configuration won't be carried over a region move. Refer to [Collect the required information for your SIMs](provision-sims-azure-portal.md#collect-the-required-information-for-your-sims) to take a backup of all the information you'll need to recreate your SIMs.
33+
1. If you want to keep using the same credentials when signing in to [distributed tracing](distributed-tracing.md), save a copy of the current password to a secure location.
34+
1. If you want to keep using the same credentials when signing in to the [packet core dashboards](packet-core-dashboards.md), save a copy of the current password to a secure location.
35+
1. Any customizations made to the packet core dashboards won't be carried over the region move. Refer to [Exporting a dashboard](https://grafana.com/docs/grafana/v6.1/reference/export_import/#exporting-a-dashboard) in the Grafana documentation to save a backed-up copy of your dashboards.
36+
1. Most UEs will automatically re-register and recreate any sessions after the region move completes. If you have any special devices that require manual operations to recover from a packet core outage, gather a list of these UEs and their recovery steps.
37+
38+
## Prepare to move your resources
39+
40+
### Remove SIMs and custom location
41+
42+
> [!IMPORTANT]
43+
> Completing this step will initiate an outage in the source region.
44+
>
45+
> If you want your source deployment to stay operational during the region move, skip this step and move to [Generate template](#generate-template). You'll need to make additional modifications to the template in [Prepare template](#prepare-template).
46+
47+
Before moving your resources, you'll need to delete all SIMs in your deployment. You'll also need to uninstall all packet core instances you want to move by changing their **Custom ARC location** field to **None**.
48+
49+
1. Follow [Delete SIMs](manage-existing-sims.md#delete-sims) to delete all the SIMs in your deployment.
50+
1. For each site that you want to move, follow [Modify the packet core instance in a site](modify-packet-core.md) to modify your packet core instance with the changes below. You can ignore the sections about attaching and modifying data networks.
51+
52+
1. In *Modify the packet core configuration*, make a note of the custom location value in the **Custom ARC location** field.
53+
1. Set the **Custom ARC location** field to **None**.
54+
1. In *Submit and verify changes*, the packet core will be uninstalled.
55+
56+
### Generate template
57+
58+
Your mobile network resources can now be exported via an Azure Resource Manager (ARM) template.
59+
60+
1. Navigate to the resource group containing your private mobile network resources.
61+
1. In the resource menu, select **Export template**.
62+
63+
:::image type="content" source="media/region-move/region-move-export-template.png" alt-text="Screenshot of the Azure portal showing the resource menu Export template option.":::
64+
65+
1. Once Azure finishes generating the template, select **Download**.
66+
67+
:::image type="content" source="media/region-move/region-move-download-template.png" alt-text="Screenshot of the Azure portal showing the option to download a template.":::
68+
69+
## Move resources to a new region
70+
71+
### Prepare template
72+
73+
You'll need to customize your template to ensure all your resources are correctly deployed to the new region.
74+
75+
1. Open the *template.json* file you downloaded in [Generate template](#generate-template).
76+
1. Find every instance of the original region's code name and replace it with the target region you're moving your deployment to. This involves updating the **location** parameter for every resource. See [Region code names](region-code-names.md) for instructions on how to obtain the target region's code name.
77+
1. Find every instance of the original region's resource group name and replace it with the target region's resource group name you defined in [Prerequisites](#prerequisites).
78+
1. If you skipped [Remove SIMs and custom location](#remove-sims-and-custom-location) because you need your deployment to stay online in the original region, make the additional changes to the template:
79+
1. Remove all the SIM resources.
80+
1. Remove all custom location entries, including any dependencies from other resources.
81+
1. Remove any other resources you don't want to move to the target region.
82+
83+
### Deploy template
84+
85+
1. [Create a resource group](/azure/azure-resource-manager/management/manage-resource-groups-portal) in the target region. Use the resource group name you defined in [Prerequisites](#prerequisites).
86+
1. Deploy the *template.json* file you downloaded in [Generate template](#generate-template).
87+
88+
- If you want to use the Azure portal, follow the instructions to deploy resources from a custom template in [Deploy resources with ARM templates and Azure portal](/azure/azure-resource-manager/templates/deploy-portal).
89+
- If you want to use PowerShell, navigate to the folder containing the *template.json* file and deploy using the command:
90+
91+
```azurepowershell
92+
az deployment group create --resource-group <new resource group name> --template-file template.json
93+
```
94+
95+
1. In the Azure portal, navigate to the new resource group and verify that your resources have been successfully recreated.
96+
97+
## Configure custom location
98+
99+
You can now install your packet core instances in the new region.
100+
101+
For each site in your deployment, follow [Modify the packet core instance in a site](modify-packet-core.md) to reconfigure your packet core custom location. In *Modify the packet core configuration*, set the **Custom ARC location** field to the custom location value you noted down in [Remove SIMs and custom location](#remove-sims-and-custom-location). You can ignore the sections about attaching and modifying data networks.
102+
103+
## Restore backed up deployment information
104+
105+
Configure your deployment in the new region using the information you gathered in [Back up deployment information](#back-up-deployment-information).
106+
107+
1. Retrieve your backed up SIM information and recreate your SIMs by following one of:
108+
109+
- [Provision new SIMs for Azure Private 5G Core Preview - Azure portal](provision-sims-azure-portal.md)
110+
- [Provision new SIMs for Azure Private 5G Core Preview - ARM template](provision-sims-arm-template.md)
111+
112+
1. Follow [Access the distributed tracing web GUI](distributed-tracing.md#access-the-distributed-tracing-web-gui) to restore access to distributed tracing.
113+
1. Follow [Access the packet core dashboards](packet-core-dashboards.md#access-the-packet-core-dashboards) to restore access to your packet core dashboards.
114+
1. If you backed up any packet core dashboards, follow [Importing a dashboard](https://grafana.com/docs/grafana/v6.1/reference/export_import/#importing-a-dashboard) in the Grafana documentation to restore them.
115+
1. If you have UEs that require manual operations to recover from a packet core outage, follow their recovery steps.
116+
117+
## Verify
118+
119+
Use [Azure Monitor](monitor-private-5g-core-with-log-analytics.md) or the [packet core dashboards](packet-core-dashboards.md) to confirm your deployment is operating normally after the region move.
120+
121+
## Next steps
122+
123+
If you no longer require a deployment in the source region, [delete the original resource group](/azure/azure-resource-manager/management/manage-resource-groups-portal).
124+
<!-- TODO: Learn more about reliability in Azure Private 5G Core. -->

articles/private-5g-core/toc.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ items:
116116
href: modify-local-access-configuration.md
117117
- name: Export, upload and share traces
118118
href: distributed-tracing-share-traces.md
119+
- name: Move between regions
120+
items:
121+
- name: Move private mobile network resources
122+
href: region-move-private-mobile-network-resources.md
119123
- name: Reference
120124
items:
121125
- name: REST API

0 commit comments

Comments
 (0)