← All projects

Cloud migration

From vCenter to Azure and IONOS Cloud, then to IaC

We scripted VM transfers for multiple projects and imported the cloud resources into Terraform.

The problem

We ran multiple projects on vCenter. We had to move their production VMs to Azure and IONOS Cloud while keeping services available. We also needed a way to manage the cloud resources after the move.

My responsibility

I co-led the migration with the operations team. My work covered the VM moves and the handover to day-to-day cloud operations.

The decisions

We used scripts to make VM transfers repeatable. For ongoing management, we described the migrated resources in Terraform. That gave us a versioned record of the configuration and a plan to review before making further changes.

The solution

Migration scripts moved the VMs from vCenter to their target cloud. Once a machine was running, we checked the workload and represented its cloud resources in Terraform configuration.

Terraform import associated the existing cloud resources with their definitions in state. From there, a change such as a VM resize could start in the repository and go through a Terraform plan before being applied. In IONOS Cloud we reviewed VM sizing and usage. In Azure we used Advisor recommendations in cost reviews.

Conceptual diagrams

Moving the VMs
  1. vCenterProduction VMs from multiple projects.
  2. Migration scriptsRepeatable transfers of the VMs.
  3. Azure and IONOS CloudThe VMs run in their target cloud.
Taking over management in Terraform
  1. Resource definitionsDescribe the cloud resources in Terraform.
  2. Terraform importAssociate the running resources with those definitions in state.
  3. Changes as codeEdit the code in Git and review the plan before applying a change.

The outcome

The team moved the workloads and took over cloud resource management in Terraform. The follow-up rightsizing and usage changes brought IONOS Cloud costs down by about 20%.

The takeaway

The first boot in the new cloud is one milestone. The next is being able to change a running machine with a clear plan and a record in Git. Sizing and costs still need attention once the workloads settle.

Explore the lab

Let's connect

Something to build?
Let’s talk.

Hybrid cloud, observability, automation or an interesting technical problem.

Let's connect

Let’s talk.

If you have a project, a cloud problem or just want to talk about technology, you can reach me here.