hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.6k stars 4.64k forks source link

Support for Azure Migrate Projects. #7320

Open jameswestall opened 4 years ago

jameswestall commented 4 years ago

Community Note

Description

For organisations looking at implementing the Azure Cloud Adoption framework, there is an Azure blueprint that deploys a base set of resources. This includes an Azure Migrate project which can be used to asses & move virtual machines & databases to Azure. Unfortunately there is no resource for this within the AzureRM terraform provider.

New or Affected Resource(s)

Potential Terraform Configuration

resource "azurerm_migrate_project" "example" {
  name     = var.projectName
  location = var.deployRegion
  resource_group_name = var.resourceGroup
}

resource "azurerm_migrate_solution" "exampleSolution" {
  project_name     = azurerm_migrate_project.example.name
  location = var.deployRegion
  resource_group_name = var.resourceGroup
  solution_details {
    tool = "ServerAssessment" //Can also be DMA
    purpose = "Assessment" 
    goal = "Servers"
  }
}

References

Azure CAF reference: https://docs.microsoft.com/en-us/azure/governance/blueprints/samples/caf-migrate-landing-zone/ Migrate Resource: https://docs.microsoft.com/en-us/azure/templates/microsoft.migrate/assessmentprojects API References: https://docs.microsoft.com/en-us/rest/api/migrate/projects/migrateprojects https://docs.microsoft.com/en-us/rest/api/migrate/projects/solutions Fork where I will attempt to work on this: https://github.com/JamesAuchters/terraform-provider-azurerm

ARM Template for these resources: ARM-Azure-Migrate.txt

Satak commented 3 years ago

Any news about this resource? Are there any blockers?

jameswestall commented 3 years ago

Hey @Satak - I attempted to write support for this here, however didn't get past building automated tests for it.

https://github.com/jameswestall/terraform-provider-azurerm

The positive news is that this does appear to be supported by the Golang SDK's, it just needs someone with a bit more golang experience to implement. (This has been my only foray into Go)

matthieupetite commented 3 years ago

Hello, I am also interessed in that enhancement, did you already commited anythind there https://github.com/jameswestall/terraform-provider-azurerm

rajagopalanrg commented 2 years ago

I am also interested to implement it