Skip to main content

replication_migration_items

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

Overview

Namereplication_migration_items
TypeResource
Idazure.recovery_services_site_recovery.replication_migration_items

Fields

NameDatatypeDescription
idtextResource Id
nametextResource Name
allowed_operationstextfield from the properties object
critical_job_historytextfield from the properties object
current_jobtextfield from the properties object
event_correlation_idtextfield from the properties object
fabricNametextfield from the properties object
healthtextfield from the properties object
health_errorstextfield from the properties object
last_migration_statustextfield from the properties object
last_migration_timetextfield from the properties object
last_test_migration_statustextfield from the properties object
last_test_migration_timetextfield from the properties object
locationtextResource Location
machine_nametextfield from the properties object
migrationItemNametextfield from the properties object
migration_statetextfield from the properties object
migration_state_descriptiontextfield from the properties object
policy_friendly_nametextfield from the properties object
policy_idtextfield from the properties object
protectionContainerNametextfield from the properties object
provider_specific_detailstextfield from the properties object
recovery_services_provider_idtextfield from the properties object
replication_statustextfield from the properties object
resourceGroupNametextfield from the properties object
resourceNametextfield from the properties object
subscriptionIdtextfield from the properties object
test_migrate_statetextfield from the properties object
test_migrate_state_descriptiontextfield from the properties object
typetextResource Type

Methods

NameAccessible byRequired ParamsDescription
getSELECTfabricName, migrationItemName, protectionContainerName, resourceGroupName, resourceName, subscriptionId
listSELECTresourceGroupName, resourceName, subscriptionId
list_by_replication_protection_containersSELECTfabricName, protectionContainerName, resourceGroupName, resourceName, subscriptionIdGets the list of ASR migration items in the protection container.
createINSERTfabricName, migrationItemName, protectionContainerName, resourceGroupName, resourceName, subscriptionId, data__propertiesThe operation to create an ASR migration item (enable migration).
deleteDELETEfabricName, migrationItemName, protectionContainerName, resourceGroupName, resourceName, subscriptionIdThe operation to delete an ASR migration item.
updateUPDATEfabricName, migrationItemName, protectionContainerName, resourceGroupName, resourceName, subscriptionIdThe operation to update the recovery settings of an ASR migration item.
migrateEXECfabricName, migrationItemName, protectionContainerName, resourceGroupName, resourceName, subscriptionId, data__propertiesThe operation to initiate migration of the item.
pause_replicationEXECfabricName, migrationItemName, protectionContainerName, resourceGroupName, resourceName, subscriptionId, data__propertiesThe operation to initiate pause replication of the item.
resume_replicationEXECfabricName, migrationItemName, protectionContainerName, resourceGroupName, resourceName, subscriptionId, data__propertiesThe operation to initiate resume replication of the item.
resyncEXECfabricName, migrationItemName, protectionContainerName, resourceGroupName, resourceName, subscriptionId, data__propertiesThe operation to resynchronize replication of an ASR migration item.
test_migrateEXECfabricName, migrationItemName, protectionContainerName, resourceGroupName, resourceName, subscriptionId, data__propertiesThe operation to initiate test migration of the item.
test_migrate_cleanupEXECfabricName, migrationItemName, protectionContainerName, resourceGroupName, resourceName, subscriptionId, data__propertiesThe operation to initiate test migrate cleanup.

SELECT examples

SELECT
id,
name,
allowed_operations,
critical_job_history,
current_job,
event_correlation_id,
fabricName,
health,
health_errors,
last_migration_status,
last_migration_time,
last_test_migration_status,
last_test_migration_time,
location,
machine_name,
migrationItemName,
migration_state,
migration_state_description,
policy_friendly_name,
policy_id,
protectionContainerName,
provider_specific_details,
recovery_services_provider_id,
replication_status,
resourceGroupName,
resourceName,
subscriptionId,
test_migrate_state,
test_migrate_state_description,
type
FROM azure.recovery_services_site_recovery.vw_replication_migration_items
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.recovery_services_site_recovery.replication_migration_items (
fabricName,
migrationItemName,
protectionContainerName,
resourceGroupName,
resourceName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ fabricName }}',
'{{ migrationItemName }}',
'{{ protectionContainerName }}',
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;

UPDATE example

Updates a replication_migration_items resource.

/*+ update */
UPDATE azure.recovery_services_site_recovery.replication_migration_items
SET
properties = '{{ properties }}'
WHERE
fabricName = '{{ fabricName }}'
AND migrationItemName = '{{ migrationItemName }}'
AND protectionContainerName = '{{ protectionContainerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified replication_migration_items resource.

/*+ delete */
DELETE FROM azure.recovery_services_site_recovery.replication_migration_items
WHERE fabricName = '{{ fabricName }}'
AND migrationItemName = '{{ migrationItemName }}'
AND protectionContainerName = '{{ protectionContainerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';