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

We recommend using Azure Native.

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

azure.storage.MoverJobDefinition

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 Job Definition.

    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 exampleMoverAgent = new azure.storage.MoverAgent("example", {
        name: "example-agent",
        storageMoverId: exampleMover.id,
        arcVirtualMachineId: pulumi.interpolate`${example.id}/providers/Microsoft.HybridCompute/machines/examples-hybridComputeName`,
        arcVirtualMachineUuid: "3bb2c024-eba9-4d18-9e7a-1d772fcc5fe9",
    });
    const exampleAccount = new azure.storage.Account("example", {
        name: "examplesa",
        resourceGroupName: example.name,
        location: example.location,
        accountTier: "Standard",
        accountReplicationType: "LRS",
        allowNestedItemsToBePublic: true,
    });
    const exampleContainer = new azure.storage.Container("example", {
        name: "acccontainer",
        storageAccountName: exampleAccount.name,
        containerAccessType: "blob",
    });
    const exampleMoverTargetEndpoint = new azure.storage.MoverTargetEndpoint("example", {
        name: "example-smte",
        storageMoverId: exampleMover.id,
        storageAccountId: exampleAccount.id,
        storageContainerName: exampleContainer.name,
    });
    const exampleMoverSourceEndpoint = new azure.storage.MoverSourceEndpoint("example", {
        name: "example-smse",
        storageMoverId: exampleMover.id,
        host: "192.168.0.1",
    });
    const exampleMoverProject = new azure.storage.MoverProject("example", {
        name: "example-sp",
        storageMoverId: exampleMover.id,
    });
    const exampleMoverJobDefinition = new azure.storage.MoverJobDefinition("example", {
        name: "example-sjd",
        storageMoverProjectId: exampleMoverProject.id,
        agentName: exampleMoverAgent.name,
        copyMode: "Additive",
        sourceName: exampleMoverSourceEndpoint.name,
        sourceSubPath: "/",
        targetName: exampleMoverTargetEndpoint.name,
        targetSubPath: "/",
        description: "Example Job Definition 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_agent = azure.storage.MoverAgent("example",
        name="example-agent",
        storage_mover_id=example_mover.id,
        arc_virtual_machine_id=example.id.apply(lambda id: f"{id}/providers/Microsoft.HybridCompute/machines/examples-hybridComputeName"),
        arc_virtual_machine_uuid="3bb2c024-eba9-4d18-9e7a-1d772fcc5fe9")
    example_account = azure.storage.Account("example",
        name="examplesa",
        resource_group_name=example.name,
        location=example.location,
        account_tier="Standard",
        account_replication_type="LRS",
        allow_nested_items_to_be_public=True)
    example_container = azure.storage.Container("example",
        name="acccontainer",
        storage_account_name=example_account.name,
        container_access_type="blob")
    example_mover_target_endpoint = azure.storage.MoverTargetEndpoint("example",
        name="example-smte",
        storage_mover_id=example_mover.id,
        storage_account_id=example_account.id,
        storage_container_name=example_container.name)
    example_mover_source_endpoint = azure.storage.MoverSourceEndpoint("example",
        name="example-smse",
        storage_mover_id=example_mover.id,
        host="192.168.0.1")
    example_mover_project = azure.storage.MoverProject("example",
        name="example-sp",
        storage_mover_id=example_mover.id)
    example_mover_job_definition = azure.storage.MoverJobDefinition("example",
        name="example-sjd",
        storage_mover_project_id=example_mover_project.id,
        agent_name=example_mover_agent.name,
        copy_mode="Additive",
        source_name=example_mover_source_endpoint.name,
        source_sub_path="/",
        target_name=example_mover_target_endpoint.name,
        target_sub_path="/",
        description="Example Job Definition Description")
    
    package main
    
    import (
    	"fmt"
    
    	"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
    		}
    		exampleMoverAgent, err := storage.NewMoverAgent(ctx, "example", &storage.MoverAgentArgs{
    			Name:           pulumi.String("example-agent"),
    			StorageMoverId: exampleMover.ID(),
    			ArcVirtualMachineId: example.ID().ApplyT(func(id string) (string, error) {
    				return fmt.Sprintf("%v/providers/Microsoft.HybridCompute/machines/examples-hybridComputeName", id), nil
    			}).(pulumi.StringOutput),
    			ArcVirtualMachineUuid: pulumi.String("3bb2c024-eba9-4d18-9e7a-1d772fcc5fe9"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
    			Name:                       pulumi.String("examplesa"),
    			ResourceGroupName:          example.Name,
    			Location:                   example.Location,
    			AccountTier:                pulumi.String("Standard"),
    			AccountReplicationType:     pulumi.String("LRS"),
    			AllowNestedItemsToBePublic: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		exampleContainer, err := storage.NewContainer(ctx, "example", &storage.ContainerArgs{
    			Name:                pulumi.String("acccontainer"),
    			StorageAccountName:  exampleAccount.Name,
    			ContainerAccessType: pulumi.String("blob"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleMoverTargetEndpoint, err := storage.NewMoverTargetEndpoint(ctx, "example", &storage.MoverTargetEndpointArgs{
    			Name:                 pulumi.String("example-smte"),
    			StorageMoverId:       exampleMover.ID(),
    			StorageAccountId:     exampleAccount.ID(),
    			StorageContainerName: exampleContainer.Name,
    		})
    		if err != nil {
    			return err
    		}
    		exampleMoverSourceEndpoint, err := storage.NewMoverSourceEndpoint(ctx, "example", &storage.MoverSourceEndpointArgs{
    			Name:           pulumi.String("example-smse"),
    			StorageMoverId: exampleMover.ID(),
    			Host:           pulumi.String("192.168.0.1"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleMoverProject, err := storage.NewMoverProject(ctx, "example", &storage.MoverProjectArgs{
    			Name:           pulumi.String("example-sp"),
    			StorageMoverId: exampleMover.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = storage.NewMoverJobDefinition(ctx, "example", &storage.MoverJobDefinitionArgs{
    			Name:                  pulumi.String("example-sjd"),
    			StorageMoverProjectId: exampleMoverProject.ID(),
    			AgentName:             exampleMoverAgent.Name,
    			CopyMode:              pulumi.String("Additive"),
    			SourceName:            exampleMoverSourceEndpoint.Name,
    			SourceSubPath:         pulumi.String("/"),
    			TargetName:            exampleMoverTargetEndpoint.Name,
    			TargetSubPath:         pulumi.String("/"),
    			Description:           pulumi.String("Example Job Definition 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 exampleMoverAgent = new Azure.Storage.MoverAgent("example", new()
        {
            Name = "example-agent",
            StorageMoverId = exampleMover.Id,
            ArcVirtualMachineId = example.Id.Apply(id => $"{id}/providers/Microsoft.HybridCompute/machines/examples-hybridComputeName"),
            ArcVirtualMachineUuid = "3bb2c024-eba9-4d18-9e7a-1d772fcc5fe9",
        });
    
        var exampleAccount = new Azure.Storage.Account("example", new()
        {
            Name = "examplesa",
            ResourceGroupName = example.Name,
            Location = example.Location,
            AccountTier = "Standard",
            AccountReplicationType = "LRS",
            AllowNestedItemsToBePublic = true,
        });
    
        var exampleContainer = new Azure.Storage.Container("example", new()
        {
            Name = "acccontainer",
            StorageAccountName = exampleAccount.Name,
            ContainerAccessType = "blob",
        });
    
        var exampleMoverTargetEndpoint = new Azure.Storage.MoverTargetEndpoint("example", new()
        {
            Name = "example-smte",
            StorageMoverId = exampleMover.Id,
            StorageAccountId = exampleAccount.Id,
            StorageContainerName = exampleContainer.Name,
        });
    
        var exampleMoverSourceEndpoint = new Azure.Storage.MoverSourceEndpoint("example", new()
        {
            Name = "example-smse",
            StorageMoverId = exampleMover.Id,
            Host = "192.168.0.1",
        });
    
        var exampleMoverProject = new Azure.Storage.MoverProject("example", new()
        {
            Name = "example-sp",
            StorageMoverId = exampleMover.Id,
        });
    
        var exampleMoverJobDefinition = new Azure.Storage.MoverJobDefinition("example", new()
        {
            Name = "example-sjd",
            StorageMoverProjectId = exampleMoverProject.Id,
            AgentName = exampleMoverAgent.Name,
            CopyMode = "Additive",
            SourceName = exampleMoverSourceEndpoint.Name,
            SourceSubPath = "/",
            TargetName = exampleMoverTargetEndpoint.Name,
            TargetSubPath = "/",
            Description = "Example Job Definition 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.MoverAgent;
    import com.pulumi.azure.storage.MoverAgentArgs;
    import com.pulumi.azure.storage.Account;
    import com.pulumi.azure.storage.AccountArgs;
    import com.pulumi.azure.storage.Container;
    import com.pulumi.azure.storage.ContainerArgs;
    import com.pulumi.azure.storage.MoverTargetEndpoint;
    import com.pulumi.azure.storage.MoverTargetEndpointArgs;
    import com.pulumi.azure.storage.MoverSourceEndpoint;
    import com.pulumi.azure.storage.MoverSourceEndpointArgs;
    import com.pulumi.azure.storage.MoverProject;
    import com.pulumi.azure.storage.MoverProjectArgs;
    import com.pulumi.azure.storage.MoverJobDefinition;
    import com.pulumi.azure.storage.MoverJobDefinitionArgs;
    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 exampleMoverAgent = new MoverAgent("exampleMoverAgent", MoverAgentArgs.builder()
                .name("example-agent")
                .storageMoverId(exampleMover.id())
                .arcVirtualMachineId(example.id().applyValue(id -> String.format("%s/providers/Microsoft.HybridCompute/machines/examples-hybridComputeName", id)))
                .arcVirtualMachineUuid("3bb2c024-eba9-4d18-9e7a-1d772fcc5fe9")
                .build());
    
            var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
                .name("examplesa")
                .resourceGroupName(example.name())
                .location(example.location())
                .accountTier("Standard")
                .accountReplicationType("LRS")
                .allowNestedItemsToBePublic(true)
                .build());
    
            var exampleContainer = new Container("exampleContainer", ContainerArgs.builder()
                .name("acccontainer")
                .storageAccountName(exampleAccount.name())
                .containerAccessType("blob")
                .build());
    
            var exampleMoverTargetEndpoint = new MoverTargetEndpoint("exampleMoverTargetEndpoint", MoverTargetEndpointArgs.builder()
                .name("example-smte")
                .storageMoverId(exampleMover.id())
                .storageAccountId(exampleAccount.id())
                .storageContainerName(exampleContainer.name())
                .build());
    
            var exampleMoverSourceEndpoint = new MoverSourceEndpoint("exampleMoverSourceEndpoint", MoverSourceEndpointArgs.builder()
                .name("example-smse")
                .storageMoverId(exampleMover.id())
                .host("192.168.0.1")
                .build());
    
            var exampleMoverProject = new MoverProject("exampleMoverProject", MoverProjectArgs.builder()
                .name("example-sp")
                .storageMoverId(exampleMover.id())
                .build());
    
            var exampleMoverJobDefinition = new MoverJobDefinition("exampleMoverJobDefinition", MoverJobDefinitionArgs.builder()
                .name("example-sjd")
                .storageMoverProjectId(exampleMoverProject.id())
                .agentName(exampleMoverAgent.name())
                .copyMode("Additive")
                .sourceName(exampleMoverSourceEndpoint.name())
                .sourceSubPath("/")
                .targetName(exampleMoverTargetEndpoint.name())
                .targetSubPath("/")
                .description("Example Job Definition 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}
      exampleMoverAgent:
        type: azure:storage:MoverAgent
        name: example
        properties:
          name: example-agent
          storageMoverId: ${exampleMover.id}
          arcVirtualMachineId: ${example.id}/providers/Microsoft.HybridCompute/machines/examples-hybridComputeName
          arcVirtualMachineUuid: 3bb2c024-eba9-4d18-9e7a-1d772fcc5fe9
      exampleAccount:
        type: azure:storage:Account
        name: example
        properties:
          name: examplesa
          resourceGroupName: ${example.name}
          location: ${example.location}
          accountTier: Standard
          accountReplicationType: LRS
          allowNestedItemsToBePublic: true
      exampleContainer:
        type: azure:storage:Container
        name: example
        properties:
          name: acccontainer
          storageAccountName: ${exampleAccount.name}
          containerAccessType: blob
      exampleMoverTargetEndpoint:
        type: azure:storage:MoverTargetEndpoint
        name: example
        properties:
          name: example-smte
          storageMoverId: ${exampleMover.id}
          storageAccountId: ${exampleAccount.id}
          storageContainerName: ${exampleContainer.name}
      exampleMoverSourceEndpoint:
        type: azure:storage:MoverSourceEndpoint
        name: example
        properties:
          name: example-smse
          storageMoverId: ${exampleMover.id}
          host: 192.168.0.1
      exampleMoverProject:
        type: azure:storage:MoverProject
        name: example
        properties:
          name: example-sp
          storageMoverId: ${exampleMover.id}
      exampleMoverJobDefinition:
        type: azure:storage:MoverJobDefinition
        name: example
        properties:
          name: example-sjd
          storageMoverProjectId: ${exampleMoverProject.id}
          agentName: ${exampleMoverAgent.name}
          copyMode: Additive
          sourceName: ${exampleMoverSourceEndpoint.name}
          sourceSubPath: /
          targetName: ${exampleMoverTargetEndpoint.name}
          targetSubPath: /
          description: Example Job Definition Description
    

    Create MoverJobDefinition Resource

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

    Constructor syntax

    new MoverJobDefinition(name: string, args: MoverJobDefinitionArgs, opts?: CustomResourceOptions);
    @overload
    def MoverJobDefinition(resource_name: str,
                           args: MoverJobDefinitionArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def MoverJobDefinition(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           copy_mode: Optional[str] = None,
                           source_name: Optional[str] = None,
                           storage_mover_project_id: Optional[str] = None,
                           target_name: Optional[str] = None,
                           agent_name: Optional[str] = None,
                           description: Optional[str] = None,
                           name: Optional[str] = None,
                           source_sub_path: Optional[str] = None,
                           target_sub_path: Optional[str] = None)
    func NewMoverJobDefinition(ctx *Context, name string, args MoverJobDefinitionArgs, opts ...ResourceOption) (*MoverJobDefinition, error)
    public MoverJobDefinition(string name, MoverJobDefinitionArgs args, CustomResourceOptions? opts = null)
    public MoverJobDefinition(String name, MoverJobDefinitionArgs args)
    public MoverJobDefinition(String name, MoverJobDefinitionArgs args, CustomResourceOptions options)
    
    type: azure:storage:MoverJobDefinition
    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 MoverJobDefinitionArgs
    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 MoverJobDefinitionArgs
    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 MoverJobDefinitionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MoverJobDefinitionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MoverJobDefinitionArgs
    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 moverJobDefinitionResource = new Azure.Storage.MoverJobDefinition("moverJobDefinitionResource", new()
    {
        CopyMode = "string",
        SourceName = "string",
        StorageMoverProjectId = "string",
        TargetName = "string",
        AgentName = "string",
        Description = "string",
        Name = "string",
        SourceSubPath = "string",
        TargetSubPath = "string",
    });
    
    example, err := storage.NewMoverJobDefinition(ctx, "moverJobDefinitionResource", &storage.MoverJobDefinitionArgs{
    	CopyMode:              pulumi.String("string"),
    	SourceName:            pulumi.String("string"),
    	StorageMoverProjectId: pulumi.String("string"),
    	TargetName:            pulumi.String("string"),
    	AgentName:             pulumi.String("string"),
    	Description:           pulumi.String("string"),
    	Name:                  pulumi.String("string"),
    	SourceSubPath:         pulumi.String("string"),
    	TargetSubPath:         pulumi.String("string"),
    })
    
    var moverJobDefinitionResource = new MoverJobDefinition("moverJobDefinitionResource", MoverJobDefinitionArgs.builder()
        .copyMode("string")
        .sourceName("string")
        .storageMoverProjectId("string")
        .targetName("string")
        .agentName("string")
        .description("string")
        .name("string")
        .sourceSubPath("string")
        .targetSubPath("string")
        .build());
    
    mover_job_definition_resource = azure.storage.MoverJobDefinition("moverJobDefinitionResource",
        copy_mode="string",
        source_name="string",
        storage_mover_project_id="string",
        target_name="string",
        agent_name="string",
        description="string",
        name="string",
        source_sub_path="string",
        target_sub_path="string")
    
    const moverJobDefinitionResource = new azure.storage.MoverJobDefinition("moverJobDefinitionResource", {
        copyMode: "string",
        sourceName: "string",
        storageMoverProjectId: "string",
        targetName: "string",
        agentName: "string",
        description: "string",
        name: "string",
        sourceSubPath: "string",
        targetSubPath: "string",
    });
    
    type: azure:storage:MoverJobDefinition
    properties:
        agentName: string
        copyMode: string
        description: string
        name: string
        sourceName: string
        sourceSubPath: string
        storageMoverProjectId: string
        targetName: string
        targetSubPath: string
    

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

    CopyMode string
    Specifies the strategy to use for copy. Possible values are Additive and Mirror.
    SourceName string
    Specifies the name of the Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    StorageMoverProjectId string
    Specifies the ID of the Storage Mover Project. Changing this forces a new resource to be created.
    TargetName string
    Specifies the name of the Storage Mover target Endpoint. Changing this forces a new resource to be created.
    AgentName string
    Specifies the name of the Storage Mover Agent to assign for new Job Runs of this Storage Mover Job Definition.
    Description string
    Specifies a description for this Storage Mover Job Definition.
    Name string
    Specifies the name which should be used for this Storage Mover Job Definition. Changing this forces a new resource to be created.
    SourceSubPath string
    Specifies the sub path to use when reading from the Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    TargetSubPath string
    Specifies the sub path to use when writing to the Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    CopyMode string
    Specifies the strategy to use for copy. Possible values are Additive and Mirror.
    SourceName string
    Specifies the name of the Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    StorageMoverProjectId string
    Specifies the ID of the Storage Mover Project. Changing this forces a new resource to be created.
    TargetName string
    Specifies the name of the Storage Mover target Endpoint. Changing this forces a new resource to be created.
    AgentName string
    Specifies the name of the Storage Mover Agent to assign for new Job Runs of this Storage Mover Job Definition.
    Description string
    Specifies a description for this Storage Mover Job Definition.
    Name string
    Specifies the name which should be used for this Storage Mover Job Definition. Changing this forces a new resource to be created.
    SourceSubPath string
    Specifies the sub path to use when reading from the Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    TargetSubPath string
    Specifies the sub path to use when writing to the Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    copyMode String
    Specifies the strategy to use for copy. Possible values are Additive and Mirror.
    sourceName String
    Specifies the name of the Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    storageMoverProjectId String
    Specifies the ID of the Storage Mover Project. Changing this forces a new resource to be created.
    targetName String
    Specifies the name of the Storage Mover target Endpoint. Changing this forces a new resource to be created.
    agentName String
    Specifies the name of the Storage Mover Agent to assign for new Job Runs of this Storage Mover Job Definition.
    description String
    Specifies a description for this Storage Mover Job Definition.
    name String
    Specifies the name which should be used for this Storage Mover Job Definition. Changing this forces a new resource to be created.
    sourceSubPath String
    Specifies the sub path to use when reading from the Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    targetSubPath String
    Specifies the sub path to use when writing to the Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    copyMode string
    Specifies the strategy to use for copy. Possible values are Additive and Mirror.
    sourceName string
    Specifies the name of the Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    storageMoverProjectId string
    Specifies the ID of the Storage Mover Project. Changing this forces a new resource to be created.
    targetName string
    Specifies the name of the Storage Mover target Endpoint. Changing this forces a new resource to be created.
    agentName string
    Specifies the name of the Storage Mover Agent to assign for new Job Runs of this Storage Mover Job Definition.
    description string
    Specifies a description for this Storage Mover Job Definition.
    name string
    Specifies the name which should be used for this Storage Mover Job Definition. Changing this forces a new resource to be created.
    sourceSubPath string
    Specifies the sub path to use when reading from the Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    targetSubPath string
    Specifies the sub path to use when writing to the Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    copy_mode str
    Specifies the strategy to use for copy. Possible values are Additive and Mirror.
    source_name str
    Specifies the name of the Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    storage_mover_project_id str
    Specifies the ID of the Storage Mover Project. Changing this forces a new resource to be created.
    target_name str
    Specifies the name of the Storage Mover target Endpoint. Changing this forces a new resource to be created.
    agent_name str
    Specifies the name of the Storage Mover Agent to assign for new Job Runs of this Storage Mover Job Definition.
    description str
    Specifies a description for this Storage Mover Job Definition.
    name str
    Specifies the name which should be used for this Storage Mover Job Definition. Changing this forces a new resource to be created.
    source_sub_path str
    Specifies the sub path to use when reading from the Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    target_sub_path str
    Specifies the sub path to use when writing to the Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    copyMode String
    Specifies the strategy to use for copy. Possible values are Additive and Mirror.
    sourceName String
    Specifies the name of the Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    storageMoverProjectId String
    Specifies the ID of the Storage Mover Project. Changing this forces a new resource to be created.
    targetName String
    Specifies the name of the Storage Mover target Endpoint. Changing this forces a new resource to be created.
    agentName String
    Specifies the name of the Storage Mover Agent to assign for new Job Runs of this Storage Mover Job Definition.
    description String
    Specifies a description for this Storage Mover Job Definition.
    name String
    Specifies the name which should be used for this Storage Mover Job Definition. Changing this forces a new resource to be created.
    sourceSubPath String
    Specifies the sub path to use when reading from the Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    targetSubPath String
    Specifies the sub path to use when writing to the Storage Mover Target Endpoint. Changing this forces a new resource to be created.

    Outputs

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

    Get an existing MoverJobDefinition 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?: MoverJobDefinitionState, opts?: CustomResourceOptions): MoverJobDefinition
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            agent_name: Optional[str] = None,
            copy_mode: Optional[str] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            source_name: Optional[str] = None,
            source_sub_path: Optional[str] = None,
            storage_mover_project_id: Optional[str] = None,
            target_name: Optional[str] = None,
            target_sub_path: Optional[str] = None) -> MoverJobDefinition
    func GetMoverJobDefinition(ctx *Context, name string, id IDInput, state *MoverJobDefinitionState, opts ...ResourceOption) (*MoverJobDefinition, error)
    public static MoverJobDefinition Get(string name, Input<string> id, MoverJobDefinitionState? state, CustomResourceOptions? opts = null)
    public static MoverJobDefinition get(String name, Output<String> id, MoverJobDefinitionState 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:
    AgentName string
    Specifies the name of the Storage Mover Agent to assign for new Job Runs of this Storage Mover Job Definition.
    CopyMode string
    Specifies the strategy to use for copy. Possible values are Additive and Mirror.
    Description string
    Specifies a description for this Storage Mover Job Definition.
    Name string
    Specifies the name which should be used for this Storage Mover Job Definition. Changing this forces a new resource to be created.
    SourceName string
    Specifies the name of the Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    SourceSubPath string
    Specifies the sub path to use when reading from the Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    StorageMoverProjectId string
    Specifies the ID of the Storage Mover Project. Changing this forces a new resource to be created.
    TargetName string
    Specifies the name of the Storage Mover target Endpoint. Changing this forces a new resource to be created.
    TargetSubPath string
    Specifies the sub path to use when writing to the Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    AgentName string
    Specifies the name of the Storage Mover Agent to assign for new Job Runs of this Storage Mover Job Definition.
    CopyMode string
    Specifies the strategy to use for copy. Possible values are Additive and Mirror.
    Description string
    Specifies a description for this Storage Mover Job Definition.
    Name string
    Specifies the name which should be used for this Storage Mover Job Definition. Changing this forces a new resource to be created.
    SourceName string
    Specifies the name of the Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    SourceSubPath string
    Specifies the sub path to use when reading from the Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    StorageMoverProjectId string
    Specifies the ID of the Storage Mover Project. Changing this forces a new resource to be created.
    TargetName string
    Specifies the name of the Storage Mover target Endpoint. Changing this forces a new resource to be created.
    TargetSubPath string
    Specifies the sub path to use when writing to the Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    agentName String
    Specifies the name of the Storage Mover Agent to assign for new Job Runs of this Storage Mover Job Definition.
    copyMode String
    Specifies the strategy to use for copy. Possible values are Additive and Mirror.
    description String
    Specifies a description for this Storage Mover Job Definition.
    name String
    Specifies the name which should be used for this Storage Mover Job Definition. Changing this forces a new resource to be created.
    sourceName String
    Specifies the name of the Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    sourceSubPath String
    Specifies the sub path to use when reading from the Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    storageMoverProjectId String
    Specifies the ID of the Storage Mover Project. Changing this forces a new resource to be created.
    targetName String
    Specifies the name of the Storage Mover target Endpoint. Changing this forces a new resource to be created.
    targetSubPath String
    Specifies the sub path to use when writing to the Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    agentName string
    Specifies the name of the Storage Mover Agent to assign for new Job Runs of this Storage Mover Job Definition.
    copyMode string
    Specifies the strategy to use for copy. Possible values are Additive and Mirror.
    description string
    Specifies a description for this Storage Mover Job Definition.
    name string
    Specifies the name which should be used for this Storage Mover Job Definition. Changing this forces a new resource to be created.
    sourceName string
    Specifies the name of the Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    sourceSubPath string
    Specifies the sub path to use when reading from the Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    storageMoverProjectId string
    Specifies the ID of the Storage Mover Project. Changing this forces a new resource to be created.
    targetName string
    Specifies the name of the Storage Mover target Endpoint. Changing this forces a new resource to be created.
    targetSubPath string
    Specifies the sub path to use when writing to the Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    agent_name str
    Specifies the name of the Storage Mover Agent to assign for new Job Runs of this Storage Mover Job Definition.
    copy_mode str
    Specifies the strategy to use for copy. Possible values are Additive and Mirror.
    description str
    Specifies a description for this Storage Mover Job Definition.
    name str
    Specifies the name which should be used for this Storage Mover Job Definition. Changing this forces a new resource to be created.
    source_name str
    Specifies the name of the Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    source_sub_path str
    Specifies the sub path to use when reading from the Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    storage_mover_project_id str
    Specifies the ID of the Storage Mover Project. Changing this forces a new resource to be created.
    target_name str
    Specifies the name of the Storage Mover target Endpoint. Changing this forces a new resource to be created.
    target_sub_path str
    Specifies the sub path to use when writing to the Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    agentName String
    Specifies the name of the Storage Mover Agent to assign for new Job Runs of this Storage Mover Job Definition.
    copyMode String
    Specifies the strategy to use for copy. Possible values are Additive and Mirror.
    description String
    Specifies a description for this Storage Mover Job Definition.
    name String
    Specifies the name which should be used for this Storage Mover Job Definition. Changing this forces a new resource to be created.
    sourceName String
    Specifies the name of the Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    sourceSubPath String
    Specifies the sub path to use when reading from the Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    storageMoverProjectId String
    Specifies the ID of the Storage Mover Project. Changing this forces a new resource to be created.
    targetName String
    Specifies the name of the Storage Mover target Endpoint. Changing this forces a new resource to be created.
    targetSubPath String
    Specifies the sub path to use when writing to the Storage Mover Target Endpoint. Changing this forces a new resource to be created.

    Import

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

    $ pulumi import azure:storage/moverJobDefinition:MoverJobDefinition example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.StorageMover/storageMovers/storageMover1/projects/project1/jobDefinitions/jobDefinition1
    

    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