Skip to main content

change_data_capture

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

Overview

Namechange_data_capture
TypeResource
Idazure.data_factory.change_data_capture

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.
allowVNetOverridebooleanA boolean to determine if the vnet configuration needs to be overwritten.
descriptionstringThe description of the change data capture.
etagstring"If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.").
folderobjectThe folder that this CDC is in. If not specified, CDC will appear at the root level.
policyobjectCDC policy. Required.
sourceConnectionsInfoarrayList of sources connections that can be used as sources in the CDC. Required.
statusstringStatus of the CDC as to if it is running or stopped.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
targetConnectionsInfoarrayList of target connections that can be used as sources in the CDC. Required.
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, factory_name, change_data_capture_name, subscription_idGets a change data capture.
list_by_factoryselectresource_group_name, factory_name, subscription_idLists all resources of type change data capture.
create_or_updateinsertresource_group_name, factory_name, change_data_capture_name, subscription_id, propertiesCreates or updates a change data capture resource.
create_or_updatereplaceresource_group_name, factory_name, change_data_capture_name, subscription_id, propertiesCreates or updates a change data capture resource.
deletedeleteresource_group_name, factory_name, change_data_capture_name, subscription_idDeletes a change data capture.
startexecresource_group_name, factory_name, change_data_capture_name, subscription_idStarts a change data capture.
stopexecresource_group_name, factory_name, change_data_capture_name, subscription_idStops a change data capture.
statusexecresource_group_name, factory_name, change_data_capture_name, subscription_idGets the current status for the change data capture resource.

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
change_data_capture_namestringThe change data capture name. Required.
factory_namestringThe factory name. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Gets a change data capture.

SELECT
id,
name,
allowVNetOverride,
description,
etag,
folder,
policy,
sourceConnectionsInfo,
status,
systemData,
targetConnectionsInfo,
type
FROM azure.data_factory.change_data_capture
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND factory_name = '{{ factory_name }}' -- required
AND change_data_capture_name = '{{ change_data_capture_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates a change data capture resource.

INSERT INTO azure.data_factory.change_data_capture (
properties,
resource_group_name,
factory_name,
change_data_capture_name,
subscription_id
)
SELECT
'{{ properties }}' /* required */,
'{{ resource_group_name }}',
'{{ factory_name }}',
'{{ change_data_capture_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
properties,
systemData,
type
;

REPLACE examples

Creates or updates a change data capture resource.

REPLACE azure.data_factory.change_data_capture
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND factory_name = '{{ factory_name }}' --required
AND change_data_capture_name = '{{ change_data_capture_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND properties = '{{ properties }}' --required
RETURNING
id,
name,
etag,
properties,
systemData,
type;

DELETE examples

Deletes a change data capture.

DELETE FROM azure.data_factory.change_data_capture
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND factory_name = '{{ factory_name }}' --required
AND change_data_capture_name = '{{ change_data_capture_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Starts a change data capture.

EXEC azure.data_factory.change_data_capture.start 
@resource_group_name='{{ resource_group_name }}' --required,
@factory_name='{{ factory_name }}' --required,
@change_data_capture_name='{{ change_data_capture_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;