Project

class Project : KotlinCustomResource

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 this provider.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.network.VirtualNetwork;
import com.pulumi.azure.network.VirtualNetworkArgs;
import com.pulumi.azure.network.Subnet;
import com.pulumi.azure.network.SubnetArgs;
import com.pulumi.azure.databasemigration.Service;
import com.pulumi.azure.databasemigration.ServiceArgs;
import com.pulumi.azure.databasemigration.Project;
import com.pulumi.azure.databasemigration.ProjectArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()
.addressSpaces("10.0.0.0/16")
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.build());
var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.virtualNetworkName(exampleVirtualNetwork.name())
.addressPrefixes("10.0.1.0/24")
.build());
var exampleService = new Service("exampleService", ServiceArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.subnetId(exampleSubnet.id())
.skuName("Standard_1vCores")
.build());
var exampleProject = new Project("exampleProject", ProjectArgs.builder()
.serviceName(exampleService.name())
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.sourcePlatform("SQL")
.targetPlatform("SQLDB")
.build());
}
}

Import

Database Migration Projects can be imported using the resource id, e.g.

$ pulumi import azure:databasemigration/project:Project example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.DataMigration/services/example-dms/projects/project1

Properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val location: Output<String>

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

Link copied to clipboard
val name: Output<String>

Specify the name of the database migration project. Changing this forces a new resource to be created.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Name of the resource group in which to create the database migration project. Changing this forces a new resource to be created.

Link copied to clipboard
val serviceName: Output<String>

Name of the database migration service where resource belongs to. Changing this forces a new resource to be created.

Link copied to clipboard
val sourcePlatform: Output<String>

The platform type of the migration source. Currently only support: SQL(on-premises SQL Server). Changing this forces a new resource to be created.

Link copied to clipboard
val tags: Output<Map<String, String>>?

A mapping of tags to assigned to the resource.

Link copied to clipboard
val targetPlatform: Output<String>

The platform type of the migration target. Currently only support: SQLDB(Azure SQL Database). Changing this forces a new resource to be created.

Link copied to clipboard
val urn: Output<String>