Skip to main content

drills

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

Overview

Namedrills
TypeResource
Idazure.resilience_management.drills

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.
attentionReasonobjectAttention reason if the ReadinessState is 'NeedsAttention'.
chaosResourcePropertiesobjectChaos Resource properties.
drillAssetPropertiesobjectProperties for internal resources that are created for the Drill.
drillTypestringThe discriminator for the Drill object hierarchy. Required. Known values are: "Zonal" and "Regional".
errorDetailsobjectError details associated with the resource.
executionReadinessStatestringReadiness state of the Drill. Known values are: "Ready" and "NeedsAttention". (Ready, NeedsAttention)
executionStatestringExecution state of the Drill. Whether it is currently running or not. Known values are: "NotRunning", "Running", and "Paused". (NotRunning, Running, Paused)
identityobjectThe managed service identities assigned to this resource.
lastResyncReadinessCheckTimestring (date-time)Last resync and readiness check time.
lastRunPropertiesobjectLast run properties.
lastSyncTimestring (date-time)Last sync time.
managedOnBehalfOfConfigurationobjectManaged RG v2 properties.
monitoringPropertiesobjectMonitoring properties of the Drill.
provisioningStatestringStatus of the last operation. Known values are: "Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted". (Succeeded, Failed, Canceled, Provisioning, Updating, Deleting, Accepted)
rbacSetupModestringRBAC setup mode. Known values are: "AutomatedCustomRole", "AutomatedBuiltinRoles", and "Manual". (AutomatedCustomRole, AutomatedBuiltinRoles, Manual)
recoveryPlanPropertiesobjectROPlan properties.
serviceGroupIdstringParent SG resource.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
systemMetadataobjectInternal System Metadata, to be used by internal components only.
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
getselectservice_group_name, drill_nameGet a Drill.
listselectservice_group_name$skipToken, $topList Drill resources by tenant.
createinsertservice_group_name, drill_nameCreate a Drill.
updateupdateservice_group_name, drill_nameUpdate a Drill.
deletedeleteservice_group_name, drill_nameDelete a Drill.
validate_for_executionexecservice_group_name, drill_name, operation-idThis returns eligible resource to be faulted or failed over.
startexecservice_group_name, drill_name, operation-id, modeThis starts a new running instance of the Drill.
endexecservice_group_name, drill_name, operation-id, attestation, attestationNotesThis ends the currently running instance of the Drill.
add_or_update_resourcesexecservice_group_name, drill_name, operation-id, faultDurationInMinThis enables the user to include, exclude or update resources from their Drill.
resync_readiness_checkexecservice_group_name, drill_name, operation-idThis triggers detection of any drifts from the desired state of Resources and RBAC.

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.
operation-idstringA GUID that represents the Long Running OperationId. Required.
service_group_namestringThe name of the service group. Required.
$skipTokenstringSkip over when retrieving results. Default value is None.
$topintegerNumber of elements to return when retrieving results. Default value is None.

SELECT examples

Get a Drill.

SELECT
id,
name,
attentionReason,
chaosResourceProperties,
drillAssetProperties,
drillType,
errorDetails,
executionReadinessState,
executionState,
identity,
lastResyncReadinessCheckTime,
lastRunProperties,
lastSyncTime,
managedOnBehalfOfConfiguration,
monitoringProperties,
provisioningState,
rbacSetupMode,
recoveryPlanProperties,
serviceGroupId,
systemData,
systemMetadata,
type
FROM azure.resilience_management.drills
WHERE service_group_name = '{{ service_group_name }}' -- required
AND drill_name = '{{ drill_name }}' -- required
;

INSERT examples

Create a Drill.

INSERT INTO azure.resilience_management.drills (
properties,
identity,
service_group_name,
drill_name
)
SELECT
'{{ properties }}',
'{{ identity }}',
'{{ service_group_name }}',
'{{ drill_name }}'
RETURNING
id,
name,
identity,
properties,
systemData,
type
;

UPDATE examples

Update a Drill.

UPDATE azure.resilience_management.drills
SET
identity = '{{ identity }}',
properties = '{{ properties }}'
WHERE
service_group_name = '{{ service_group_name }}' --required
AND drill_name = '{{ drill_name }}' --required;

DELETE examples

Delete a Drill.

DELETE FROM azure.resilience_management.drills
WHERE service_group_name = '{{ service_group_name }}' --required
AND drill_name = '{{ drill_name }}' --required
;

Lifecycle Methods

This returns eligible resource to be faulted or failed over.

EXEC azure.resilience_management.drills.validate_for_execution 
@service_group_name='{{ service_group_name }}' --required,
@drill_name='{{ drill_name }}' --required,
@operation-id='{{ operation-id }}' --required
@@json=
'{
"validateForExecutionProperties": "{{ validateForExecutionProperties }}"
}'
;