This page documents the language specification for the azure package. If you're looking for help working with the inputs, outputs, or functions of azure resources in a Pulumi program, please see the resource documentation for examples and API reference.

databasemigration

This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-azure repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-azurerm repo.

class pulumi_azure.databasemigration.AwaitableGetProjectResult(id=None, location=None, name=None, resource_group_name=None, service_name=None, source_platform=None, tags=None, target_platform=None)
class pulumi_azure.databasemigration.AwaitableGetServiceResult(id=None, location=None, name=None, resource_group_name=None, sku_name=None, subnet_id=None, tags=None)
class pulumi_azure.databasemigration.GetProjectResult(id=None, location=None, name=None, resource_group_name=None, service_name=None, source_platform=None, tags=None, target_platform=None)

A collection of values returned by getProject.

id = None

The provider-assigned unique ID for this managed resource.

location = None

Azure location where the resource exists.

source_platform = None

The platform type of the migration source.

tags = None

A mapping of tags to assigned to the resource.

target_platform = None

The platform type of the migration target.

class pulumi_azure.databasemigration.GetServiceResult(id=None, location=None, name=None, resource_group_name=None, sku_name=None, subnet_id=None, tags=None)

A collection of values returned by getService.

id = None

The provider-assigned unique ID for this managed resource.

location = None

Azure location where the resource exists.

sku_name = None

The sku name of database migration service.

subnet_id = None

The ID of the virtual subnet resource to which the database migration service exists.

tags = None

A mapping of tags to assigned to the resource.

class pulumi_azure.databasemigration.Project(resource_name, opts=None, location=None, name=None, resource_group_name=None, service_name=None, source_platform=None, tags=None, target_platform=None, __props__=None, __name__=None, __opts__=None)

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.

import pulumi
import pulumi_azure as azure

example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_virtual_network = azure.network.VirtualNetwork("exampleVirtualNetwork",
    address_spaces=["10.0.0.0/16"],
    location=example_resource_group.location,
    resource_group_name=example_resource_group.name)
example_subnet = azure.network.Subnet("exampleSubnet",
    resource_group_name=example_resource_group.name,
    virtual_network_name=example_virtual_network.name,
    address_prefix="10.0.1.0/24")
example_service = azure.databasemigration.Service("exampleService",
    location=example_resource_group.location,
    resource_group_name=example_resource_group.name,
    virtual_subnet_id=example_subnet.id,
    sku_name="Standard_1vCores")
example_project = azure.databasemigration.Project("exampleProject",
    service_name=example_service.name,
    resource_group_name=example_resource_group.name,
    location=zurerm_resource_group["example"]["location"],
    source_platform="SQL",
    target_platform="SQLDB")
Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • location (pulumi.Input[str]) – Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

  • name (pulumi.Input[str]) – Specify the name of the database migration project. Changing this forces a new resource to be created.

  • resource_group_name (pulumi.Input[str]) – Name of the resource group in which to create the database migration project. Changing this forces a new resource to be created.

  • service_name (pulumi.Input[str]) – Name of the database migration service where resource belongs to. Changing this forces a new resource to be created.

  • source_platform (pulumi.Input[str]) – The platform type of the migration source. Currently only support: SQL(on-premises SQL Server). Changing this forces a new resource to be created.

  • tags (pulumi.Input[dict]) – A mapping of tags to assigned to the resource.

  • target_platform (pulumi.Input[str]) – The platform type of the migration target. Currently only support: SQLDB(Azure SQL Database). Changing this forces a new resource to be created.

location: pulumi.Output[str] = None

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

name: pulumi.Output[str] = None

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

resource_group_name: pulumi.Output[str] = None

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

service_name: pulumi.Output[str] = None

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

source_platform: pulumi.Output[str] = None

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

tags: pulumi.Output[dict] = None

A mapping of tags to assigned to the resource.

target_platform: pulumi.Output[str] = None

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

static get(resource_name, id, opts=None, location=None, name=None, resource_group_name=None, service_name=None, source_platform=None, tags=None, target_platform=None)

