Skip to main content

task_assignments

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

Overview

Nametask_assignments
TypeResource
Idazure.storage.task_assignments

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
nametextThe name of the resource
descriptiontextfield from the properties object
accountNametextfield from the properties object
enabledtextfield from the properties object
execution_contexttextfield from the properties object
provisioning_statetextfield from the properties object
reporttextfield from the properties object
resourceGroupNametextfield from the properties object
run_statustextfield from the properties object
storageTaskAssignmentNametextfield from the properties object
subscriptionIdtextfield from the properties object
task_idtextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, resourceGroupName, storageTaskAssignmentName, subscriptionIdGet the storage task assignment properties
listSELECTaccountName, resourceGroupName, subscriptionIdList all the storage task assignments in an account
createINSERTaccountName, resourceGroupName, storageTaskAssignmentName, subscriptionId, data__propertiesAsynchronously creates a new storage task assignment sub-resource with the specified parameters. If a storage task assignment is already created and a subsequent create request is issued with different properties, the storage task assignment properties will be updated. If a storage task assignment is already created and a subsequent create or update request is issued with the exact same set of properties, the request will succeed.
deleteDELETEaccountName, resourceGroupName, storageTaskAssignmentName, subscriptionIdDelete the storage task assignment sub-resource
updateUPDATEaccountName, resourceGroupName, storageTaskAssignmentName, subscriptionIdUpdate storage task assignment properties

SELECT examples

List all the storage task assignments in an account

SELECT
id,
name,
description,
accountName,
enabled,
execution_context,
provisioning_state,
report,
resourceGroupName,
run_status,
storageTaskAssignmentName,
subscriptionId,
task_id,
type
FROM azure.storage.vw_task_assignments
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.storage.task_assignments (
accountName,
resourceGroupName,
storageTaskAssignmentName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ accountName }}',
'{{ resourceGroupName }}',
'{{ storageTaskAssignmentName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;

UPDATE example

Updates a task_assignments resource.

/*+ update */
UPDATE azure.storage.task_assignments
SET
properties = '{{ properties }}'
WHERE
accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND storageTaskAssignmentName = '{{ storageTaskAssignmentName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified task_assignments resource.

/*+ delete */
DELETE FROM azure.storage.task_assignments
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND storageTaskAssignmentName = '{{ storageTaskAssignmentName }}'
AND subscriptionId = '{{ subscriptionId }}';