Skip to main content

agents

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

Overview

Nameagents
TypeResource
Idazure.storage_mover.agents

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
agentNametextfield from the properties object
agent_statustextfield from the properties object
agent_versiontextfield from the properties object
arc_resource_idtextfield from the properties object
arc_vm_uuidtextfield from the properties object
error_detailstextfield from the properties object
last_status_updatetextfield from the properties object
local_ip_addresstextfield from the properties object
memory_in_mbtextfield from the properties object
number_of_corestextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
storageMoverNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
time_zonetextfield from the properties object
upload_limit_scheduletextfield from the properties object
uptime_in_secondstextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTagentName, resourceGroupName, storageMoverName, subscriptionIdGets an Agent resource.
listSELECTresourceGroupName, storageMoverName, subscriptionIdLists all Agents in a Storage Mover.
create_or_updateINSERTagentName, resourceGroupName, storageMoverName, subscriptionId, data__propertiesCreates or updates an Agent resource, which references a hybrid compute machine that can run jobs.
deleteDELETEagentName, resourceGroupName, storageMoverName, subscriptionIdDeletes an Agent resource.
updateUPDATEagentName, resourceGroupName, storageMoverName, subscriptionIdCreates or updates an Agent resource.

SELECT examples

Lists all Agents in a Storage Mover.

SELECT
description,
agentName,
agent_status,
agent_version,
arc_resource_id,
arc_vm_uuid,
error_details,
last_status_update,
local_ip_address,
memory_in_mb,
number_of_cores,
provisioning_state,
resourceGroupName,
storageMoverName,
subscriptionId,
system_data,
time_zone,
upload_limit_schedule,
uptime_in_seconds
FROM azure.storage_mover.vw_agents
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND storageMoverName = '{{ storageMoverName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new agents resource.

/*+ create */
INSERT INTO azure.storage_mover.agents (
agentName,
resourceGroupName,
storageMoverName,
subscriptionId,
data__properties,
properties,
systemData
)
SELECT
'{{ agentName }}',
'{{ resourceGroupName }}',
'{{ storageMoverName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}',
'{{ systemData }}'
;

UPDATE example

Updates a agents resource.

/*+ update */
UPDATE azure.storage_mover.agents
SET
properties = '{{ properties }}'
WHERE
agentName = '{{ agentName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND storageMoverName = '{{ storageMoverName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified agents resource.

/*+ delete */
DELETE FROM azure.storage_mover.agents
WHERE agentName = '{{ agentName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND storageMoverName = '{{ storageMoverName }}'
AND subscriptionId = '{{ subscriptionId }}';