Skip to main content

time_zones

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

Overview

Nametime_zones
TypeResource
Idazure.sql.time_zones

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.
displayNamestringThe time zone display name.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
timeZoneIdstringThe time zone id.
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
getselectlocation_name, time_zone_id, subscription_idGets a managed instance time zone.
list_by_locationselectlocation_name, subscription_idGets a list of managed instance time zones by location.

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
location_namestringThe location of the database. Required.
subscription_idstring
time_zone_idstringThe time zone ID. Required.

SELECT examples

Gets a managed instance time zone.

SELECT
id,
name,
displayName,
systemData,
timeZoneId,
type
FROM azure.sql.time_zones
WHERE location_name = '{{ location_name }}' -- required
AND time_zone_id = '{{ time_zone_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;