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:

Successfully retrieved the Start/Stop schedule.

NameDatatypeDescription
propertiesobjectResource properties.
systemDataobjectSystem data of the scheduled resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, managedInstanceName, startStopScheduleName, subscriptionIdGets the managed instance's Start/Stop schedule.
create_or_updateinsertresourceGroupName, managedInstanceName, startStopScheduleName, subscriptionIdCreates or updates the managed instance's Start/Stop schedule.
deletedeleteresourceGroupName, managedInstanceName, startStopScheduleName, subscriptionIdDeletes 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
managedInstanceNamestringThe name of the managed instance.
resourceGroupNamestringThe name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
startStopScheduleNamestringName of the managed instance Start/Stop schedule.
subscriptionIdstringThe subscription ID that identifies an Azure subscription.

SELECT examples

Gets the managed instance's Start/Stop schedule.

SELECT
properties,
systemData
FROM azure.sql.start_stop_managed_instance_schedules
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND managedInstanceName = '{{ managedInstanceName }}' -- required
AND startStopScheduleName = '{{ startStopScheduleName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

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

INSERT INTO azure.sql.start_stop_managed_instance_schedules (
data__properties,
resourceGroupName,
managedInstanceName,
startStopScheduleName,
subscriptionId
)
SELECT
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ managedInstanceName }}',
'{{ startStopScheduleName }}',
'{{ subscriptionId }}'
RETURNING
properties,
systemData
;

DELETE examples

Deletes the managed instance's Start/Stop schedule.

DELETE FROM azure.sql.start_stop_managed_instance_schedules
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND managedInstanceName = '{{ managedInstanceName }}' --required
AND startStopScheduleName = '{{ startStopScheduleName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;