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
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"
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(
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(
Parameters
-
id
optional computed - string -
location
required - string -
name
required - string -
resource_group_name
required - string -
service_name
required - string -
source_platform
required - string -
tags
optional - map from string to string -
target_platform
required - string -
timeouts
single block
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 - stringlocation
required - stringResource location.
name
required - stringName of the project
properties
requireddatabasesInfo
optional arraysourceDatabaseName
required - stringName of the database
sourceConnectionInfo
optionalpassword
optional - stringPassword credential.
userName
optional - stringUser name
sourcePlatform
required - stringSource platform for the project.
targetConnectionInfo
optionalpassword
optional - stringPassword credential.
userName
optional - stringUser name
targetPlatform
required - stringTarget platform for the project.
tags
optional - stringResource 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.