Get an existing Project resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • location (pulumi.Input[str]) – Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

  • name (pulumi.Input[str]) – Specify the name of the database migration project. Changing this forces a new resource to be created.

  • resource_group_name (pulumi.Input[str]) – Name of the resource group in which to create the database migration project. Changing this forces a new resource to be created.

  • service_name (pulumi.Input[str]) – Name of the database migration service where resource belongs to. Changing this forces a new resource to be created.

  • source_platform (pulumi.Input[str]) – The platform type of the migration source. Currently only support: SQL(on-premises SQL Server). Changing this forces a new resource to be created.

  • tags (pulumi.Input[dict]) – A mapping of tags to assigned to the resource.

  • target_platform (pulumi.Input[str]) – The platform type of the migration target. Currently only support: SQLDB(Azure SQL Database). Changing this forces a new resource to be created.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_azure.databasemigration.Service(resource_name, opts=None, location=None, name=None, resource_group_name=None, sku_name=None, subnet_id=None, tags=None, __props__=None, __name__=None, __opts__=None)

Manages a Azure Database Migration Service.

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

import pulumi
import pulumi_azure as azure

example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_virtual_network = azure.network.VirtualNetwork("exampleVirtualNetwork",
    address_spaces=["10.0.0.0/16"],
    location=example_resource_group.location,
    resource_group_name=example_resource_group.name)
example_subnet = azure.network.Subnet("exampleSubnet",
    resource_group_name=example_resource_group.name,
    virtual_network_name=example_virtual_network.name,
    address_prefix="10.0.1.0/24")
example_service = azure.databasemigration.Service("exampleService",
    location=example_resource_group.location,
    resource_group_name=example_resource_group.name,
    subnet_id=example_subnet.id,
    sku_name="Standard_1vCores")
Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • location (pulumi.Input[str]) – Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

  • name (pulumi.Input[str]) – Specify the name of the database migration service. Changing this forces a new resource to be created.

  • resource_group_name (pulumi.Input[str]) – Name of the resource group in which to create the database migration service. Changing this forces a new resource to be created.

  • sku_name (pulumi.Input[str]) – The sku name of the database migration service. Possible values are Premium_4vCores, Standard_1vCores, Standard_2vCores and Standard_4vCores. Changing this forces a new resource to be created.

  • subnet_id (pulumi.Input[str]) – The ID of the virtual subnet resource to which the database migration service should be joined. Changing this forces a new resource to be created.

  • tags (pulumi.Input[dict]) – A mapping of tags to assigned to the resource.

location: pulumi.Output[str] = None

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

name: pulumi.Output[str] = None

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

resource_group_name: pulumi.Output[str] = None

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

sku_name: pulumi.Output[str] = None

The sku name of the database migration service. Possible values are Premium_4vCores, Standard_1vCores, Standard_2vCores and Standard_4vCores. Changing this forces a new resource to be created.

subnet_id: pulumi.Output[str] = None

The ID of the virtual subnet resource to which the database migration service should be joined. Changing this forces a new resource to be created.

tags: pulumi.Output[dict] = None

A mapping of tags to assigned to the resource.

static get(resource_name, id, opts=None, location=None, name=None, resource_group_name=None, sku_name=None, subnet_id=None, tags=None)

Get an existing Service resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • location (pulumi.Input[str]) – Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

  • name (pulumi.Input[str]) – Specify the name of the database migration service. Changing this forces a new resource to be created.

  • resource_group_name (pulumi.Input[str]) – Name of the resource group in which to create the database migration service. Changing this forces a new resource to be created.

  • sku_name (pulumi.Input[str]) – The sku name of the database migration service. Possible values are Premium_4vCores, Standard_1vCores, Standard_2vCores and Standard_4vCores. Changing this forces a new resource to be created.

  • subnet_id (pulumi.Input[str]) – The ID of the virtual subnet resource to which the database migration service should be joined. Changing this forces a new resource to be created.

  • tags (pulumi.Input[dict]) – A mapping of tags to assigned to the resource.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

pulumi_azure.databasemigration.get_project(name=None, resource_group_name=None, service_name=None, opts=None)

Use this data source to access information about an existing Database Migration Project.

import pulumi
import pulumi_azure as azure

example = azure.databasemigration.get_project(name="example-dbms-project",
    resource_group_name="example-rg",
    service_name="example-dbms")
pulumi.export("name", example.name)
Parameters
  • name (str) – Name of the database migration project.

  • resource_group_name (str) – Name of the resource group where resource belongs to.

  • service_name (str) – Name of the database migration service where resource belongs to.

pulumi_azure.databasemigration.get_service(name=None, resource_group_name=None, opts=None)

Use this data source to access information about an existing Database Migration Service.

import pulumi
import pulumi_azure as azure

example = azure.databasemigration.get_service(name="example-dms",
    resource_group_name="example-rg")
pulumi.export("azurermDmsId", example.id)
Parameters
  • name (str) – Specify the name of the database migration service.

  • resource_group_name (str) – Specifies the Name of the Resource Group within which the database migration service exists