Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for data migration service #5257

Closed
magodo opened this issue Dec 26, 2019 · 2 comments
Closed

Support for data migration service #5257

magodo opened this issue Dec 26, 2019 · 2 comments

Comments

@magodo
Copy link
Collaborator

magodo commented Dec 26, 2019

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

Support data migration service and its related resources. It is a fully managed service designed to enable seamless migrations from multiple database sources to Azure data platforms with minimal downtime (online migrations). More info here.

The resource in terraform is meant to support resource provision/destroy. Not going to handle any procedure task (e.g. only support create/destroy a migration task but not start/stop a migration task).

New or Affected Resource(s)

  • azurerm_data_migration_service
  • azurerm_data_migration_project
  • azurerm_data_migration_task

Potential Terraform Configuration

resource "azurerm_data_migration_service" "example" {
	name                = "example-dms"
	location            = azurerm_resource_group.example.location
	resource_group_name = azurerm_resource_group.example.name
	virtual_subnet_id   = azurerm_subnet.example.id
	sku_name            = "Standard_1vCores"
}

resource "azurerm_data_migration_service_project" "example" {
	name                = "example-dms-project"
	location            = azurerm_resource_group.example.location
	resource_group_name = azurerm_resource_group.example.name
        service_name = azurerm_data_migration_service.example.name
	source_platform = "SQL"
        target_platform = "SQLDB"
}

resource "azurerm_data_migration_service_task_sql_server" "test" {
  name                       = "example-dms-task"
  service_name               = azurerm_data_migration_service.example.name
  project_name               = azurerm_data_migration_service_project.example.name
  resource_group_name        = azurerm_resource_group.example.name
  databases {
    source_database_name = "FooDB"
    target_database_name = "SomeAzureSqlDB"
    source_tables        = ["dbo.SomeTable"]
    target_tables        = ["dbo.SomeTable"]
  }
  source_connection_info {
    server_address           = "1.2.3.4"
    server_port              = 1433
    user_name                = "SA"
    password                 = "secret"
    encrypt_connection       = true
    trust_server_certificate = true
  }
  target_connection_info {
    server_address           = "some-sql-server.database.windows.net"
    server_port              = 1433
    user_name                = "example-root"
    password                 = "secret"
    encrypt_connection       = true
    trust_server_certificate = true
  }
}
@magodo magodo changed the title Support for [data migration service] Support for data migration service Dec 26, 2019
katbyte added a commit that referenced this issue Mar 4, 2020
Add new resource: data migration service.

This is the first resource under DataMigration resource provider.

There are more resources to come (which are not included in this PR):

data migration project
data migration task
I will implement those two resources after this PR is merged since they depends on data migration service.

Check feature request #5257 for more details.
katbyte added a commit that referenced this issue Mar 5, 2020
Implement azurerm_database_migration_project.

See #5257 for more details.
@tombuildsstuff
Copy link
Member

Fixed via #5993 and #5258

@github-actions
Copy link

github-actions bot commented Sep 9, 2021

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants