MoverJobDefinition

class MoverJobDefinition : KotlinCustomResource

Manages a Storage Mover Job Definition.

Example Usage

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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleMover = new Mover("exampleMover", MoverArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.build());
var exampleMoverAgent = new MoverAgent("exampleMoverAgent", MoverAgentArgs.builder()
.storageMoverId(exampleMover.id())
.arcVirtualMachineId(exampleResourceGroup.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()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.accountTier("Standard")
.accountReplicationType("LRS")
.allowNestedItemsToBePublic(true)
.build());
var exampleContainer = new Container("exampleContainer", ContainerArgs.builder()
.storageAccountName(exampleAccount.name())
.containerAccessType("blob")
.build());
var exampleMoverTargetEndpoint = new MoverTargetEndpoint("exampleMoverTargetEndpoint", MoverTargetEndpointArgs.builder()
.storageMoverId(exampleMover.id())
.storageAccountId(exampleAccount.id())
.storageContainerName(exampleContainer.name())
.build());
var exampleMoverSourceEndpoint = new MoverSourceEndpoint("exampleMoverSourceEndpoint", MoverSourceEndpointArgs.builder()
.storageMoverId(exampleMover.id())
.host("192.168.0.1")
.build());
var exampleMoverProject = new MoverProject("exampleMoverProject", MoverProjectArgs.builder()
.storageMoverId(exampleMover.id())
.build());
var exampleMoverJobDefinition = new MoverJobDefinition("exampleMoverJobDefinition", MoverJobDefinitionArgs.builder()
.storageMoverProjectId(exampleMoverProject.id())
.agentName(exampleMoverAgent.name())
.copyMode("Additive")
.sourceName(exampleMoverSourceEndpoint.name())
.sourceSubPath("/")
.targetName(exampleMoverTargetEndpoint.name())
.targetSubPath("/")
.description("Example Job Definition Description")
.build());
}
}

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

Properties

Link copied to clipboard
val agentName: Output<String>?

Specifies the name of the Storage Mover Agent to assign for new Job Runs of this Storage Mover Job Definition.

Link copied to clipboard
val copyMode: Output<String>

Specifies the strategy to use for copy. Possible values are Additive and Mirror.

Link copied to clipboard
val description: Output<String>?

Specifies a description for this Storage Mover Job Definition.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

Specifies the name which should be used for this Storage Mover Job Definition. Changing this forces a new resource to be created.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val sourceName: Output<String>

Specifies the name of the Storage Mover Source Endpoint. Changing this forces a new resource to be created.

Link copied to clipboard
val sourceSubPath: Output<String>?

Specifies the sub path to use when reading from the Storage Mover Source Endpoint. Changing this forces a new resource to be created.

Link copied to clipboard

Specifies the ID of the Storage Mover Project. Changing this forces a new resource to be created.

Link copied to clipboard
val targetName: Output<String>

Specifies the name of the Storage Mover target Endpoint. Changing this forces a new resource to be created.

Link copied to clipboard
val targetSubPath: Output<String>?

Specifies the sub path to use when writing to the Storage Mover Target Endpoint. Changing this forces a new resource to be created.

Link copied to clipboard
val urn: Output<String>