Skip to main content

replication_extensions

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

Overview

Namereplication_extensions
TypeResource
Idazure.data_replication.replication_extensions

Fields

NameDatatypeDescription
idtextGets or sets the Id of the resource.
nametextGets or sets the name of the resource.
custom_propertiestextfield from the properties object
provisioning_statetextfield from the properties object
replicationExtensionNametextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
typetextGets or sets the type of the resource.
vaultNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTreplicationExtensionName, resourceGroupName, subscriptionId, vaultNameGets the details of the replication extension.
listSELECTresourceGroupName, subscriptionId, vaultNameGets the list of replication extensions in the given vault.
createINSERTreplicationExtensionName, resourceGroupName, subscriptionId, vaultName, data__propertiesCreates the replication extension in the given vault.
deleteDELETEreplicationExtensionName, resourceGroupName, subscriptionId, vaultNameDeletes the replication extension in the given vault.

SELECT examples

Gets the list of replication extensions in the given vault.

SELECT
id,
name,
custom_properties,
provisioning_state,
replicationExtensionName,
resourceGroupName,
subscriptionId,
system_data,
type,
vaultName
FROM azure.data_replication.vw_replication_extensions
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vaultName = '{{ vaultName }}';

INSERT example

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

/*+ create */
INSERT INTO azure.data_replication.replication_extensions (
replicationExtensionName,
resourceGroupName,
subscriptionId,
vaultName,
data__properties,
properties
)
SELECT
'{{ replicationExtensionName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ vaultName }}',
'{{ data__properties }}',
'{{ properties }}'
;

DELETE example

Deletes the specified replication_extensions resource.

/*+ delete */
DELETE FROM azure.data_replication.replication_extensions
WHERE replicationExtensionName = '{{ replicationExtensionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vaultName = '{{ vaultName }}';