Skip to main content

managed_instance_dtcs

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

Overview

Namemanaged_instance_dtcs
TypeResource
Idazure.sql.managed_instance_dtcs

Fields

NameDatatypeDescription
dtcNametextfield from the properties object
dtc_enabledtextfield from the properties object
dtc_host_name_dns_suffixtextfield from the properties object
external_dns_suffix_search_listtextfield from the properties object
managedInstanceNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
security_settingstextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdtcName, managedInstanceName, resourceGroupName, subscriptionIdGets managed instance DTC settings.
create_or_updateINSERTdtcName, managedInstanceName, resourceGroupName, subscriptionIdUpdates managed instance DTC settings.

SELECT examples

Gets managed instance DTC settings.

SELECT
dtcName,
dtc_enabled,
dtc_host_name_dns_suffix,
external_dns_suffix_search_list,
managedInstanceName,
provisioning_state,
resourceGroupName,
security_settings,
subscriptionId
FROM azure.sql.vw_managed_instance_dtcs
WHERE dtcName = '{{ dtcName }}'
AND managedInstanceName = '{{ managedInstanceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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