Skip to main content

vw_replication_migration_items

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

Overview

Namevw_replication_migration_items
TypeView
Idazure.recovery_services_site_recovery.vw_replication_migration_items

Fields

See the SQL Definition (view DDL) for fields returned by this view.

SQL Definition

SELECT
id as id,
name as name,
location as location,
type as type,
JSON_EXTRACT(properties, '$.machineName') as "machine_name",
JSON_EXTRACT(properties, '$.policyId') as "policy_id",
JSON_EXTRACT(properties, '$.policyFriendlyName') as "policy_friendly_name",
JSON_EXTRACT(properties, '$.recoveryServicesProviderId') as "recovery_services_provider_id",
JSON_EXTRACT(properties, '$.replicationStatus') as "replication_status",
JSON_EXTRACT(properties, '$.migrationState') as "migration_state",
JSON_EXTRACT(properties, '$.migrationStateDescription') as "migration_state_description",
JSON_EXTRACT(properties, '$.lastTestMigrationTime') as "last_test_migration_time",
JSON_EXTRACT(properties, '$.lastTestMigrationStatus') as "last_test_migration_status",
JSON_EXTRACT(properties, '$.lastMigrationTime') as "last_migration_time",
JSON_EXTRACT(properties, '$.lastMigrationStatus') as "last_migration_status",
JSON_EXTRACT(properties, '$.testMigrateState') as "test_migrate_state",
JSON_EXTRACT(properties, '$.testMigrateStateDescription') as "test_migrate_state_description",
JSON_EXTRACT(properties, '$.health') as "health",
JSON_EXTRACT(properties, '$.healthErrors') as "health_errors",
JSON_EXTRACT(properties, '$.allowedOperations') as "allowed_operations",
JSON_EXTRACT(properties, '$.currentJob') as "current_job",
JSON_EXTRACT(properties, '$.criticalJobHistory') as "critical_job_history",
JSON_EXTRACT(properties, '$.eventCorrelationId') as "event_correlation_id",
JSON_EXTRACT(properties, '$.providerSpecificDetails') as "provider_specific_details",
subscriptionId,
resourceGroupName,
resourceName,
fabricName,
protectionContainerName,
migrationItemName
FROM azure.recovery_services_site_recovery.replication_migration_items
WHERE subscriptionId = 'replace-me' AND resourceGroupName = 'replace-me' AND resourceName = 'replace-me';