Skip to main content

global_schedules

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

Overview

Nameglobal_schedules
TypeResource
Idazure.dev_test_labs.global_schedules

Fields

NameDatatypeDescription
idtextThe identifier of the resource.
nametextThe name of the resource.
created_datetextfield from the properties object
daily_recurrencetextfield from the properties object
hourly_recurrencetextfield from the properties object
locationtextThe location of the resource.
notification_settingstextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
statustextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextThe tags of the resource.
target_resource_idtextfield from the properties object
task_typetextfield from the properties object
time_zone_idtextfield from the properties object
typetextThe type of the resource.
unique_identifiertextfield from the properties object
weekly_recurrencetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTname, resourceGroupName, subscriptionIdGet schedule.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList schedules in a resource group.
list_by_subscriptionSELECTsubscriptionIdList schedules in a subscription.
create_or_updateINSERTname, resourceGroupName, subscriptionId, data__propertiesCreate or replace an existing schedule.
deleteDELETEname, resourceGroupName, subscriptionIdDelete schedule.
updateUPDATEname, resourceGroupName, subscriptionIdAllows modifying tags of schedules. All other properties will be ignored.
executeEXECname, resourceGroupName, subscriptionIdExecute a schedule. This operation can take a while to complete.
retargetEXECname, resourceGroupName, subscriptionIdUpdates a schedule's target resource Id. This operation can take a while to complete.

SELECT examples

List schedules in a subscription.

SELECT
id,
name,
created_date,
daily_recurrence,
hourly_recurrence,
location,
notification_settings,
provisioning_state,
resourceGroupName,
status,
subscriptionId,
tags,
target_resource_id,
task_type,
time_zone_id,
type,
unique_identifier,
weekly_recurrence
FROM azure.dev_test_labs.vw_global_schedules
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.dev_test_labs.global_schedules (
name,
resourceGroupName,
subscriptionId,
data__properties,
location,
tags,
properties
)
SELECT
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}'
;

UPDATE example

Updates a global_schedules resource.

/*+ update */
UPDATE azure.dev_test_labs.global_schedules
SET
tags = '{{ tags }}'
WHERE
name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified global_schedules resource.

/*+ delete */
DELETE FROM azure.dev_test_labs.global_schedules
WHERE name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';