You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/operational-excellence/relocation-functions.md
+18-11Lines changed: 18 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,9 +18,7 @@ This article describes how to move Azure Functions to another Azure region.
18
18
19
19
Azure Functions resources are region-specific and can't be moved across regions. Instead, you must create a copy of your existing function app resources in the target region, and then redeploy your functions code over to the new app.
20
20
21
-
If minimal downtime is a requirement, consider running your function app in both regions to implement a disaster recovery architecture:
22
-
23
-
-[Reliability in Azure Functions](../reliability/reliability-functions.md#cross-region-disaster-recovery-and-business-continuity)
21
+
If minimal downtime is a requirement, consider running your function app in both regions to implement a disaster recovery architecture. See [Reliability in Azure Functions](../reliability/reliability-functions.md#cross-region-disaster-recovery-and-business-continuity) for more information.
24
22
25
23
26
24
## Prerequisites
@@ -47,7 +45,7 @@ Your functions may connect to other resources by using triggers or bindings. For
47
45
You should be able to also [export a template from existing resources](../azure-resource-manager/templates/export-template-portal.md).
48
46
49
47
50
-
## Plan
48
+
## Prepare
51
49
52
50
This section is a planning checklist in the following areas:
53
51
@@ -81,22 +79,31 @@ See [Relocate Azure App Services to another region - VNet Connectivity](relocati
81
79
82
80
See [Relocate Azure App Services to another region - Identities](relocation-app-service.md#identities)
83
81
84
-
## Relocate
85
82
86
-
To relocate your function app resources, you can use either available [deployment technologies](../azure-functions/functions-deployment-technologies.md) or [Infrastructure as Code (IaC)](../azure-functions/functions-infrastructure-as-code.md).
83
+
## Relocate
87
84
85
+
There are three ways to create function apps and related resources in Azure at the target region:
88
86
89
-
### Relocate using available deployment technologies
87
+
-**IaC (Bicep/ARM/Terraform)**. Copy your code into the new function app at the target region.. If your code isn't available, you can attempt to export a template from the source function app by using the Azure portal:
90
88
91
-
If you have access to the deployment and automation resources that created the function app in the source region, re-run the same deployment steps in the target region to create and redeploy your app.
89
+
1. Sign in to the [Azure portal](https://portal.azure.com).
90
+
91
+
2. Select **All resources** and then select your key vault.
92
+
93
+
3. Select > **Automation** > **Export template**.
94
+
95
+
4. Choose **Download** in the **Export template** blade.
96
+
97
+
5. Locate the .zip file that you downloaded from the portal, and unzip that file to a folder of your choice.
98
+
99
+
This zip file contains the .json files that comprise the template and scripts to deploy the template.
92
100
93
-
If you only have access to the source code but not the deployment and automation resources you can deploy and configure the function app on the target region using any of the available [deployment technologies](../azure-functions/functions-deployment-technologies.md) or using one of the [continuous deployment methods](../azure-functions/functions-continuous-deployment.md).
101
+
-**Azure CLI/PowerShell**. Copy your code into the new function app at the target region.
102
+
-**Azure portal**. If for some reason your code is not available, you'll have to recreate it at the target region.
94
103
95
104
96
105
### Relocate using IaC
97
106
98
-
As long as you aren't migrating any Durable Entities state, you can relocate using IaC. For instructions, see [Relocate App Service resources using IaC](./relocation-app-service.md#relocate-using-iac).
99
-
100
107
To migrate Durable Entities, see [Recovery With GRS Enabled Storage for Azure Durable Functions](../azure-functions/durable/durable-functions-disaster-recovery-geo-distribution.md#scenario-3---load-balanced-compute-with-grs-shared-storage)
0 commit comments