Skip to main content

drill_runs

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

Overview

Namedrill_runs
TypeResource
Idazure.resilience_management.drill_runs

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.
attestationstringAttestation of this Drill Run. Known values are: "Success" and "Failed". (Success, Failed)
currentActiveOperationIdstringThe currently active operationID on this Drill Run. There can be only one active.
drillIdstringParent Drill resource.
drillModestringDrill mode. "Failover" (Failover)
durationstringThe time elapsed during the execution of this job.
endTimestring (date-time)The end time of the job execution.
errorDetailsobjectDetails of any errors that occurred during the execution of this job.
executionConfigurationsobjectExecution configurations for the job.
jobExtendedInfoobjectAdditional information about the job.
jobTypestringDiscriminator for the Job object hierarchy. Required. Drill Oober job which represents a given instance of Drill.
notesarrayNotes for this Drill.
operationstringThe operation that this job is intended to perform.
resourceIdstringThe resource for which this job was created. This is typically the resource that the job is intended to manage or operate on.
retryDetailsarrayDetails of any retries that have been attempted for this job.
startTimestring (date-time)The start time of the job execution.
statusstringThe current status of the job execution. Known values are: "NotApplicable", "NotStarted", "Pending", "InProgress", "Completed", "CompletedWithWarnings", "Failed", "Skipped", "Cancelling", "Cancelled", and "Paused". (NotApplicable, NotStarted, Pending, InProgress, Completed, CompletedWithWarnings, Failed, Skipped, Cancelling, Cancelled, Paused)
supportedVerbsForStagearrayMatrix of Actions supported on Operations.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
triggeredBystringIndicates whether the job was triggered by the system or a user. Known values are: "System" and "User". (System, User)
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
userCommentsarrayUser Comments.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_group_name, drill_name, drill_run_nameGet a DrillRun.
listselectservice_group_name, drill_nameList DrillRun resources by Drill.
fail_overexecservice_group_name, drill_name, drill_run_name, operation-id, autoFailover, failoverPropertiesThis initiates a new Failover operation on this Drill Run.
reprotectexecservice_group_name, drill_name, drill_run_name, operation-idThis initiates a new Reprotect operation on this Drill Run.
add_notesexecservice_group_name, drill_name, drill_run_name, operation-idThis enables the user to add notes on this Drill Run.
resumeexecservice_group_name, drill_name, drill_run_name, operation-idThis unblocks a Failover workflow that is paused after the Fault stage, to proceed to the Failover stage.
mark_as_completeexecservice_group_name, drill_name, drill_run_name, operation-id, drillRunStageThis enables the user to mark this stage as complete, disabling further retries on it.

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
drill_namestringThe name of the Drill. Required.
drill_run_namestringThe name of the DrillRun (GUID). Required.
operation-idstringA GUID that represents the Long Running OperationId. Required.
service_group_namestringThe name of the service group. Required.

SELECT examples

Get a DrillRun.

SELECT
id,
name,
attestation,
currentActiveOperationId,
drillId,
drillMode,
duration,
endTime,
errorDetails,
executionConfigurations,
jobExtendedInfo,
jobType,
notes,
operation,
resourceId,
retryDetails,
startTime,
status,
supportedVerbsForStage,
systemData,
triggeredBy,
type,
userComments
FROM azure.resilience_management.drill_runs
WHERE service_group_name = '{{ service_group_name }}' -- required
AND drill_name = '{{ drill_name }}' -- required
AND drill_run_name = '{{ drill_run_name }}' -- required
;

Lifecycle Methods

This initiates a new Failover operation on this Drill Run.

EXEC azure.resilience_management.drill_runs.fail_over 
@service_group_name='{{ service_group_name }}' --required,
@drill_name='{{ drill_name }}' --required,
@drill_run_name='{{ drill_run_name }}' --required,
@operation-id='{{ operation-id }}' --required
@@json=
'{
"autoFailover": "{{ autoFailover }}",
"failoverProperties": "{{ failoverProperties }}"
}'
;