Skip to main content

start_stop_managed_instance_schedules

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

Overview

Namestart_stop_managed_instance_schedules
TypeResource
Idazure.sql.start_stop_managed_instance_schedules

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
managedInstanceNametextfield from the properties object
next_execution_timetextfield from the properties object
next_run_actiontextfield from the properties object
resourceGroupNametextfield from the properties object
schedule_listtextfield from the properties object
startStopScheduleNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
time_zone_idtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTmanagedInstanceName, resourceGroupName, startStopScheduleName, subscriptionIdGets the managed instance's Start/Stop schedule.
create_or_updateINSERTmanagedInstanceName, resourceGroupName, startStopScheduleName, subscriptionIdCreates or updates the managed instance's Start/Stop schedule.
deleteDELETEmanagedInstanceName, resourceGroupName, startStopScheduleName, subscriptionIdDeletes the managed instance's Start/Stop schedule.

SELECT examples

Gets the managed instance's Start/Stop schedule.

SELECT
description,
managedInstanceName,
next_execution_time,
next_run_action,
resourceGroupName,
schedule_list,
startStopScheduleName,
subscriptionId,
system_data,
time_zone_id
FROM azure.sql.vw_start_stop_managed_instance_schedules
WHERE managedInstanceName = '{{ managedInstanceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND startStopScheduleName = '{{ startStopScheduleName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.sql.start_stop_managed_instance_schedules (
managedInstanceName,
resourceGroupName,
startStopScheduleName,
subscriptionId,
properties
)
SELECT
'{{ managedInstanceName }}',
'{{ resourceGroupName }}',
'{{ startStopScheduleName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified start_stop_managed_instance_schedules resource.

/*+ delete */
DELETE FROM azure.sql.start_stop_managed_instance_schedules
WHERE managedInstanceName = '{{ managedInstanceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND startStopScheduleName = '{{ startStopScheduleName }}'
AND subscriptionId = '{{ subscriptionId }}';