azure-native.storagemover.Agent
Explore with Pulumi AI
The Agent resource. Azure REST API version: 2023-03-01. Prior API version in Azure Native 1.x: 2022-07-01-preview.
Other available API versions: 2023-07-01-preview, 2023-10-01, 2024-07-01.
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/v2"
"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 pulumi
import pulumi_azure_native as azure_native
agent = azure_native.storagemover.Agent("agent",
agent_name="examples-agentName",
arc_resource_id="/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.HybridCompute/machines/examples-hybridComputeName",
arc_vm_uuid="3bb2c024-eba9-4d18-9e7a-1d772fcc5fe9",
description="Example Agent Description",
resource_group_name="examples-rg",
storage_mover_name="examples-storageMoverName")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const agent = new azure_native.storagemover.Agent("agent", {
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",
});
resources:
agent:
type: azure-native:storagemover:Agent
properties:
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
Create Agent Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Agent(name: string, args: AgentArgs, opts?: CustomResourceOptions);
@overload
def Agent(resource_name: str,
args: AgentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Agent(resource_name: str,
opts: Optional[ResourceOptions] = None,
arc_resource_id: Optional[str] = None,
arc_vm_uuid: Optional[str] = None,
resource_group_name: Optional[str] = None,
storage_mover_name: Optional[str] = None,
agent_name: Optional[str] = None,
description: Optional[str] = None)
func NewAgent(ctx *Context, name string, args AgentArgs, opts ...ResourceOption) (*Agent, error)
public Agent(string name, AgentArgs args, CustomResourceOptions? opts = null)
type: azure-native:storagemover:Agent
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AgentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AgentArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AgentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AgentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AgentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var agentResource = new AzureNative.StorageMover.Agent("agentResource", new()
{
ArcResourceId = "string",
ArcVmUuid = "string",
ResourceGroupName = "string",
StorageMoverName = "string",
AgentName = "string",
Description = "string",
});
example, err := storagemover.NewAgent(ctx, "agentResource", &storagemover.AgentArgs{
ArcResourceId: pulumi.String("string"),
ArcVmUuid: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
StorageMoverName: pulumi.String("string"),
AgentName: pulumi.String("string"),
Description: pulumi.String("string"),
})
var agentResource = new Agent("agentResource", AgentArgs.builder()
.arcResourceId("string")
.arcVmUuid("string")
.resourceGroupName("string")
.storageMoverName("string")
.agentName("string")
.description("string")
.build());
agent_resource = azure_native.storagemover.Agent("agentResource",
arc_resource_id="string",
arc_vm_uuid="string",
resource_group_name="string",
storage_mover_name="string",
agent_name="string",
description="string")
const agentResource = new azure_native.storagemover.Agent("agentResource", {
arcResourceId: "string",
arcVmUuid: "string",
resourceGroupName: "string",
storageMoverName: "string",
agentName: "string",
description: "string",
});
type: azure-native:storagemover:Agent
properties:
agentName: string
arcResourceId: string
arcVmUuid: string
description: string
resourceGroupName: string
storageMoverName: string
Agent Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Agent resource accepts the following input properties:
- Arc
Resource stringId - The fully qualified resource ID of the Hybrid Compute resource for the Agent.
- Arc
Vm stringUuid - The VM UUID of the Hybrid Compute resource for the Agent.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Storage
Mover stringName - The name of the Storage Mover resource.
- Agent
Name string - The name of the Agent resource.
- Description string
- A description for the Agent.
- Arc
Resource stringId - The fully qualified resource ID of the Hybrid Compute resource for the Agent.
- Arc
Vm stringUuid - The VM UUID of the Hybrid Compute resource for the Agent.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Storage
Mover stringName - The name of the Storage Mover resource.
- Agent
Name string - The name of the Agent resource.
- Description string
- A description for the Agent.
- arc
Resource StringId - The fully qualified resource ID of the Hybrid Compute resource for the Agent.
- arc
Vm StringUuid - The VM UUID of the Hybrid Compute resource for the Agent.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- storage
Mover StringName - The name of the Storage Mover resource.
- agent
Name String - The name of the Agent resource.
- description String
- A description for the Agent.
- arc
Resource stringId - The fully qualified resource ID of the Hybrid Compute resource for the Agent.
- arc
Vm stringUuid - The VM UUID of the Hybrid Compute resource for the Agent.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- storage
Mover stringName - The name of the Storage Mover resource.
- agent
Name string - The name of the Agent resource.
- description string
- A description for the Agent.
- arc_
resource_ strid - The fully qualified resource ID of the Hybrid Compute resource for the Agent.
- arc_
vm_ struuid - The VM UUID of the Hybrid Compute resource for the Agent.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- storage_
mover_ strname - The name of the Storage Mover resource.
- agent_
name str - The name of the Agent resource.
- description str
- A description for the Agent.
- arc
Resource StringId - The fully qualified resource ID of the Hybrid Compute resource for the Agent.
- arc
Vm StringUuid - The VM UUID of the Hybrid Compute resource for the Agent.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- storage
Mover StringName - The name of the Storage Mover resource.
- agent
Name String - The name of the Agent resource.
- description String
- A description for the Agent.
Outputs
All input properties are implicitly available as output properties. Additionally, the Agent resource produces the following output properties:
- Agent
Status string - The Agent status.
- Agent
Version string - The Agent version.
- Error
Details Pulumi.Azure Native. Storage Mover. Outputs. Agent Properties Response Error Details - Id string
- The provider-assigned unique ID for this managed resource.
- Last
Status stringUpdate - The last updated time of the Agent status.
- Local
IPAddress string - Local IP address reported by the Agent.
- Memory
In doubleMB - Available memory reported by the Agent, in MB.
- Name string
- The name of the resource
- Number
Of doubleCores - Available compute cores reported by the Agent.
- Provisioning
State string - The provisioning state of this resource.
- System
Data Pulumi.Azure Native. Storage Mover. Outputs. System Data Response - Resource system metadata.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Uptime
In doubleSeconds - Uptime of the Agent in seconds.
- Agent
Status string - The Agent status.
- Agent
Version string - The Agent version.
- Error
Details AgentProperties Response Error Details - Id string
- The provider-assigned unique ID for this managed resource.
- Last
Status stringUpdate - The last updated time of the Agent status.
- Local
IPAddress string - Local IP address reported by the Agent.
- Memory
In float64MB - Available memory reported by the Agent, in MB.
- Name string
- The name of the resource
- Number
Of float64Cores - Available compute cores reported by the Agent.
- Provisioning
State string - The provisioning state of this resource.
- System
Data SystemData Response - Resource system metadata.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Uptime
In float64Seconds - Uptime of the Agent in seconds.
- agent
Status String - The Agent status.
- agent
Version String - The Agent version.
- error
Details AgentProperties Response Error Details - id String
- The provider-assigned unique ID for this managed resource.
- last
Status StringUpdate - The last updated time of the Agent status.
- local
IPAddress String - Local IP address reported by the Agent.
- memory
In DoubleMB - Available memory reported by the Agent, in MB.
- name String
- The name of the resource
- number
Of DoubleCores - Available compute cores reported by the Agent.
- provisioning
State String - The provisioning state of this resource.
- system
Data SystemData Response - Resource system metadata.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- uptime
In DoubleSeconds - Uptime of the Agent in seconds.
- agent
Status string - The Agent status.
- agent
Version string - The Agent version.
- error
Details AgentProperties Response Error Details - id string
- The provider-assigned unique ID for this managed resource.
- last
Status stringUpdate - The last updated time of the Agent status.
- local
IPAddress string - Local IP address reported by the Agent.
- memory
In numberMB - Available memory reported by the Agent, in MB.
- name string
- The name of the resource
- number
Of numberCores - Available compute cores reported by the Agent.
- provisioning
State string - The provisioning state of this resource.
- system
Data SystemData Response - Resource system metadata.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- uptime
In numberSeconds - Uptime of the Agent in seconds.
- agent_
status str - The Agent status.
- agent_
version str - The Agent version.
- error_
details AgentProperties Response Error Details - id str
- The provider-assigned unique ID for this managed resource.
- last_
status_ strupdate - The last updated time of the Agent status.
- local_
ip_ straddress - Local IP address reported by the Agent.
- memory_
in_ floatmb - Available memory reported by the Agent, in MB.
- name str
- The name of the resource
- number_
of_ floatcores - Available compute cores reported by the Agent.
- provisioning_
state str - The provisioning state of this resource.
- system_
data SystemData Response - Resource system metadata.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- uptime_
in_ floatseconds - Uptime of the Agent in seconds.
- agent
Status String - The Agent status.
- agent
Version String - The Agent version.
- error
Details Property Map - id String
- The provider-assigned unique ID for this managed resource.
- last
Status StringUpdate - The last updated time of the Agent status.
- local
IPAddress String - Local IP address reported by the Agent.
- memory
In NumberMB - Available memory reported by the Agent, in MB.
- name String
- The name of the resource
- number
Of NumberCores - Available compute cores reported by the Agent.
- provisioning
State String - The provisioning state of this resource.
- system
Data Property Map - Resource system metadata.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- uptime
In NumberSeconds - Uptime of the Agent in seconds.
Supporting Types
AgentPropertiesResponseErrorDetails, AgentPropertiesResponseErrorDetailsArgs
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
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/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0