title | description | ms.topic | ms.date | author | ms.author | ms.service | ms.custom |
---|---|---|---|---|---|---|---|
Migrate Azure compute resource from Azure Germany to global Azure |
This article provides information about migrating your Azure compute resources from Azure Germany to global Azure. |
article |
10/16/2020 |
gitralf |
ralfwi |
germany |
bfmigrate |
[!INCLUDE closureinfo]
This article has information that can help you migrate Azure compute resources from Azure Germany to global Azure.
You can't directly migrate Azure compute infrastructure as a service (IaaS) resources from Azure Germany to global Azure. But, there are multiple ways you can "duplicate" your VMs.
Azure Site Recovery can help you migrate your VMs from Azure Germany to global Azure. Because the source and target are in different tenants in a migration from Azure Germany to global Azure, you can't use the normal Azure Disaster Recovery option that's available for VMs. The trick is to set up a Site Recovery vault in the target environment (global Azure) and to proceed like you're moving a physical server to Azure. In the Azure portal, select a replication path labeled Not virtualized. When the replication is finished, do a failover.
Note
The following steps are the same steps you would take to migrate a physical server that's running on-premises to Azure.
To learn more, review this helpful Site Recovery tutorial. For a quick overview, here's a shorter and slightly adapted version of the process:
Install a configuration/process server in your source environment to build the server images. Then, replicate the images to the Azure Recovery Services vault in your target environment. The work is all done by the configuration server. You don't need to touch the individual servers.
- Sign in to the Azure Germany portal.
- Compare the OS versions of the VMs you want to migrate against the support matrix.
- Set up a new VM in your source Azure Virtual Network instance to act as the configuration server:
- Select DS4v3 or higher (4 to 8 cores, 16-GB memory).
- Attach an additional disk that has at least 1 TB of available space (for the VM images).
- Use Windows Server 2012 R2 or later.
- Make sure that ports 443 and 9443 are open for the subnet in both directions.
- Sign in to the new VM (ConfigurationServer).
- In your remote desktop session, sign in to the global Azure portal by using your global Azure credentials.
- Set up a virtual network in which the replicated VMs will run.
- Create an Azure Storage account.
- Set up the Recovery Services vault.
- Define Protection goal (To Azure > Not virtualized/other).
- Download the Recovery Unified Setup installation file (Prepare Infrastructure > Source). When you open the portal URL from within ConfigurationServer, the file is downloaded to the correct server. From outside ConfigurationServer, upload the installation file to ConfigurationServer.
- Download the vault registration key (upload it to ConfigurationServer like in the preceding step, if necessary).
- Run the Recovery Unified Setup installation on ConfigurationServer.
- Set up the target environment (check that you're still signed in to the target portal).
- Define the replication policy.
- Start replication.
After replication initially succeeds, test the scenario by doing a test failover. Verify and delete the test. Your final step is to do the real failover.
Caution
Syncing back to the source VM doesn't occur. If you want to migrate again, clean up everything and start again at the beginning!
You can export the Azure Resource Manager template that you use to deploy to your local machine. Edit the template to change the location and other parameters or variables. Then, redeploy in global Azure.
Important
Change location, Azure Key Vault secrets, certificates, and other GUIDs to be consistent with the new region.
Export the Resource Manager template in the portal by selecting the resource group. Select deployments, and then select the most recent deployment. Select Template in the left menu and download the template.
A .zip file that has several files in it downloads. The PowerShell, Azure CLI, Ruby, or .NET scripts help you deploy your template. The file parameters.json has all the input from the last deployment. It's likely that you will need to change some settings in this file. Edit the template.json file if you want to redeploy only a subset of the resources.
For more information:
- Refresh your knowledge by completing the Site Recovery tutorials.
- Get information about how to export Resource Manager templates or read an overview of Azure Resource Manager.
- Learn more about physical-to-Azure disaster recovery by using Site Recovery.
- Read the overview of Azure locations.
- Learn more about how to redeploy a template.
You can redeploy Azure Cloud Services resources by providing the .cspkg
and .cscfg
definitions again.
To redeploy cloud services in the Azure portal:
- Create a new cloud service by using your
.cspkg
and.cscfg
definitions. - Update the CNAME or A record to point traffic to the new cloud service.
- When traffic points to the new cloud service, delete the old cloud service in Azure Germany.
To redeploy cloud services by using PowerShell:
-
Create a new cloud service by using your
.cspkg
and.cscfg
definitions.New-AzureService -ServiceName <yourServiceName> -Label <MyTestService> -Location <westeurope>
-
Create a new deployment by using your
.cspkg
and.cscfg
definitions.New-AzureDeployment -ServiceName <yourServiceName> -Slot <Production> -Package <YourCspkgFile.cspkg> -Configuration <YourConfigFile.cscfg>
-
Update the CNAME or A record to point traffic to the new cloud service.
-
When traffic points to the new cloud service, delete the old cloud service in Azure Germany.
Remove-AzureService -ServiceName <yourOldServiceName>
To redeploy cloud services by using the REST API:
-
Create a new cloud service in the target environment.
https://management.core.windows.net/<subscription-id>/services/hostedservices
-
Create a new deployment by using the Create Deployment API. To find your
.cspkg
and.cscfg
definitions, you can call the Get Package API.https://management.core.windows.net/<subscription-id>/services/hostedservices/<cloudservice-name>/deploymentslots/production
-
When traffic points to the new cloud service, delete the old cloud service in Azure Germany.
https://management.core.cloudapi.de/<subscription-id>/services/hostedservices/<old-cloudservice-name>
For more information:
- Review the Cloud Services overview.
You can't migrate Azure Service Fabric resources from Azure Germany to global Azure. You must redeploy Service Fabric resources in the new environment.
You can get information about your current Service Fabric environment by using PowerShell cmdlets. Access all cmdlets that are related to Service Fabric by entering Get-Help *ServiceFabric*
in PowerShell.
For more information:
- Refresh your knowledge by completing the Service Fabric tutorials.
- Learn how to create a new cluster.
- Review the Service Fabric overview.
You can't migrate Azure Batch account data from one region to another. The account might have running VMs associated with it and be actively interacting with data in storage accounts, databases, or other storage systems.
Redeploy your deployment scripts, templates, or code in the new region. Redeployment includes the following tasks:
- Create a Batch account.
- Increase your Batch account quota.
- Create Batch pools.
- Create new storage accounts, databases, and other services that are used to persist input and output data.
- Update your configuration and code to point to the new Batch account and use new credentials.
For more information:
- Refresh your knowledge by completing the Batch tutorials.
- Review the Azure Batch overview.
Migrating Azure Functions resources from Azure Germany to global Azure isn't supported at this time. We recommend that you export the Resource Manager template, change the location, and then redeploy to the target region.
Important
Change location, Key Vault secrets, certificates, App Settings, and other GUIDs to be consistent with the new region.
For more information:
- Refresh your knowledge by completing the Functions tutorials.
- Learn how to export Resource Manager templates or read an overview of Azure Resource Manager.
- Review the Azure Functions overview.
- Get an overview of Azure locations.
- Learn how to redeploy a template.
To migrate virtual machine scale sets to global Azure, export the Resource Manager template, adapt it to the new environment, and then redeploy to the target region. Export only the base template and redeploy the template in the new environment. Individual virtual machine scale set instances should all be the same.
Important
Change location, Key Vault secrets, certificates, and other GUIDs to be consistent with the new region.
For more information:
- Refresh your knowledge by completing the virtual machine scale set tutorials.
- Learn how to export Azure Resource Manager templates.
- Review the Azure Resource Manager overview.
- Get an overview of virtual machine scale sets.
- Read an overview of Azure locations.
- Learn how to redeploy a template.
Currently, apps that you created by using the Web Apps feature of Azure App Service can't be migrated from Azure Germany to global Azure. We recommend that you export a web app as a Resource Manager template, and then redeploy after you change the location property to the new region.
Important
Change location, Key Vault secrets, certificates, and other GUIDs to be consistent with the new region.
For more information:
- Refresh your knowledge by completing the App Service tutorials.
- Learn how to export Resource Manager templates or read an overview of Azure Resource Manager.
- Review the App Service overview.
- Read the overview of Azure locations.
- Learn how to redeploy a template.
Learn about tools, techniques, and recommendations for migrating resources in the following service categories: