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

We recommend using Azure Native.

Azure Classic v5.70.0 published on Wednesday, Mar 27, 2024 by Pulumi

azure.storage.Mover

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.70.0 published on Wednesday, Mar 27, 2024 by Pulumi

    Manages a Storage Mover.

    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: "West Europe",
        description: "Example Storage Mover Description",
        tags: {
            key: "value",
        },
    });
    
    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="West Europe",
        description="Example Storage Mover Description",
        tags={
            "key": "value",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v5/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
    		}
    		_, err = storage.NewMover(ctx, "example", &storage.MoverArgs{
    			Name:              pulumi.String("example-ssm"),
    			ResourceGroupName: example.Name,
    			Location:          pulumi.String("West Europe"),
    			Description:       pulumi.String("Example Storage Mover Description"),
    			Tags: pulumi.StringMap{
    				"key": pulumi.String("value"),
    			},
    		})
    		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 = "West Europe",
            Description = "Example Storage Mover Description",
            Tags = 
            {
                { "key", "value" },
            },
        });
    
    });
    
    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 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("West Europe")
                .description("Example Storage Mover Description")
                .tags(Map.of("key", "value"))
                .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: West Europe
          description: Example Storage Mover Description
          tags:
            key: value
    

    Create Mover Resource

    new Mover(name: string, args: MoverArgs, opts?: CustomResourceOptions);
    @overload
    def Mover(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              description: Optional[str] = None,
              location: Optional[str] = None,
              name: Optional[str] = None,
              resource_group_name: Optional[str] = None,
              tags: Optional[Mapping[str, str]] = None)
    @overload
    def Mover(resource_name: str,
              args: MoverArgs,
              opts: Optional[ResourceOptions] = None)
    func NewMover(ctx *Context, name string, args MoverArgs, opts ...ResourceOption) (*Mover, error)
    public Mover(string name, MoverArgs args, CustomResourceOptions? opts = null)
    public Mover(String name, MoverArgs args)
    public Mover(String name, MoverArgs args, CustomResourceOptions options)
    
    type: azure:storage:Mover
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args MoverArgs
    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 MoverArgs
    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 MoverArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MoverArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MoverArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    ResourceGroupName string
    Specifies the name of the Resource Group where the Storage Mover should exist. Changing this forces a new Storage Mover to be created.
    Description string
    A description for the Storage Mover.
    Location string
    Specifies the Azure Region where the Storage Mover should exist. Changing this forces a new Storage Mover to be created.
    Name string
    Specifies the name which should be used for this Storage Mover. Changing this forces a new Storage Mover to be created.
    Tags Dictionary<string, string>
    A mapping of tags which should be assigned to the Storage Mover.
    ResourceGroupName string
    Specifies the name of the Resource Group where the Storage Mover should exist. Changing this forces a new Storage Mover to be created.
    Description string
    A description for the Storage Mover.
    Location string
    Specifies the Azure Region where the Storage Mover should exist. Changing this forces a new Storage Mover to be created.
    Name string
    Specifies the name which should be used for this Storage Mover. Changing this forces a new Storage Mover to be created.
    Tags map[string]string
    A mapping of tags which should be assigned to the Storage Mover.
    resourceGroupName String
    Specifies the name of the Resource Group where the Storage Mover should exist. Changing this forces a new Storage Mover to be created.
    description String
    A description for the Storage Mover.
    location String
    Specifies the Azure Region where the Storage Mover should exist. Changing this forces a new Storage Mover to be created.
    name String
    Specifies the name which should be used for this Storage Mover. Changing this forces a new Storage Mover to be created.
    tags Map<String,String>
    A mapping of tags which should be assigned to the Storage Mover.
    resourceGroupName string
    Specifies the name of the Resource Group where the Storage Mover should exist. Changing this forces a new Storage Mover to be created.
    description string
    A description for the Storage Mover.
    location string
    Specifies the Azure Region where the Storage Mover should exist. Changing this forces a new Storage Mover to be created.
    name string
    Specifies the name which should be used for this Storage Mover. Changing this forces a new Storage Mover to be created.
    tags {[key: string]: string}
    A mapping of tags which should be assigned to the Storage Mover.
    resource_group_name str
    Specifies the name of the Resource Group where the Storage Mover should exist. Changing this forces a new Storage Mover to be created.
    description str
    A description for the Storage Mover.
    location str
    Specifies the Azure Region where the Storage Mover should exist. Changing this forces a new Storage Mover to be created.
    name str
    Specifies the name which should be used for this Storage Mover. Changing this forces a new Storage Mover to be created.
    tags Mapping[str, str]
    A mapping of tags which should be assigned to the Storage Mover.
    resourceGroupName String
    Specifies the name of the Resource Group where the Storage Mover should exist. Changing this forces a new Storage Mover to be created.
    description String
    A description for the Storage Mover.
    location String
    Specifies the Azure Region where the Storage Mover should exist. Changing this forces a new Storage Mover to be created.
    name String
    Specifies the name which should be used for this Storage Mover. Changing this forces a new Storage Mover to be created.
    tags Map<String>
    A mapping of tags which should be assigned to the Storage Mover.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Mover 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 Mover Resource

    Get an existing Mover 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?: MoverState, opts?: CustomResourceOptions): Mover
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            resource_group_name: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None) -> Mover
    func GetMover(ctx *Context, name string, id IDInput, state *MoverState, opts ...ResourceOption) (*Mover, error)
    public static Mover Get(string name, Input<string> id, MoverState? state, CustomResourceOptions? opts = null)
    public static Mover get(String name, Output<String> id, MoverState 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
    A description for the Storage Mover.
    Location string
    Specifies the Azure Region where the Storage Mover should exist. Changing this forces a new Storage Mover to be created.
    Name string
    Specifies the name which should be used for this Storage Mover. Changing this forces a new Storage Mover to be created.
    ResourceGroupName string
    Specifies the name of the Resource Group where the Storage Mover should exist. Changing this forces a new Storage Mover to be created.
    Tags Dictionary<string, string>
    A mapping of tags which should be assigned to the Storage Mover.
    Description string
    A description for the Storage Mover.
    Location string
    Specifies the Azure Region where the Storage Mover should exist. Changing this forces a new Storage Mover to be created.
    Name string
    Specifies the name which should be used for this Storage Mover. Changing this forces a new Storage Mover to be created.
    ResourceGroupName string
    Specifies the name of the Resource Group where the Storage Mover should exist. Changing this forces a new Storage Mover to be created.
    Tags map[string]string
    A mapping of tags which should be assigned to the Storage Mover.
    description String
    A description for the Storage Mover.
    location String
    Specifies the Azure Region where the Storage Mover should exist. Changing this forces a new Storage Mover to be created.
    name String
    Specifies the name which should be used for this Storage Mover. Changing this forces a new Storage Mover to be created.
    resourceGroupName String
    Specifies the name of the Resource Group where the Storage Mover should exist. Changing this forces a new Storage Mover to be created.
    tags Map<String,String>
    A mapping of tags which should be assigned to the Storage Mover.
    description string
    A description for the Storage Mover.
    location string
    Specifies the Azure Region where the Storage Mover should exist. Changing this forces a new Storage Mover to be created.
    name string
    Specifies the name which should be used for this Storage Mover. Changing this forces a new Storage Mover to be created.
    resourceGroupName string
    Specifies the name of the Resource Group where the Storage Mover should exist. Changing this forces a new Storage Mover to be created.
    tags {[key: string]: string}
    A mapping of tags which should be assigned to the Storage Mover.
    description str
    A description for the Storage Mover.
    location str
    Specifies the Azure Region where the Storage Mover should exist. Changing this forces a new Storage Mover to be created.
    name str
    Specifies the name which should be used for this Storage Mover. Changing this forces a new Storage Mover to be created.
    resource_group_name str
    Specifies the name of the Resource Group where the Storage Mover should exist. Changing this forces a new Storage Mover to be created.
    tags Mapping[str, str]
    A mapping of tags which should be assigned to the Storage Mover.
    description String
    A description for the Storage Mover.
    location String
    Specifies the Azure Region where the Storage Mover should exist. Changing this forces a new Storage Mover to be created.
    name String
    Specifies the name which should be used for this Storage Mover. Changing this forces a new Storage Mover to be created.
    resourceGroupName String
    Specifies the name of the Resource Group where the Storage Mover should exist. Changing this forces a new Storage Mover to be created.
    tags Map<String>
    A mapping of tags which should be assigned to the Storage Mover.

    Import

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

    $ pulumi import azure:storage/mover:Mover example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.StorageMover/storageMovers/storageMover1
    

    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 v5.70.0 published on Wednesday, Mar 27, 2024 by Pulumi