Azure Database Migration Project

This page shows how to write Terraform and Azure Resource Manager for Database Migration Project and write them securely.

azurerm_database_migration_project (Terraform)

The Project in Database Migration can be configured in Terraform with the resource name azurerm_database_migration_project. The following sections describe 3 examples of how to use the resource and its parameters.

Example Usage from GitHub

main.tf#L43
resource "azurerm_database_migration_project" "adbmp" {
  name                = "bupa-dbms-project"
  service_name        = azurerm_database_migration_service.dbms.name
  resource_group_name = azurerm_resource_group.resource_group.name
  location            = azurerm_resource_group.resource_group.location
  source_platform     = "SQL"
dmp.tf#L12
resource "azurerm_database_migration_project" "dmp" {
  name                = azurecaf_name.dmp.result
  location            = var.location
  resource_group_name = var.resource_group_name
  tags                = local.tags
  service_name = coalesce(
dmp.tf#L12
resource "azurerm_database_migration_project" "dmp" {
  name                = azurecaf_name.dmp.result
  location            = var.location
  resource_group_name = var.resource_group_name
  tags                = local.tags
  service_name = coalesce(

Review your Terraform file for Azure best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

Explanation in Terraform Registry

Manage a Azure Database Migration Project.

NOTE: Destroying a Database Migration Project will leave any outstanding tasks untouched. This is to avoid unexpectedly deleting any tasks managed outside of terraform.

Microsoft.DataMigration/services/projects (Azure Resource Manager)

The services/projects in Microsoft.DataMigration can be configured in Azure Resource Manager with the resource name Microsoft.DataMigration/services/projects. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

Parameters

  • apiVersion required - string
  • location required - string

    Resource location.

  • name required - string

    Name of the project

  • properties required
      • databasesInfo optional array
          • sourceDatabaseName required - string

            Name of the database

      • sourceConnectionInfo optional
          • password optional - string

            Password credential.

          • userName optional - string

            User name

      • sourcePlatform required - string

        Source platform for the project.

      • targetConnectionInfo optional
          • password optional - string

            Password credential.

          • userName optional - string

            User name

      • targetPlatform required - string

        Target platform for the project.

  • tags optional - string

    Resource tags.

  • type required - string

Frequently asked questions

What is Azure Database Migration Project?

Azure Database Migration Project is a resource for Database Migration of Microsoft Azure. Settings can be wrote in Terraform.

Where can I find the example code for the Azure Database Migration Project?

For Terraform, the celenn/Azure-Migrate, aztfmod/terraform-azurerm-caf and pkhuntia/aztfmod source code examples are useful. See the Terraform Example section for further details.