Move Collection
Define the move collection. Uses Azure REST API version 2023-08-01. In version 2.x of the Azure Native provider, it used API version 2022-08-01. Other available API versions: 2019-10-01-preview, 2021-01-01, 2021-08-01, 2022-08-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native migrate [ApiVersion]
. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
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
{
MoveType = AzureNative.Migrate.MoveType.RegionToRegion,
SourceRegion = "eastus",
TargetRegion = "westus",
},
ResourceGroupName = "rg1",
});
});
Content copied to clipboard
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{
MoveType: pulumi.String(migrate.MoveTypeRegionToRegion),
SourceRegion: pulumi.String("eastus"),
TargetRegion: pulumi.String("westus"),
},
ResourceGroupName: pulumi.String("rg1"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
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()
.moveType("RegionToRegion")
.sourceRegion("eastus")
.targetRegion("westus")
.build())
.resourceGroupName("rg1")
.build());
}
}
Content copied to clipboard
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}
Content copied to clipboard
Properties
Link copied to clipboard
The Azure API version of the resource.
Link copied to clipboard
Defines the MSI properties of the Move Collection.
Link copied to clipboard
Defines the move collection properties.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Metadata pertaining to creation and last modification of the resource.