Skip to main content

workflows

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

Overview

Nameworkflows
TypeResource
Idazure.storage_sync.workflows

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.
commandNamestringworkflow command name.
createdTimestampstring (date-time)workflow created timestamp.
lastOperationIdstringworkflow last operation identifier.
lastStatusTimestampstring (date-time)workflow last status timestamp.
lastStepNamestringlast step name.
operationstringoperation direction. Known values are: "do", "undo", and "cancel".
statusstringworkflow status. Known values are: "active", "expired", "succeeded", "aborted", and "failed".
stepsstringworkflow steps.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, storage_sync_service_name, workflow_id, subscription_idGet Workflows resource.
list_by_storage_sync_serviceselectresource_group_name, storage_sync_service_name, subscription_idGet a Workflow List.
abortexecresource_group_name, storage_sync_service_name, workflow_id, subscription_idAbort the given workflow.

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
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
storage_sync_service_namestringName of Storage Sync Service resource. Required.
subscription_idstring
workflow_idstringworkflow Id. Required.

SELECT examples

Get Workflows resource.

SELECT
id,
name,
commandName,
createdTimestamp,
lastOperationId,
lastStatusTimestamp,
lastStepName,
operation,
status,
steps,
systemData,
type
FROM azure.storage_sync.workflows
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND storage_sync_service_name = '{{ storage_sync_service_name }}' -- required
AND workflow_id = '{{ workflow_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

Lifecycle Methods

Abort the given workflow.

EXEC azure.storage_sync.workflows.abort 
@resource_group_name='{{ resource_group_name }}' --required,
@storage_sync_service_name='{{ storage_sync_service_name }}' --required,
@workflow_id='{{ workflow_id }}' --required,
@subscription_id='{{ subscription_id }}' --required
;