Agent
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",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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
Content copied to clipboard
Properties
Link copied to clipboard
The Agent status.
Link copied to clipboard
The Agent version.
Link copied to clipboard
The fully qualified resource ID of the Hybrid Compute resource for the Agent.
Link copied to clipboard
A description for the Agent.
Link copied to clipboard
Link copied to clipboard
The last updated time of the Agent status.
Link copied to clipboard
Local IP address reported by the Agent.
Link copied to clipboard
Available memory reported by the Agent, in MB.
Link copied to clipboard
Available compute cores reported by the Agent.
Link copied to clipboard
The provisioning state of this resource.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Resource system metadata.
Link copied to clipboard
Uptime of the Agent in seconds.