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

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.
descriptionstringThe description of the schedule.
nextExecutionTimestringTimestamp when the next action will be executed in the corresponding schedule time zone.
nextRunActionstringNext action to be executed (Start or Stop).
scheduleListarraySchedule list. Required.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
timeZoneIdstringThe time zone of the schedule.
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
getselectresource_group_name, managed_instance_name, start_stop_schedule_name, subscription_idGets the managed instance's Start/Stop schedule.
list_by_instanceselectresource_group_name, managed_instance_name, subscription_idLists the managed instance's Start/Stop schedules.
create_or_updateinsertresource_group_name, managed_instance_name, start_stop_schedule_name, subscription_idCreates or updates the managed instance's Start/Stop schedule.
create_or_updatereplaceresource_group_name, managed_instance_name, start_stop_schedule_name, subscription_idCreates or updates the managed instance's Start/Stop schedule.
deletedeleteresource_group_name, managed_instance_name, start_stop_schedule_name, subscription_idDeletes the managed instance's Start/Stop schedule.

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
managed_instance_namestringThe name of the managed instance. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
start_stop_schedule_namestringName of the managed instance Start/Stop schedule. "default" Required.
subscription_idstring

SELECT examples

Gets the managed instance's Start/Stop schedule.

SELECT
id,
name,
description,
nextExecutionTime,
nextRunAction,
scheduleList,
systemData,
timeZoneId,
type
FROM azure.sql.start_stop_managed_instance_schedules
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND managed_instance_name = '{{ managed_instance_name }}' -- required
AND start_stop_schedule_name = '{{ start_stop_schedule_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates the managed instance's Start/Stop schedule.

INSERT INTO azure.sql.start_stop_managed_instance_schedules (
properties,
resource_group_name,
managed_instance_name,
start_stop_schedule_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ managed_instance_name }}',
'{{ start_stop_schedule_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

REPLACE examples

Creates or updates the managed instance's Start/Stop schedule.

REPLACE azure.sql.start_stop_managed_instance_schedules
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND managed_instance_name = '{{ managed_instance_name }}' --required
AND start_stop_schedule_name = '{{ start_stop_schedule_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Deletes the managed instance's Start/Stop schedule.

DELETE FROM azure.sql.start_stop_managed_instance_schedules
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND managed_instance_name = '{{ managed_instance_name }}' --required
AND start_stop_schedule_name = '{{ start_stop_schedule_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;