1. Packages
  2. Azure Native
  3. API Docs
  4. migrate
  5. MoveCollection
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.66.0 published on Wednesday, Oct 9, 2024 by Pulumi

azure-native.migrate.MoveCollection

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.66.0 published on Wednesday, Oct 9, 2024 by Pulumi

    Define the move collection. Azure REST API version: 2022-08-01. Prior API version in Azure Native 1.x: 2021-01-01.

    Other available API versions: 2023-08-01.

    Example Usage

    MoveCollections_Create

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var moveCollection = new AzureNative.Migrate.MoveCollection("moveCollection", new()
        {
            Identity = new AzureNative.Migrate.Inputs.IdentityArgs
            {
                Type = AzureNative.Migrate.ResourceIdentityType.SystemAssigned,
            },
            Location = "eastus2",
            MoveCollectionName = "movecollection1",
            Properties = new AzureNative.Migrate.Inputs.MoveCollectionPropertiesArgs
            {
                SourceRegion = "eastus",
                TargetRegion = "westus",
            },
            ResourceGroupName = "rg1",
        });
    
    });
    
    package main
    
    import (
    	migrate "github.com/pulumi/pulumi-azure-native-sdk/migrate/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := migrate.NewMoveCollection(ctx, "moveCollection", &migrate.MoveCollectionArgs{
    			Identity: &migrate.IdentityArgs{
    				Type: pulumi.String(migrate.ResourceIdentityTypeSystemAssigned),
    			},
    			Location:           pulumi.String("eastus2"),
    			MoveCollectionName: pulumi.String("movecollection1"),
    			Properties: &migrate.MoveCollectionPropertiesArgs{
    				SourceRegion: pulumi.String("eastus"),
    				TargetRegion: pulumi.String("westus"),
    			},
    			ResourceGroupName: pulumi.String("rg1"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.migrate.MoveCollection;
    import com.pulumi.azurenative.migrate.MoveCollectionArgs;
    import com.pulumi.azurenative.migrate.inputs.IdentityArgs;
    import com.pulumi.azurenative.migrate.inputs.MoveCollectionPropertiesArgs;
    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 moveCollection = new MoveCollection("moveCollection", MoveCollectionArgs.builder()
                .identity(IdentityArgs.builder()
                    .type("SystemAssigned")
                    .build())
                .location("eastus2")
                .moveCollectionName("movecollection1")
                .properties(MoveCollectionPropertiesArgs.builder()
                    .sourceRegion("eastus")
                    .targetRegion("westus")
                    .build())
                .resourceGroupName("rg1")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    move_collection = azure_native.migrate.MoveCollection("moveCollection",
        identity={
            "type": azure_native.migrate.ResourceIdentityType.SYSTEM_ASSIGNED,
        },
        location="eastus2",
        move_collection_name="movecollection1",
        properties={
            "source_region": "eastus",
            "target_region": "westus",
        },
        resource_group_name="rg1")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const moveCollection = new azure_native.migrate.MoveCollection("moveCollection", {
        identity: {
            type: azure_native.migrate.ResourceIdentityType.SystemAssigned,
        },
        location: "eastus2",
        moveCollectionName: "movecollection1",
        properties: {
            sourceRegion: "eastus",
            targetRegion: "westus",
        },
        resourceGroupName: "rg1",
    });
    
    resources:
      moveCollection:
        type: azure-native:migrate:MoveCollection
        properties:
          identity:
            type: SystemAssigned
          location: eastus2
          moveCollectionName: movecollection1
          properties:
            sourceRegion: eastus
            targetRegion: westus
          resourceGroupName: rg1
    

    Create MoveCollection Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new MoveCollection(name: string, args: MoveCollectionArgs, opts?: CustomResourceOptions);
    @overload
    def MoveCollection(resource_name: str,
                       args: MoveCollectionArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def MoveCollection(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       resource_group_name: Optional[str] = None,
                       identity: Optional[IdentityArgs] = None,
                       location: Optional[str] = None,
                       move_collection_name: Optional[str] = None,
                       properties: Optional[MoveCollectionPropertiesArgs] = None,
                       tags: Optional[Mapping[str, str]] = None)
    func NewMoveCollection(ctx *Context, name string, args MoveCollectionArgs, opts ...ResourceOption) (*MoveCollection, error)
    public MoveCollection(string name, MoveCollectionArgs args, CustomResourceOptions? opts = null)
    public MoveCollection(String name, MoveCollectionArgs args)
    public MoveCollection(String name, MoveCollectionArgs args, CustomResourceOptions options)
    
    type: azure-native:migrate:MoveCollection
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args MoveCollectionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args MoveCollectionArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args MoveCollectionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MoveCollectionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MoveCollectionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var moveCollectionResource = new AzureNative.Migrate.MoveCollection("moveCollectionResource", new()
    {
        ResourceGroupName = "string",
        Identity = new AzureNative.Migrate.Inputs.IdentityArgs
        {
            PrincipalId = "string",
            TenantId = "string",
            Type = "string",
        },
        Location = "string",
        MoveCollectionName = "string",
        Properties = new AzureNative.Migrate.Inputs.MoveCollectionPropertiesArgs
        {
            SourceRegion = "string",
            TargetRegion = "string",
            Version = "string",
        },
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := migrate.NewMoveCollection(ctx, "moveCollectionResource", &migrate.MoveCollectionArgs{
    	ResourceGroupName: pulumi.String("string"),
    	Identity: &migrate.IdentityArgs{
    		PrincipalId: pulumi.String("string"),
    		TenantId:    pulumi.String("string"),
    		Type:        pulumi.String("string"),
    	},
    	Location:           pulumi.String("string"),
    	MoveCollectionName: pulumi.String("string"),
    	Properties: &migrate.MoveCollectionPropertiesArgs{
    		SourceRegion: pulumi.String("string"),
    		TargetRegion: pulumi.String("string"),
    		Version:      pulumi.String("string"),
    	},
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var moveCollectionResource = new MoveCollection("moveCollectionResource", MoveCollectionArgs.builder()
        .resourceGroupName("string")
        .identity(IdentityArgs.builder()
            .principalId("string")
            .tenantId("string")
            .type("string")
            .build())
        .location("string")
        .moveCollectionName("string")
        .properties(MoveCollectionPropertiesArgs.builder()
            .sourceRegion("string")
            .targetRegion("string")
            .version("string")
            .build())
        .tags(Map.of("string", "string"))
        .build());
    
    move_collection_resource = azure_native.migrate.MoveCollection("moveCollectionResource",
        resource_group_name="string",
        identity={
            "principalId": "string",
            "tenantId": "string",
            "type": "string",
        },
        location="string",
        move_collection_name="string",
        properties={
            "sourceRegion": "string",
            "targetRegion": "string",
            "version": "string",
        },
        tags={
            "string": "string",
        })
    
    const moveCollectionResource = new azure_native.migrate.MoveCollection("moveCollectionResource", {
        resourceGroupName: "string",
        identity: {
            principalId: "string",
            tenantId: "string",
            type: "string",
        },
        location: "string",
        moveCollectionName: "string",
        properties: {
            sourceRegion: "string",
            targetRegion: "string",
            version: "string",
        },
        tags: {
            string: "string",
        },
    });
    
    type: azure-native:migrate:MoveCollection
    properties:
        identity:
            principalId: string
            tenantId: string
            type: string
        location: string
        moveCollectionName: string
        properties:
            sourceRegion: string
            targetRegion: string
            version: string
        resourceGroupName: string
        tags:
            string: string
    

    MoveCollection Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The MoveCollection resource accepts the following input properties:

    ResourceGroupName string
    The Resource Group Name.
    Identity Pulumi.AzureNative.Migrate.Inputs.Identity
    Defines the MSI properties of the Move Collection.
    Location string
    The geo-location where the resource lives.
    MoveCollectionName string
    The Move Collection Name.
    Properties Pulumi.AzureNative.Migrate.Inputs.MoveCollectionProperties
    Defines the move collection properties.
    Tags Dictionary<string, string>
    Resource tags.
    ResourceGroupName string
    The Resource Group Name.
    Identity IdentityArgs
    Defines the MSI properties of the Move Collection.
    Location string
    The geo-location where the resource lives.
    MoveCollectionName string
    The Move Collection Name.
    Properties MoveCollectionPropertiesArgs
    Defines the move collection properties.
    Tags map[string]string
    Resource tags.
    resourceGroupName String
    The Resource Group Name.
    identity Identity
    Defines the MSI properties of the Move Collection.
    location String
    The geo-location where the resource lives.
    moveCollectionName String
    The Move Collection Name.
    properties MoveCollectionProperties
    Defines the move collection properties.
    tags Map<String,String>
    Resource tags.
    resourceGroupName string
    The Resource Group Name.
    identity Identity
    Defines the MSI properties of the Move Collection.
    location string
    The geo-location where the resource lives.
    moveCollectionName string
    The Move Collection Name.
    properties MoveCollectionProperties
    Defines the move collection properties.
    tags {[key: string]: string}
    Resource tags.
    resource_group_name str
    The Resource Group Name.
    identity IdentityArgs
    Defines the MSI properties of the Move Collection.
    location str
    The geo-location where the resource lives.
    move_collection_name str
    The Move Collection Name.
    properties MoveCollectionPropertiesArgs
    Defines the move collection properties.
    tags Mapping[str, str]
    Resource tags.
    resourceGroupName String
    The Resource Group Name.
    identity Property Map
    Defines the MSI properties of the Move Collection.
    location String
    The geo-location where the resource lives.
    moveCollectionName String
    The Move Collection Name.
    properties Property Map
    Defines the move collection properties.
    tags Map<String>
    Resource tags.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the MoveCollection resource produces the following output properties:

    Etag string
    The etag of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    SystemData Pulumi.AzureNative.Migrate.Outputs.SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    Type string
    The type of the resource.
    Etag string
    The etag of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    SystemData SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    Type string
    The type of the resource.
    etag String
    The etag of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    systemData SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    type String
    The type of the resource.
    etag string
    The etag of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    systemData SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    type string
    The type of the resource.
    etag str
    The etag of the resource.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource
    system_data SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    type str
    The type of the resource.
    etag String
    The etag of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    systemData Property Map
    Metadata pertaining to creation and last modification of the resource.
    type String
    The type of the resource.

    Supporting Types

    Identity, IdentityArgs

    PrincipalId string
    Gets or sets the principal id.
    TenantId string
    Gets or sets the tenant id.
    Type string | Pulumi.AzureNative.Migrate.ResourceIdentityType
    The type of identity used for the resource mover service.
    PrincipalId string
    Gets or sets the principal id.
    TenantId string
    Gets or sets the tenant id.
    Type string | ResourceIdentityType
    The type of identity used for the resource mover service.
    principalId String
    Gets or sets the principal id.
    tenantId String
    Gets or sets the tenant id.
    type String | ResourceIdentityType
    The type of identity used for the resource mover service.
    principalId string
    Gets or sets the principal id.
    tenantId string
    Gets or sets the tenant id.
    type string | ResourceIdentityType
    The type of identity used for the resource mover service.
    principal_id str
    Gets or sets the principal id.
    tenant_id str
    Gets or sets the tenant id.
    type str | ResourceIdentityType
    The type of identity used for the resource mover service.
    principalId String
    Gets or sets the principal id.
    tenantId String
    Gets or sets the tenant id.
    type String | "None" | "SystemAssigned" | "UserAssigned"
    The type of identity used for the resource mover service.

    IdentityResponse, IdentityResponseArgs

    PrincipalId string
    Gets or sets the principal id.
    TenantId string
    Gets or sets the tenant id.
    Type string
    The type of identity used for the resource mover service.
    PrincipalId string
    Gets or sets the principal id.
    TenantId string
    Gets or sets the tenant id.
    Type string
    The type of identity used for the resource mover service.
    principalId String
    Gets or sets the principal id.
    tenantId String
    Gets or sets the tenant id.
    type String
    The type of identity used for the resource mover service.
    principalId string
    Gets or sets the principal id.
    tenantId string
    Gets or sets the tenant id.
    type string
    The type of identity used for the resource mover service.
    principal_id str
    Gets or sets the principal id.
    tenant_id str
    Gets or sets the tenant id.
    type str
    The type of identity used for the resource mover service.
    principalId String
    Gets or sets the principal id.
    tenantId String
    Gets or sets the tenant id.
    type String
    The type of identity used for the resource mover service.

    MoveCollectionProperties, MoveCollectionPropertiesArgs

    SourceRegion string
    Gets or sets the source region.
    TargetRegion string
    Gets or sets the target region.
    Version string
    Gets or sets the version of move collection.
    SourceRegion string
    Gets or sets the source region.
    TargetRegion string
    Gets or sets the target region.
    Version string
    Gets or sets the version of move collection.
    sourceRegion String
    Gets or sets the source region.
    targetRegion String
    Gets or sets the target region.
    version String
    Gets or sets the version of move collection.
    sourceRegion string
    Gets or sets the source region.
    targetRegion string
    Gets or sets the target region.
    version string
    Gets or sets the version of move collection.
    source_region str
    Gets or sets the source region.
    target_region str
    Gets or sets the target region.
    version str
    Gets or sets the version of move collection.
    sourceRegion String
    Gets or sets the source region.
    targetRegion String
    Gets or sets the target region.
    version String
    Gets or sets the version of move collection.

    MoveCollectionPropertiesResponse, MoveCollectionPropertiesResponseArgs

    Errors Pulumi.AzureNative.Migrate.Inputs.MoveCollectionPropertiesResponseErrors
    Defines the move collection errors.
    ProvisioningState string
    Defines the provisioning states.
    SourceRegion string
    Gets or sets the source region.
    TargetRegion string
    Gets or sets the target region.
    Version string
    Gets or sets the version of move collection.
    Errors MoveCollectionPropertiesResponseErrors
    Defines the move collection errors.
    ProvisioningState string
    Defines the provisioning states.
    SourceRegion string
    Gets or sets the source region.
    TargetRegion string
    Gets or sets the target region.
    Version string
    Gets or sets the version of move collection.
    errors MoveCollectionPropertiesResponseErrors
    Defines the move collection errors.
    provisioningState String
    Defines the provisioning states.
    sourceRegion String
    Gets or sets the source region.
    targetRegion String
    Gets or sets the target region.
    version String
    Gets or sets the version of move collection.
    errors MoveCollectionPropertiesResponseErrors
    Defines the move collection errors.
    provisioningState string
    Defines the provisioning states.
    sourceRegion string
    Gets or sets the source region.
    targetRegion string
    Gets or sets the target region.
    version string
    Gets or sets the version of move collection.
    errors MoveCollectionPropertiesResponseErrors
    Defines the move collection errors.
    provisioning_state str
    Defines the provisioning states.
    source_region str
    Gets or sets the source region.
    target_region str
    Gets or sets the target region.
    version str
    Gets or sets the version of move collection.
    errors Property Map
    Defines the move collection errors.
    provisioningState String
    Defines the provisioning states.
    sourceRegion String
    Gets or sets the source region.
    targetRegion String
    Gets or sets the target region.
    version String
    Gets or sets the version of move collection.

    MoveCollectionPropertiesResponseErrors, MoveCollectionPropertiesResponseErrorsArgs

    Properties MoveResourceErrorBodyResponse
    The move resource error body.
    properties MoveResourceErrorBodyResponse
    The move resource error body.
    properties MoveResourceErrorBodyResponse
    The move resource error body.
    properties MoveResourceErrorBodyResponse
    The move resource error body.
    properties Property Map
    The move resource error body.

    MoveResourceErrorBodyResponse, MoveResourceErrorBodyResponseArgs

    Code string
    An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
    Details List<Pulumi.AzureNative.Migrate.Inputs.MoveResourceErrorBodyResponse>
    A list of additional details about the error.
    Message string
    A message describing the error, intended to be suitable for display in a user interface.
    Target string
    The target of the particular error. For example, the name of the property in error.
    Code string
    An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
    Details []MoveResourceErrorBodyResponse
    A list of additional details about the error.
    Message string
    A message describing the error, intended to be suitable for display in a user interface.
    Target string
    The target of the particular error. For example, the name of the property in error.
    code String
    An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
    details List<MoveResourceErrorBodyResponse>
    A list of additional details about the error.
    message String
    A message describing the error, intended to be suitable for display in a user interface.
    target String
    The target of the particular error. For example, the name of the property in error.
    code string
    An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
    details MoveResourceErrorBodyResponse[]
    A list of additional details about the error.
    message string
    A message describing the error, intended to be suitable for display in a user interface.
    target string
    The target of the particular error. For example, the name of the property in error.
    code str
    An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
    details Sequence[MoveResourceErrorBodyResponse]
    A list of additional details about the error.
    message str
    A message describing the error, intended to be suitable for display in a user interface.
    target str
    The target of the particular error. For example, the name of the property in error.
    code String
    An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
    details List<Property Map>
    A list of additional details about the error.
    message String
    A message describing the error, intended to be suitable for display in a user interface.
    target String
    The target of the particular error. For example, the name of the property in error.

    ResourceIdentityType, ResourceIdentityTypeArgs

    None
    None
    SystemAssigned
    SystemAssigned
    UserAssigned
    UserAssigned
    ResourceIdentityTypeNone
    None
    ResourceIdentityTypeSystemAssigned
    SystemAssigned
    ResourceIdentityTypeUserAssigned
    UserAssigned
    None
    None
    SystemAssigned
    SystemAssigned
    UserAssigned
    UserAssigned
    None
    None
    SystemAssigned
    SystemAssigned
    UserAssigned
    UserAssigned
    NONE
    None
    SYSTEM_ASSIGNED
    SystemAssigned
    USER_ASSIGNED
    UserAssigned
    "None"
    None
    "SystemAssigned"
    SystemAssigned
    "UserAssigned"
    UserAssigned

    SystemDataResponse, SystemDataResponseArgs

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:migrate:MoveCollection movecollection1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName} 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.66.0 published on Wednesday, Oct 9, 2024 by Pulumi