AgentArgs

data class AgentArgs(val agentName: Output<String>? = null, val arcResourceId: Output<String>? = null, val arcVmUuid: Output<String>? = null, val description: Output<String>? = null, val resourceGroupName: Output<String>? = null, val storageMoverName: Output<String>? = null) : ConvertibleToJava<AgentArgs>

The Agent resource. API Version: 2022-07-01-preview.

Example Usage

Agents_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var agent = new AzureNative.StorageMover.Agent("agent", new()
{
AgentName = "examples-agentName",
ArcResourceId = "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.HybridCompute/machines/examples-hybridComputeName",
ArcVmUuid = "3bb2c024-eba9-4d18-9e7a-1d772fcc5fe9",
Description = "Example Agent Description",
ResourceGroupName = "examples-rg",
StorageMoverName = "examples-storageMoverName",
});
});
package main
import (
storagemover "github.com/pulumi/pulumi-azure-native-sdk/storagemover"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := storagemover.NewAgent(ctx, "agent", &storagemover.AgentArgs{
AgentName: pulumi.String("examples-agentName"),
ArcResourceId: pulumi.String("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.HybridCompute/machines/examples-hybridComputeName"),
ArcVmUuid: pulumi.String("3bb2c024-eba9-4d18-9e7a-1d772fcc5fe9"),
Description: pulumi.String("Example Agent Description"),
ResourceGroupName: pulumi.String("examples-rg"),
StorageMoverName: pulumi.String("examples-storageMoverName"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.storagemover.Agent;
import com.pulumi.azurenative.storagemover.AgentArgs;
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 agent = new Agent("agent", AgentArgs.builder()
.agentName("examples-agentName")
.arcResourceId("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.HybridCompute/machines/examples-hybridComputeName")
.arcVmUuid("3bb2c024-eba9-4d18-9e7a-1d772fcc5fe9")
.description("Example Agent Description")
.resourceGroupName("examples-rg")
.storageMoverName("examples-storageMoverName")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:storagemover:Agent examples-agentName /subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/agents/examples-agentName

Constructors

Link copied to clipboard
constructor(agentName: Output<String>? = null, arcResourceId: Output<String>? = null, arcVmUuid: Output<String>? = null, description: Output<String>? = null, resourceGroupName: Output<String>? = null, storageMoverName: Output<String>? = null)

Properties

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

The name of the Agent resource.

Link copied to clipboard
val arcResourceId: Output<String>? = null

The fully qualified resource ID of the Hybrid Compute resource for the Agent.

Link copied to clipboard
val arcVmUuid: Output<String>? = null

The VM UUID of the Hybrid Compute resource for the Agent.

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

A description for the Agent.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val storageMoverName: Output<String>? = null

The name of the Storage Mover resource.

Functions

Link copied to clipboard
open override fun toJava(): AgentArgs