Agent

class Agent : KotlinCustomResource

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

Properties

Link copied to clipboard
val agentStatus: Output<String>

The Agent status.

Link copied to clipboard
val agentVersion: Output<String>

The Agent version.

Link copied to clipboard
val arcResourceId: Output<String>

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

Link copied to clipboard
val arcVmUuid: Output<String>

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

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

A description for the Agent.

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

The last updated time of the Agent status.

Link copied to clipboard
val localIPAddress: Output<String>

Local IP address reported by the Agent.

Link copied to clipboard
val memoryInMB: Output<Double>

Available memory reported by the Agent, in MB.

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard
val numberOfCores: Output<Double>

Available compute cores reported by the Agent.

Link copied to clipboard

The provisioning state of this resource.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Resource system metadata.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val uptimeInSeconds: Output<Double>

Uptime of the Agent in seconds.

Link copied to clipboard
val urn: Output<String>