Replication Migration Items - Migrate
Migrate item.
The operation to initiate migration of the item.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationMigrationItems/{migrationItemName}/migrate?api-version=2024-10-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
fabric
|
path | True |
string |
Fabric name. |
migration
|
path | True |
string |
Migration item name. |
protection
|
path | True |
string |
Protection container name. |
resource
|
path | True |
string |
The name of the resource group where the recovery services vault is present. |
resource
|
path | True |
string |
The name of the recovery services vault. |
subscription
|
path | True |
string |
The subscription Id. |
api-version
|
query | True |
string |
Client Api Version. |
Request Body
Name | Required | Type | Description |
---|---|---|---|
properties | True |
Migrate input properties. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK |
|
202 Accepted |
Accepted |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account. |
Examples
Migrate item.
Sample request
POST https://management.azure.com/subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationFabrics/vmwarefabric1/replicationProtectionContainers/vmwareContainer1/replicationMigrationItems/virtualmachine1/migrate?api-version=2024-10-01
{
"properties": {
"providerSpecificDetails": {
"instanceType": "VMwareCbt",
"performShutdown": "true"
}
}
}
Sample response
Azure-AsyncOperation: https://management.azure.com/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationOperationStatus/a93f3cd5-9035-4b1e-a2c9-b16df6d5d34b?api-version=2024-10-01
{
"id": "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationFabrics/vmwarefabric1/replicationProtectionContainers/vmwareContainer1/replicationMigrationItems/virtualmachine1",
"name": "virtualmachine1",
"type": "Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems",
"properties": {
"machineName": "vm-0520-2",
"migrationState": "Replicating",
"migrationStateDescription": "Ready to migrate",
"testMigrateState": "None",
"testMigrateStateDescription": "None",
"policyFriendlyName": "vmwarepolicy1",
"policyId": "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationPolicies/vmwarepolicy1",
"allowedOperations": [
"Migrate",
"DisableMigration",
"TestMigrate",
"TestMigrateCleanup"
],
"currentJob": {
"jobName": "None",
"jobId": "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationJobs/None",
"startTime": "2017-04-26T06:37:50.8082715Z"
},
"providerSpecificDetails": {
"instanceType": "VMwareCbt"
}
}
}
Azure-AsyncOperation: https://management.azure.com/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationOperationStatus/a93f3cd5-9035-4b1e-a2c9-b16df6d5d34b?api-version=2024-10-01
Retry-After: 30
Definitions
Name | Description |
---|---|
Appliance |
Appliance details of the migration item. |
Appliance |
Details of the appliance resource. |
Critical |
Critical past job details of the migration item. |
Current |
Current job details of the migration item. |
Data |
Details of the appliance resource. |
Disk |
The disk type. |
Ethernet |
The source IP address type. |
Gateway |
Details of the gateway operation. |
Health |
Health Error. |
Health |
Value indicating whether the health error is customer resolvable. |
Inner |
Implements InnerHealthError class. HealthError object has a list of InnerHealthErrors as child errors. InnerHealthError is used because this will prevent an infinite loop of structures when Hydra tries to auto-generate the contract. We are exposing the related health errors as inner health errors and all API consumers can utilize this in the same fashion as Exception -> InnerException. |
Linux |
The license type for Linux VM's. |
Managed |
Managed RunCommand script input |
Migrate |
Input for migrate. |
Migrate |
Migrate input properties. |
Migration |
Migration item. |
Migration |
The allowed operations on the migration item based on the current migration state of the item. |
Migration |
Migration item properties. |
Migration |
The migration status. |
Protection |
The health. |
Resync |
The resync state. |
Security |
The target VM security type. |
Test |
The test migrate state. |
VMware |
VMwareCbt specific migrate input. |
VMware |
VMwareCbt provider specific settings. |
VMware |
VMwareCbt NIC details. |
VMware |
VMwareCbt protected disk details. |
VMware |
VMwareCbt security profile input. |
ApplianceMonitoringDetails
Appliance details of the migration item.
Name | Type | Description |
---|---|---|
cpuDetails |
The appliance CPU details. |
|
datastoreSnapshot |
The appliance datastore snapshot details. |
|
disksReplicationDetails |
The disk replication details. |
|
esxiNfcBuffer |
The ESXi NFC buffer details. |
|
networkBandwidth |
The appliance network bandwidth details. |
|
ramDetails |
The appliance RAM details. |
ApplianceResourceDetails
Details of the appliance resource.
Name | Type | Description |
---|---|---|
capacity |
integer (int64) |
A value indicating the total capacity of appliance resource. |
processUtilization |
number (double) |
A value indicating the utilization percentage by gateway agent on appliance. |
status |
string |
A value indicating the status of appliance resource. |
totalUtilization |
number (double) |
A value indicating the total utilization percentage for all processes on the appliance. |
CriticalJobHistoryDetails
Critical past job details of the migration item.
Name | Type | Description |
---|---|---|
jobId |
string |
The ARM Id of the job being executed. |
jobName |
string |
The job name. |
jobStatus |
string |
The job state. |
startTime |
string (date-time) |
The start time of the job. |
CurrentJobDetails
Current job details of the migration item.
Name | Type | Description |
---|---|---|
jobId |
string |
The ARM Id of the job being executed. |
jobName |
string |
The job name. |
startTime |
string (date-time) |
The start time of the job. |
DataStoreUtilizationDetails
Details of the appliance resource.
Name | Type | Description |
---|---|---|
dataStoreName |
string |
The datastore name. |
totalSnapshotsCreated |
integer (int64) |
The total snapshots created for server migration in the datastore. |
totalSnapshotsSupported |
integer (int64) |
The total count of snapshots supported by the datastore. |
DiskAccountType
The disk type.
Value | Description |
---|---|
Standard_LRS | |
Premium_LRS | |
StandardSSD_LRS | |
PremiumV2_LRS | |
UltraSSD_LRS | |
StandardSSD_ZRS | |
Premium_ZRS |
EthernetAddressType
The source IP address type.
Value | Description |
---|---|
Dynamic | |
Static |
GatewayOperationDetails
Details of the gateway operation.
Name | Type | Description |
---|---|---|
dataStores |
string[] |
A value indicating the datastore collection. |
hostName |
string |
A value indicating the ESXi host name. |
progressPercentage |
integer (int32) |
A value indicating the progress percentage of gateway operation. |
state |
string |
A value indicating the state of gateway operation. |
timeElapsed |
integer (int64) |
A value indicating the time elapsed for the operation in milliseconds. |
timeRemaining |
integer (int64) |
A value indicating the time remaining for the operation in milliseconds. |
uploadSpeed |
integer (int64) |
A value indicating the upload speed in bytes per second. |
vmwareReadThroughput |
integer (int64) |
A value indicating the VMware read throughput in bytes per second. |
HealthError
Health Error.
Name | Type | Description |
---|---|---|
creationTimeUtc |
string (date-time) |
Error creation time (UTC). |
customerResolvability |
Value indicating whether the health error is customer resolvable. |
|
entityId |
string |
ID of the entity. |
errorCategory |
string |
Category of error. |
errorCode |
string |
Error code. |
errorId |
string |
The health error unique id. |
errorLevel |
string |
Level of error. |
errorMessage |
string |
Error message. |
errorSource |
string |
Source of error. |
errorType |
string |
Type of error. |
innerHealthErrors |
The inner health errors. HealthError having a list of HealthError as child errors is problematic. InnerHealthError is used because this will prevent an infinite loop of structures when Hydra tries to auto-generate the contract. We are exposing the related health errors as inner health errors and all API consumers can utilize this in the same fashion as Exception -> InnerException. |
|
possibleCauses |
string |
Possible causes of error. |
recommendedAction |
string |
Recommended action to resolve error. |
recoveryProviderErrorMessage |
string |
DRA error message. |
summaryMessage |
string |
Summary message of the entity. |
HealthErrorCustomerResolvability
Value indicating whether the health error is customer resolvable.
Value | Description |
---|---|
Allowed | |
NotAllowed |
InnerHealthError
Implements InnerHealthError class. HealthError object has a list of InnerHealthErrors as child errors. InnerHealthError is used because this will prevent an infinite loop of structures when Hydra tries to auto-generate the contract. We are exposing the related health errors as inner health errors and all API consumers can utilize this in the same fashion as Exception -> InnerException.
Name | Type | Description |
---|---|---|
creationTimeUtc |
string (date-time) |
Error creation time (UTC). |
customerResolvability |
Value indicating whether the health error is customer resolvable. |
|
entityId |
string |
ID of the entity. |
errorCategory |
string |
Category of error. |
errorCode |
string |
Error code. |
errorId |
string |
The health error unique id. |
errorLevel |
string |
Level of error. |
errorMessage |
string |
Error message. |
errorSource |
string |
Source of error. |
errorType |
string |
Type of error. |
possibleCauses |
string |
Possible causes of error. |
recommendedAction |
string |
Recommended action to resolve error. |
recoveryProviderErrorMessage |
string |
DRA error message. |
summaryMessage |
string |
Summary message of the entity. |
LinuxLicenseType
The license type for Linux VM's.
Value | Description |
---|---|
NotSpecified | |
NoLicenseType | |
LinuxServer |
ManagedRunCommandScriptInput
Managed RunCommand script input
Name | Type | Description |
---|---|---|
scriptParameters |
string |
The script parameters. |
scriptUrl |
string |
The script url. |
stepName |
string |
The step name. |
MigrateInput
Input for migrate.
Name | Type | Description |
---|---|---|
properties |
Migrate input properties. |
MigrateInputProperties
Migrate input properties.
Name | Type | Description |
---|---|---|
providerSpecificDetails | MigrateProviderSpecificInput: |
The provider specific details. |
MigrationItem
Migration item.
Name | Type | Description |
---|---|---|
id |
string |
Resource Id |
location |
string |
Resource Location |
name |
string |
Resource Name |
properties |
The migration item properties. |
|
type |
string |
Resource Type |
MigrationItemOperation
The allowed operations on the migration item based on the current migration state of the item.
Value | Description |
---|---|
DisableMigration | |
TestMigrate | |
TestMigrateCleanup | |
Migrate | |
StartResync | |
PauseReplication | |
ResumeReplication |
MigrationItemProperties
Migration item properties.
Name | Type | Description |
---|---|---|
allowedOperations |
The allowed operations on the migration item based on the current migration state of the item. |
|
criticalJobHistory |
The critical past job details. |
|
currentJob |
The current job details. |
|
eventCorrelationId |
string |
The correlation Id for events associated with this migration item. |
health |
The consolidated health. |
|
healthErrors |
The list of health errors. |
|
lastMigrationStatus |
string |
The status of the last migration. |
lastMigrationTime |
string (date-time) |
The last migration time. |
lastTestMigrationStatus |
string |
The status of the last test migration. |
lastTestMigrationTime |
string (date-time) |
The last test migration time. |
machineName |
string |
The on-premise virtual machine name. |
migrationState |
The migration status. |
|
migrationStateDescription |
string |
The migration state description. |
policyFriendlyName |
string |
The name of policy governing this item. |
policyId |
string |
The ARM Id of policy governing this item. |
providerSpecificDetails | MigrationProviderSpecificSettings: |
The migration provider custom settings. |
recoveryServicesProviderId |
string |
The recovery services provider ARM Id. |
replicationStatus |
string |
The replication status. |
testMigrateState |
The test migrate state. |
|
testMigrateStateDescription |
string |
The test migrate state description. |
MigrationState
The migration status.
Value | Description |
---|---|
None | |
EnableMigrationInProgress | |
EnableMigrationFailed | |
DisableMigrationInProgress | |
DisableMigrationFailed | |
InitialSeedingInProgress | |
InitialSeedingFailed | |
Replicating | |
MigrationInProgress | |
MigrationSucceeded | |
MigrationFailed | |
ResumeInProgress | |
ResumeInitiated | |
SuspendingProtection | |
ProtectionSuspended | |
MigrationCompletedWithInformation | |
MigrationPartiallySucceeded |
ProtectionHealth
The health.
Value | Description |
---|---|
None | |
Normal | |
Warning | |
Critical |
ResyncState
The resync state.
Value | Description |
---|---|
None | |
PreparedForResynchronization | |
StartedResynchronization |
SecurityType
The target VM security type.
Value | Description |
---|---|
None | |
TrustedLaunch | |
ConfidentialVM |
TestMigrationState
The test migrate state.
Value | Description |
---|---|
None | |
TestMigrationInProgress | |
TestMigrationSucceeded | |
TestMigrationFailed | |
TestMigrationCleanupInProgress | |
TestMigrationCompletedWithInformation | |
TestMigrationPartiallySucceeded |
VMwareCbtMigrateInput
VMwareCbt specific migrate input.
Name | Type | Description |
---|---|---|
instanceType |
string:
VMware |
The class type. |
osUpgradeVersion |
string |
A value indicating the inplace OS Upgrade version. |
performShutdown |
string |
A value indicating whether VM is to be shutdown. |
postMigrationSteps |
The managed run command script input. |
VMwareCbtMigrationDetails
VMwareCbt provider specific settings.
Name | Type | Description |
---|---|---|
applianceMonitoringDetails |
A value indicating the appliance monitoring details. |
|
confidentialVmKeyVaultId |
string |
The confidential VM key vault Id for ADE installation. |
dataMoverRunAsAccountId |
string |
The data mover run as account Id. |
deltaSyncProgressPercentage |
integer (int32) |
The delta sync progress percentage. |
deltaSyncRetryCount |
integer (int64) |
The delta sync retry count. |
firmwareType |
string |
The firmware type. |
gatewayOperationDetails |
A value indicating the gateway operation details. |
|
initialSeedingProgressPercentage |
integer (int32) |
The initial seeding progress percentage. |
initialSeedingRetryCount |
integer (int64) |
The initial seeding retry count. |
instanceType |
string:
VMware |
Gets the instance type. |
isCheckSumResyncCycle |
string |
A value indicating whether checksum resync cycle is in progress. |
lastRecoveryPointId |
string |
The last recovery point Id. |
lastRecoveryPointReceived |
string (date-time) |
The last recovery point received time. |
licenseType |
string |
License Type of the VM to be used. |
linuxLicenseType |
The license type for Linux VM's. |
|
migrationProgressPercentage |
integer (int32) |
The migration progress percentage. |
migrationRecoveryPointId |
string |
The recovery point Id to which the VM was migrated. |
operationName |
string |
A value indicating the SRS operation name. |
osName |
string |
The name of the OS on the VM. |
osType |
string |
The type of the OS on the VM. |
performAutoResync |
string |
A value indicating whether auto resync is to be done. |
protectedDisks |
The list of protected disks. |
|
resumeProgressPercentage |
integer (int32) |
The resume progress percentage. |
resumeRetryCount |
integer (int64) |
The resume retry count. |
resyncProgressPercentage |
integer (int32) |
The resync progress percentage. |
resyncRequired |
string |
A value indicating whether resync is required. |
resyncRetryCount |
integer (int64) |
The resync retry count. |
resyncState |
The resync state. |
|
seedDiskTags |
object |
The tags for the seed disks. |
snapshotRunAsAccountId |
string |
The snapshot run as account Id. |
sqlServerLicenseType |
string |
The SQL Server license type. |
storageAccountId |
string |
The replication storage account ARM Id. This is applicable only for the blob based replication test hook. |
supportedOSVersions |
string[] |
A value indicating the inplace OS Upgrade version. |
targetAvailabilitySetId |
string |
The target availability set Id. |
targetAvailabilityZone |
string |
The target availability zone. |
targetBootDiagnosticsStorageAccountId |
string |
The target boot diagnostics storage account ARM Id. |
targetDiskTags |
object |
The tags for the target disks. |
targetGeneration |
string |
The target generation. |
targetLocation |
string |
The target location. |
targetNetworkId |
string |
The target network Id. |
targetNicTags |
object |
The tags for the target NICs. |
targetProximityPlacementGroupId |
string |
The target proximity placement group Id. |
targetResourceGroupId |
string |
The target resource group Id. |
targetVmName |
string |
Target VM name. |
targetVmSecurityProfile |
The target VM security profile. |
|
targetVmSize |
string |
The target VM size. |
targetVmTags |
object |
The target VM tags. |
testNetworkId |
string |
The test network Id. |
vmNics |
The network details. |
|
vmwareMachineId |
string |
The ARM Id of the VM discovered in VMware. |
VMwareCbtNicDetails
VMwareCbt NIC details.
Name | Type | Description |
---|---|---|
isPrimaryNic |
string |
A value indicating whether this is the primary NIC. |
isSelectedForMigration |
string |
A value indicating whether this NIC is selected for migration. |
nicId |
string |
The NIC Id. |
sourceIPAddress |
string |
The source IP address. |
sourceIPAddressType |
The source IP address type. |
|
sourceNetworkId |
string |
Source network Id. |
targetIPAddress |
string |
The target IP address. |
targetIPAddressType |
The target IP address type. |
|
targetNicName |
string |
Target NIC name. |
targetSubnetName |
string |
Target subnet name. |
testIPAddress |
string |
The test IP address. |
testIPAddressType |
The test IP address type. |
|
testNetworkId |
string |
Source network Id. |
testSubnetName |
string |
Test subnet name. |
VMwareCbtProtectedDiskDetails
VMwareCbt protected disk details.
Name | Type | Description |
---|---|---|
capacityInBytes |
integer (int64) |
The disk capacity in bytes. |
diskEncryptionSetId |
string |
The DiskEncryptionSet ARM Id. |
diskId |
string |
The disk id. |
diskName |
string |
The disk name. |
diskPath |
string |
The disk path. |
diskType |
The disk type. |
|
gatewayOperationDetails |
A value indicating the gateway operation details. |
|
isOSDisk |
string |
A value indicating whether the disk is the OS disk. |
logStorageAccountId |
string |
The log storage account ARM Id. |
logStorageAccountSasSecretName |
string |
The key vault secret name of the log storage account. |
sectorSizeInBytes |
integer (int32) |
The logical sector size (in bytes), 512 by default. |
seedBlobUri |
string |
The uri of the seed blob. |
seedManagedDiskId |
string |
The ARM Id of the seed managed disk. |
targetBlobUri |
string |
The uri of the target blob. |
targetDiskName |
string |
The name for the target managed disk. |
targetManagedDiskId |
string |
The ARM Id of the target managed disk. |
VMwareCbtSecurityProfileProperties
VMwareCbt security profile input.
Name | Type | Description |
---|---|---|
isTargetVmConfidentialEncryptionEnabled |
string |
A value indicating whether confidential compute encryption to be enabled. |
isTargetVmIntegrityMonitoringEnabled |
string |
A value indicating whether integrity monitoring to be enabled. |
isTargetVmSecureBootEnabled |
string |
A value indicating whether secure boot to be enabled. |
isTargetVmTpmEnabled |
string |
A value indicating whether trusted platform module to be enabled. |
targetVmSecurityType |
The target VM security type. |