pulumi_wasm_providers_azure_mini::storage

Module mover_agent

source
Expand description

Manages a Storage Mover Agent.

§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("East US")
            .name("example-resources")
            .build_struct(),
    );
    let exampleMover = mover::create(
        "exampleMover",
        MoverArgs::builder()
            .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")
            .description("Example Agent Description")
            .name("example-sa")
            .storage_mover_id("${exampleMover.id}")
            .build_struct(),
    );
}

§Import

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

$ pulumi import azure:storage/moverAgent:MoverAgent example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.StorageMover/storageMovers/storageMover1/agents/agent1

Structs§

Functions§

  • Registers a new resource with the given unique name and arguments