azure-native.migrate.MoveCollection
Explore with Pulumi AI
Define the move collection. API Version: 2021-01-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 = "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"
"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("SystemAssigned"),
},
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 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(Map.of("type", "SystemAssigned"))
.location("eastus2")
.moveCollectionName("movecollection1")
.properties(Map.ofEntries(
Map.entry("sourceRegion", "eastus"),
Map.entry("targetRegion", "westus")
))
.resourceGroupName("rg1")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
move_collection = azure_native.migrate.MoveCollection("moveCollection",
identity=azure_native.migrate.IdentityArgs(
type="SystemAssigned",
),
location="eastus2",
move_collection_name="movecollection1",
properties=azure_native.migrate.MoveCollectionPropertiesArgs(
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: "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 =
{
{ "principalId", "string" },
{ "tenantId", "string" },
{ "type", "string" },
},
Location = "string",
MoveCollectionName = "string",
Properties =
{
{ "sourceRegion", "string" },
{ "targetRegion", "string" },
},
Tags =
{
{ "string", "string" },
},
});
example, err := migrate.NewMoveCollection(ctx, "moveCollectionResource", &migrate.MoveCollectionArgs{
ResourceGroupName: "string",
Identity: map[string]interface{}{
"principalId": "string",
"tenantId": "string",
"type": "string",
},
Location: "string",
MoveCollectionName: "string",
Properties: map[string]interface{}{
"sourceRegion": "string",
"targetRegion": "string",
},
Tags: map[string]interface{}{
"string": "string",
},
})
var moveCollectionResource = new MoveCollection("moveCollectionResource", MoveCollectionArgs.builder()
.resourceGroupName("string")
.identity(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.location("string")
.moveCollectionName("string")
.properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.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,
},
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",
},
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
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The MoveCollection resource accepts the following input properties:
- Resource
Group stringName - The Resource Group Name.
- Identity
Pulumi.
Azure Native. Migrate. Inputs. Identity - Defines the MSI properties of the Move Collection.
- Location string
- The geo-location where the resource lives.
- Move
Collection stringName - The Move Collection Name.
- Properties
Pulumi.
Azure Native. Migrate. Inputs. Move Collection Properties - Defines the move collection properties.
- Dictionary<string, string>
- Resource tags.
- Resource
Group stringName - The Resource Group Name.
- Identity
Identity
Args - Defines the MSI properties of the Move Collection.
- Location string
- The geo-location where the resource lives.
- Move
Collection stringName - The Move Collection Name.
- Properties
Move
Collection Properties Args - Defines the move collection properties.
- map[string]string
- Resource tags.
- resource
Group StringName - The Resource Group Name.
- identity Identity
- Defines the MSI properties of the Move Collection.
- location String
- The geo-location where the resource lives.
- move
Collection StringName - The Move Collection Name.
- properties
Move
Collection Properties - Defines the move collection properties.
- Map<String,String>
- Resource tags.
- resource
Group stringName - The Resource Group Name.
- identity Identity
- Defines the MSI properties of the Move Collection.
- location string
- The geo-location where the resource lives.
- move
Collection stringName - The Move Collection Name.
- properties
Move
Collection Properties - Defines the move collection properties.
- {[key: string]: string}
- Resource tags.
- resource_
group_ strname - The Resource Group Name.
- identity
Identity
Args - Defines the MSI properties of the Move Collection.
- location str
- The geo-location where the resource lives.
- move_
collection_ strname - The Move Collection Name.
- properties
Move
Collection Properties Args - Defines the move collection properties.
- Mapping[str, str]
- Resource tags.
- resource
Group StringName - The Resource Group Name.
- identity Property Map
- Defines the MSI properties of the Move Collection.
- location String
- The geo-location where the resource lives.
- move
Collection StringName - The Move Collection Name.
- properties Property Map
- Defines the move collection properties.
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the MoveCollection resource produces the following output properties:
Supporting Types
Identity, IdentityArgs
- Principal
Id string - Gets or sets the principal id.
- Tenant
Id string - Gets or sets the tenant id.
- Type
string | Pulumi.
Azure Native. Migrate. Resource Identity Type - The type of identity used for the resource mover service.
- Principal
Id string - Gets or sets the principal id.
- Tenant
Id string - Gets or sets the tenant id.
- Type
string | Resource
Identity Type - The type of identity used for the resource mover service.
- principal
Id String - Gets or sets the principal id.
- tenant
Id String - Gets or sets the tenant id.
- type
String | Resource
Identity Type - The type of identity used for the resource mover service.
- principal
Id string - Gets or sets the principal id.
- tenant
Id string - Gets or sets the tenant id.
- type
string | Resource
Identity Type - 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 | Resource
Identity Type - The type of identity used for the resource mover service.
- principal
Id String - Gets or sets the principal id.
- tenant
Id String - Gets or sets the tenant id.
- type
String | "None" | "System
Assigned" | "User Assigned" - The type of identity used for the resource mover service.
IdentityResponse, IdentityResponseArgs
- Principal
Id string - Gets or sets the principal id.
- Tenant
Id string - Gets or sets the tenant id.
- Type string
- The type of identity used for the resource mover service.
- Principal
Id string - Gets or sets the principal id.
- Tenant
Id string - Gets or sets the tenant id.
- Type string
- The type of identity used for the resource mover service.
- principal
Id String - Gets or sets the principal id.
- tenant
Id String - Gets or sets the tenant id.
- type String
- The type of identity used for the resource mover service.
- principal
Id string - Gets or sets the principal id.
- tenant
Id 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.
- principal
Id String - Gets or sets the principal id.
- tenant
Id String - Gets or sets the tenant id.
- type String
- The type of identity used for the resource mover service.
MoveCollectionProperties, MoveCollectionPropertiesArgs
- Source
Region string - Gets or sets the source region.
- Target
Region string - Gets or sets the target region.
- Source
Region string - Gets or sets the source region.
- Target
Region string - Gets or sets the target region.
- source
Region String - Gets or sets the source region.
- target
Region String - Gets or sets the target region.
- source
Region string - Gets or sets the source region.
- target
Region string - Gets or sets the target region.
- source_
region str - Gets or sets the source region.
- target_
region str - Gets or sets the target region.
- source
Region String - Gets or sets the source region.
- target
Region String - Gets or sets the target region.
MoveCollectionPropertiesResponse, MoveCollectionPropertiesResponseArgs
- Errors
Pulumi.
Azure Native. Migrate. Inputs. Move Collection Properties Response Errors - Defines the move collection errors.
- Provisioning
State string - Defines the provisioning states.
- Source
Region string - Gets or sets the source region.
- Target
Region string - Gets or sets the target region.
- Errors
Move
Collection Properties Response Errors - Defines the move collection errors.
- Provisioning
State string - Defines the provisioning states.
- Source
Region string - Gets or sets the source region.
- Target
Region string - Gets or sets the target region.
- errors
Move
Collection Properties Response Errors - Defines the move collection errors.
- provisioning
State String - Defines the provisioning states.
- source
Region String - Gets or sets the source region.
- target
Region String - Gets or sets the target region.
- errors
Move
Collection Properties Response Errors - Defines the move collection errors.
- provisioning
State string - Defines the provisioning states.
- source
Region string - Gets or sets the source region.
- target
Region string - Gets or sets the target region.
- errors
Move
Collection Properties Response Errors - 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.
- errors Property Map
- Defines the move collection errors.
- provisioning
State String - Defines the provisioning states.
- source
Region String - Gets or sets the source region.
- target
Region String - Gets or sets the target region.
MoveCollectionPropertiesResponseErrors, MoveCollectionPropertiesResponseErrorsArgs
- Properties
Pulumi.
Azure Native. Migrate. Inputs. Move Resource Error Body Response - The move resource error body.
- Properties
Move
Resource Error Body Response - The move resource error body.
- properties
Move
Resource Error Body Response - The move resource error body.
- properties
Move
Resource Error Body Response - The move resource error body.
- properties
Move
Resource Error Body Response - 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.
Azure Native. Migrate. Inputs. Move Resource Error Body Response> - 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
[]Move
Resource Error Body Response - 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<Move
Resource Error Body Response> - 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
Move
Resource Error Body Response[] - 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[Move
Resource Error Body Response] - 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
- System
Assigned - SystemAssigned
- User
Assigned - UserAssigned
- Resource
Identity Type None - None
- Resource
Identity Type System Assigned - SystemAssigned
- Resource
Identity Type User Assigned - UserAssigned
- None
- None
- System
Assigned - SystemAssigned
- User
Assigned - UserAssigned
- None
- None
- System
Assigned - SystemAssigned
- User
Assigned - UserAssigned
- NONE
- None
- SYSTEM_ASSIGNED
- SystemAssigned
- USER_ASSIGNED
- UserAssigned
- "None"
- None
- "System
Assigned" - SystemAssigned
- "User
Assigned" - UserAssigned
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:migrate:MoveCollection movecollection1 /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0