Skip to main content

agents

Creates, updates, deletes, gets or lists an agents resource.

Overview

Nameagents
TypeResource
Idazure.storage_mover.agents

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
agentStatusstringThe Agent status. Known values are: "Registering", "Offline", "Online", "Executing", "RequiresAttention", and "Unregistering". (Registering, Offline, Online, Executing, RequiresAttention, Unregistering)
agentVersionstringThe Agent version.
arcResourceIdstringThe fully qualified resource ID of the Hybrid Compute resource for the Agent. Required.
arcVmUuidstringThe VM UUID of the Hybrid Compute resource for the Agent. Required.
descriptionstringA description for the Agent.
errorDetailsobject:vartype error_details: ~azure.mgmt.storagemover.models.AgentPropertiesErrorDetails
lastStatusUpdatestring (date-time)The last updated time of the Agent status.
localIPAddressstringLocal IP address reported by the Agent.
memoryInMBintegerAvailable memory reported by the Agent, in MB.
numberOfCoresintegerAvailable compute cores reported by the Agent.
provisioningStatestringThe provisioning state of this resource. Known values are: "Succeeded", "Canceled", "Failed", and "Deleting". (Succeeded, Canceled, Failed, Deleting)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
timeZonestringThe agent's local time zone represented in Windows format.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
uploadLimitScheduleobjectThe WAN-link upload limit schedule that applies to any Job Run the agent executes. Data plane operations (migrating files) are affected. Control plane operations ensure seamless migration functionality and are not limited by this schedule. The schedule is interpreted with the agent's local time.
uptimeInSecondsintegerUptime of the Agent in seconds.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, storage_mover_name, agent_name, subscription_idGets an Agent resource.
listselectresource_group_name, storage_mover_name, subscription_idLists all Agents in a Storage Mover.
create_or_updateinsertresource_group_name, storage_mover_name, agent_name, subscription_id, propertiesCreates or updates an Agent resource, which references a hybrid compute machine that can run jobs.
updateupdateresource_group_name, storage_mover_name, agent_name, subscription_idCreates or updates an Agent resource.
create_or_updatereplaceresource_group_name, storage_mover_name, agent_name, subscription_id, propertiesCreates or updates an Agent resource, which references a hybrid compute machine that can run jobs.
deletedeleteresource_group_name, storage_mover_name, agent_name, subscription_idDeletes an Agent resource.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
agent_namestringThe name of the Agent resource. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
storage_mover_namestringThe name of the Storage Mover resource. Required.
subscription_idstring

SELECT examples

Gets an Agent resource.

SELECT
id,
name,
agentStatus,
agentVersion,
arcResourceId,
arcVmUuid,
description,
errorDetails,
lastStatusUpdate,
localIPAddress,
memoryInMB,
numberOfCores,
provisioningState,
systemData,
timeZone,
type,
uploadLimitSchedule,
uptimeInSeconds
FROM azure.storage_mover.agents
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND storage_mover_name = '{{ storage_mover_name }}' -- required
AND agent_name = '{{ agent_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates an Agent resource, which references a hybrid compute machine that can run jobs.

INSERT INTO azure.storage_mover.agents (
properties,
resource_group_name,
storage_mover_name,
agent_name,
subscription_id
)
SELECT
'{{ properties }}' /* required */,
'{{ resource_group_name }}',
'{{ storage_mover_name }}',
'{{ agent_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

UPDATE examples

Creates or updates an Agent resource.

UPDATE azure.storage_mover.agents
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND storage_mover_name = '{{ storage_mover_name }}' --required
AND agent_name = '{{ agent_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

REPLACE examples

Creates or updates an Agent resource, which references a hybrid compute machine that can run jobs.

REPLACE azure.storage_mover.agents
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND storage_mover_name = '{{ storage_mover_name }}' --required
AND agent_name = '{{ agent_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND properties = '{{ properties }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Deletes an Agent resource.

DELETE FROM azure.storage_mover.agents
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND storage_mover_name = '{{ storage_mover_name }}' --required
AND agent_name = '{{ agent_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;