Expand description
Manages a Storage Mover Job Definition.
§Example Usage
ⓘ
use pulumi_wasm_rust::Output;
use pulumi_wasm_rust::{add_export, pulumi_main};
#[pulumi_main]
fn test_main() -> Result<(), Error> {
let example = resource_group::create(
"example",
ResourceGroupArgs::builder()
.location("West Europe")
.name("example-resources")
.build_struct(),
);
let exampleAccount = account::create(
"exampleAccount",
AccountArgs::builder()
.account_replication_type("LRS")
.account_tier("Standard")
.allow_nested_items_to_be_public(true)
.location("${example.location}")
.name("examplesa")
.resource_group_name("${example.name}")
.build_struct(),
);
let exampleContainer = container::create(
"exampleContainer",
ContainerArgs::builder()
.container_access_type("blob")
.name("acccontainer")
.storage_account_name("${exampleAccount.name}")
.build_struct(),
);
let exampleMover = mover::create(
"exampleMover",
MoverArgs::builder()
.location("${example.location}")
.name("example-ssm")
.resource_group_name("${example.name}")
.build_struct(),
);
let exampleMoverAgent = mover_agent::create(
"exampleMoverAgent",
MoverAgentArgs::builder()
.arc_virtual_machine_id(
"${example.id}/providers/Microsoft.HybridCompute/machines/examples-hybridComputeName",
)
.arc_virtual_machine_uuid("3bb2c024-eba9-4d18-9e7a-1d772fcc5fe9")
.name("example-agent")
.storage_mover_id("${exampleMover.id}")
.build_struct(),
);
let exampleMoverJobDefinition = mover_job_definition::create(
"exampleMoverJobDefinition",
MoverJobDefinitionArgs::builder()
.agent_name("${exampleMoverAgent.name}")
.copy_mode("Additive")
.description("Example Job Definition Description")
.name("example-sjd")
.source_name("${exampleMoverSourceEndpoint.name}")
.source_sub_path("/")
.storage_mover_project_id("${exampleMoverProject.id}")
.target_name("${exampleMoverTargetEndpoint.name}")
.target_sub_path("/")
.build_struct(),
);
let exampleMoverProject = mover_project::create(
"exampleMoverProject",
MoverProjectArgs::builder()
.name("example-sp")
.storage_mover_id("${exampleMover.id}")
.build_struct(),
);
let exampleMoverSourceEndpoint = mover_source_endpoint::create(
"exampleMoverSourceEndpoint",
MoverSourceEndpointArgs::builder()
.host("192.168.0.1")
.name("example-smse")
.storage_mover_id("${exampleMover.id}")
.build_struct(),
);
let exampleMoverTargetEndpoint = mover_target_endpoint::create(
"exampleMoverTargetEndpoint",
MoverTargetEndpointArgs::builder()
.name("example-smte")
.storage_account_id("${exampleAccount.id}")
.storage_container_name("${exampleContainer.name}")
.storage_mover_id("${exampleMover.id}")
.build_struct(),
);
}
§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
Structs§
- Use builder syntax to set the inputs and finish with
build_struct()
.
Functions§
- Registers a new resource with the given unique name and arguments