Skip to main content

service_fabric_schedules

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

Overview

Nameservice_fabric_schedules
TypeResource
Idazure.dev_test_labs.service_fabric_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
labNametextfield 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
serviceFabricNametextfield 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
userNametextfield from the properties object
weekly_recurrencetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTlabName, name, resourceGroupName, serviceFabricName, subscriptionId, userNameGet schedule.
listSELECTlabName, resourceGroupName, serviceFabricName, subscriptionId, userNameList schedules in a given service fabric.
create_or_updateINSERTlabName, name, resourceGroupName, serviceFabricName, subscriptionId, userName, data__propertiesCreate or replace an existing schedule.
deleteDELETElabName, name, resourceGroupName, serviceFabricName, subscriptionId, userNameDelete schedule.
updateUPDATElabName, name, resourceGroupName, serviceFabricName, subscriptionId, userNameAllows modifying tags of schedules. All other properties will be ignored.
executeEXEClabName, name, resourceGroupName, serviceFabricName, subscriptionId, userNameExecute a schedule. This operation can take a while to complete.

SELECT examples

List schedules in a given service fabric.

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

INSERT example

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

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

UPDATE example

Updates a service_fabric_schedules resource.

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

DELETE example

Deletes the specified service_fabric_schedules resource.

/*+ delete */
DELETE FROM azure.dev_test_labs.service_fabric_schedules
WHERE labName = '{{ labName }}'
AND name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceFabricName = '{{ serviceFabricName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND userName = '{{ userName }}';