1. Packages
  2. Azure Classic
  3. API Docs
  4. storage
  5. MoverProject

We recommend using Azure Native.

Azure Classic v6.2.0 published on Friday, Sep 27, 2024 by Pulumi

azure.storage.MoverProject

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v6.2.0 published on Friday, Sep 27, 2024 by Pulumi

    Manages a Storage Mover Project.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = new azure.core.ResourceGroup("example", {
        name: "example-resources",
        location: "West Europe",
    });
    const exampleMover = new azure.storage.Mover("example", {
        name: "example-ssm",
        resourceGroupName: example.name,
        location: example.location,
    });
    const exampleMoverProject = new azure.storage.MoverProject("example", {
        name: "example-sp",
        storageMoverId: exampleMover.id,
        description: "Example Project Description",
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.core.ResourceGroup("example",
        name="example-resources",
        location="West Europe")
    example_mover = azure.storage.Mover("example",
        name="example-ssm",
        resource_group_name=example.name,
        location=example.location)
    example_mover_project = azure.storage.MoverProject("example",
        name="example-sp",
        storage_mover_id=example_mover.id,
        description="Example Project Description")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
    			Name:     pulumi.String("example-resources"),
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleMover, err := storage.NewMover(ctx, "example", &storage.MoverArgs{
    			Name:              pulumi.String("example-ssm"),
    			ResourceGroupName: example.Name,
    			Location:          example.Location,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = storage.NewMoverProject(ctx, "example", &storage.MoverProjectArgs{
    			Name:           pulumi.String("example-sp"),
    			StorageMoverId: exampleMover.ID(),
    			Description:    pulumi.String("Example Project Description"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Azure.Core.ResourceGroup("example", new()
        {
            Name = "example-resources",
            Location = "West Europe",
        });
    
        var exampleMover = new Azure.Storage.Mover("example", new()
        {
            Name = "example-ssm",
            ResourceGroupName = example.Name,
            Location = example.Location,
        });
    
        var exampleMoverProject = new Azure.Storage.MoverProject("example", new()
        {
            Name = "example-sp",
            StorageMoverId = exampleMover.Id,
            Description = "Example Project Description",
        });
    
    });
    
    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.storage.Mover;
    import com.pulumi.azure.storage.MoverArgs;
    import com.pulumi.azure.storage.MoverProject;
    import com.pulumi.azure.storage.MoverProjectArgs;
    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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
                .name("example-resources")
                .location("West Europe")
                .build());
    
            var exampleMover = new Mover("exampleMover", MoverArgs.builder()
                .name("example-ssm")
                .resourceGroupName(example.name())
                .location(example.location())
                .build());
    
            var exampleMoverProject = new MoverProject("exampleMoverProject", MoverProjectArgs.builder()
                .name("example-sp")
                .storageMoverId(exampleMover.id())
                .description("Example Project Description")
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: example-resources
          location: West Europe
      exampleMover:
        type: azure:storage:Mover
        name: example
        properties:
          name: example-ssm
          resourceGroupName: ${example.name}
          location: ${example.location}
      exampleMoverProject:
        type: azure:storage:MoverProject
        name: example
        properties:
          name: example-sp
          storageMoverId: ${exampleMover.id}
          description: Example Project Description
    

    Create MoverProject Resource

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

    Constructor syntax

    new MoverProject(name: string, args: MoverProjectArgs, opts?: CustomResourceOptions);
    @overload
    def MoverProject(resource_name: str,
                     args: MoverProjectArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def MoverProject(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     storage_mover_id: Optional[str] = None,
                     description: Optional[str] = None,
                     name: Optional[str] = None)
    func NewMoverProject(ctx *Context, name string, args MoverProjectArgs, opts ...ResourceOption) (*MoverProject, error)
    public MoverProject(string name, MoverProjectArgs args, CustomResourceOptions? opts = null)
    public MoverProject(String name, MoverProjectArgs args)
    public MoverProject(String name, MoverProjectArgs args, CustomResourceOptions options)
    
    type: azure:storage:MoverProject
    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 MoverProjectArgs
    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 MoverProjectArgs
    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 MoverProjectArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MoverProjectArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MoverProjectArgs
    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 moverProjectResource = new Azure.Storage.MoverProject("moverProjectResource", new()
    {
        StorageMoverId = "string",
        Description = "string",
        Name = "string",
    });
    
    example, err := storage.NewMoverProject(ctx, "moverProjectResource", &storage.MoverProjectArgs{
    	StorageMoverId: pulumi.String("string"),
    	Description:    pulumi.String("string"),
    	Name:           pulumi.String("string"),
    })
    
    var moverProjectResource = new MoverProject("moverProjectResource", MoverProjectArgs.builder()
        .storageMoverId("string")
        .description("string")
        .name("string")
        .build());
    
    mover_project_resource = azure.storage.MoverProject("moverProjectResource",
        storage_mover_id="string",
        description="string",
        name="string")
    
    const moverProjectResource = new azure.storage.MoverProject("moverProjectResource", {
        storageMoverId: "string",
        description: "string",
        name: "string",
    });
    
    type: azure:storage:MoverProject
    properties:
        description: string
        name: string
        storageMoverId: string
    

    MoverProject 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 MoverProject resource accepts the following input properties:

    StorageMoverId string
    Specifies the ID of the storage mover for this Storage Mover Project. Changing this forces a new resource to be created.
    Description string
    Specifies a description for this Storage Mover Project.
    Name string
    Specifies the name which should be used for this Storage Mover Project. Changing this forces a new resource to be created.
    StorageMoverId string
    Specifies the ID of the storage mover for this Storage Mover Project. Changing this forces a new resource to be created.
    Description string
    Specifies a description for this Storage Mover Project.
    Name string
    Specifies the name which should be used for this Storage Mover Project. Changing this forces a new resource to be created.
    storageMoverId String
    Specifies the ID of the storage mover for this Storage Mover Project. Changing this forces a new resource to be created.
    description String
    Specifies a description for this Storage Mover Project.
    name String
    Specifies the name which should be used for this Storage Mover Project. Changing this forces a new resource to be created.
    storageMoverId string
    Specifies the ID of the storage mover for this Storage Mover Project. Changing this forces a new resource to be created.
    description string
    Specifies a description for this Storage Mover Project.
    name string
    Specifies the name which should be used for this Storage Mover Project. Changing this forces a new resource to be created.
    storage_mover_id str
    Specifies the ID of the storage mover for this Storage Mover Project. Changing this forces a new resource to be created.
    description str
    Specifies a description for this Storage Mover Project.
    name str
    Specifies the name which should be used for this Storage Mover Project. Changing this forces a new resource to be created.
    storageMoverId String
    Specifies the ID of the storage mover for this Storage Mover Project. Changing this forces a new resource to be created.
    description String
    Specifies a description for this Storage Mover Project.
    name String
    Specifies the name which should be used for this Storage Mover Project. Changing this forces a new resource to be created.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing MoverProject Resource

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

    public static get(name: string, id: Input<ID>, state?: MoverProjectState, opts?: CustomResourceOptions): MoverProject
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            storage_mover_id: Optional[str] = None) -> MoverProject
    func GetMoverProject(ctx *Context, name string, id IDInput, state *MoverProjectState, opts ...ResourceOption) (*MoverProject, error)
    public static MoverProject Get(string name, Input<string> id, MoverProjectState? state, CustomResourceOptions? opts = null)
    public static MoverProject get(String name, Output<String> id, MoverProjectState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Description string
    Specifies a description for this Storage Mover Project.
    Name string
    Specifies the name which should be used for this Storage Mover Project. Changing this forces a new resource to be created.
    StorageMoverId string
    Specifies the ID of the storage mover for this Storage Mover Project. Changing this forces a new resource to be created.
    Description string
    Specifies a description for this Storage Mover Project.
    Name string
    Specifies the name which should be used for this Storage Mover Project. Changing this forces a new resource to be created.
    StorageMoverId string
    Specifies the ID of the storage mover for this Storage Mover Project. Changing this forces a new resource to be created.
    description String
    Specifies a description for this Storage Mover Project.
    name String
    Specifies the name which should be used for this Storage Mover Project. Changing this forces a new resource to be created.
    storageMoverId String
    Specifies the ID of the storage mover for this Storage Mover Project. Changing this forces a new resource to be created.
    description string
    Specifies a description for this Storage Mover Project.
    name string
    Specifies the name which should be used for this Storage Mover Project. Changing this forces a new resource to be created.
    storageMoverId string
    Specifies the ID of the storage mover for this Storage Mover Project. Changing this forces a new resource to be created.
    description str
    Specifies a description for this Storage Mover Project.
    name str
    Specifies the name which should be used for this Storage Mover Project. Changing this forces a new resource to be created.
    storage_mover_id str
    Specifies the ID of the storage mover for this Storage Mover Project. Changing this forces a new resource to be created.
    description String
    Specifies a description for this Storage Mover Project.
    name String
    Specifies the name which should be used for this Storage Mover Project. Changing this forces a new resource to be created.
    storageMoverId String
    Specifies the ID of the storage mover for this Storage Mover Project. Changing this forces a new resource to be created.

    Import

    Storage Mover Project can be imported using the resource id, e.g.

    $ pulumi import azure:storage/moverProject:MoverProject example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.StorageMover/storageMovers/storageMover1/projects/project1
    

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

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure Classic v6.2.0 published on Friday, Sep 27, 2024 by Pulumi