Start-AzMigrateHCIServerMigration
Inicia a migração para o servidor de replicação.
Sintaxe
Start-AzMigrateHCIServerMigration
-TargetObjectID <String>
[-TurnOffSourceServer]
[-SubscriptionId <String>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Start-AzMigrateHCIServerMigration
[-TurnOffSourceServer]
[-SubscriptionId <String>]
-InputObject <IMigrateIdentity>
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Inicia a migração para o servidor de replicação.
Exemplos
Exemplo 1: iniciar a migração por Id
Start-AzMigrateHCIServerMigration -TargetObjectID "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/test-rg/providers/Microsoft.DataReplication/replicationVaults/testproj1234replicationvault/protectedItems/0ec082d5-6827-457a-bae2-f986e1b94851"
ActivityId : ActivityId: 00000000-0000-0000-0000-000000000000
AllowedAction : {Cancel}
CustomPropertyAffectedObjectDetail : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api2021
0216Preview.WorkflowModelCustomPropertiesAffectedObjectDe
tails
CustomPropertyInstanceType : FailoverWorkflowDetails
DisplayName : Planned failover
EndTime :
Error : {}
Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/test-rg/providers/Microsoft.DataReplication
/replicationVaults/testproj1234replicationvault/jobs/af0e1bf6-e3e6-482c-8345-b1a06d87af96
Name : af0e1bf6-e3e6-482c-8345-b1a06d87af96
ObjectId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/test-rg/providers/Microsoft.DataReplication
/replicationVaults/testproj1234replicationvault/protectedItems/0ec082d5-6827-457a-bae2-f986e1b94851/plannedFai
lover
ObjectInternalId : a8b5ee68-102c-5aae-9499-c57a475a8fc4
ObjectInternalName : testmachine
ObjectName : 0ec082d5-6827-457a-bae2-f986e1b94851
ObjectType : ProtectedItem
ReplicationProviderId : 4de0fddc-bdfe-40d9-b60e-678bdce89630
SourceFabricProviderId : b35da11c-d69e-4220-9a90-d81ed93ad2fc
StartTime : 8/1/2023 12:42:19 AM
State : Started
SystemDataCreatedAt :
SystemDataCreatedBy :
SystemDataCreatedByType :
SystemDataLastModifiedAt :
SystemDataLastModifiedBy :
SystemDataLastModifiedByType :
Tag : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api2021
0216Preview.WorkflowModelTags
TargetFabricProviderId : 22f00372-a1b7-467f-87ce-d95e17a6e7c7
Task : {Prerequisite check, Turning off resource on primary,
Starting failover, Preparing protected entities...}
Type : Microsoft.DataReplication/replicationVaults/jobs
Inicie a migração do servidor AzStackHCI por Id.
Exemplo 2: iniciar a migração por objeto de entrada
$InputObject = Get-AzMigrateHCIServerReplication -TargetObjectID "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/test-rg/providers/Microsoft.DataReplication/replicationVaults/testproj1234replicationvault/protectedItems/0ec082d5-6827-457a-bae2-f986e1b94851"
Start-AzMigrateHCIServerMigration -InputObject $InputObject
$InputObject | Start-AzMigrateHCIServerMigration
ActivityId : ActivityId: 00000000-0000-0000-0000-000000000000
AllowedAction : {Cancel}
CustomPropertyAffectedObjectDetail : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api2021
0216Preview.WorkflowModelCustomPropertiesAffectedObjectDe
tails
CustomPropertyInstanceType : FailoverWorkflowDetails
DisplayName : Planned failover
EndTime :
Error : {}
Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/test-rg/providers/Microsoft.DataReplication
/replicationVaults/testproj1234replicationvault/jobs/af0e1bf6-e3e6-482c-8345-b1a06d87af96
Name : af0e1bf6-e3e6-482c-8345-b1a06d87af96
ObjectId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/test-rg/providers/Microsoft.DataReplication
/replicationVaults/testproj1234replicationvault/protectedItems/0ec082d5-6827-457a-bae2-f986e1b94851/plannedFai
lover
ObjectInternalId : a8b5ee68-102c-5aae-9499-c57a475a8fc4
ObjectInternalName : testmachine
ObjectName : 0ec082d5-6827-457a-bae2-f986e1b94851
ObjectType : ProtectedItem
ReplicationProviderId : 4de0fddc-bdfe-40d9-b60e-678bdce89630
SourceFabricProviderId : b35da11c-d69e-4220-9a90-d81ed93ad2fc
StartTime : 8/1/2023 12:42:19 AM
State : Started
SystemDataCreatedAt :
SystemDataCreatedBy :
SystemDataCreatedByType :
SystemDataLastModifiedAt :
SystemDataLastModifiedBy :
SystemDataLastModifiedByType :
Tag : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api2021
0216Preview.WorkflowModelTags
TargetFabricProviderId : 22f00372-a1b7-467f-87ce-d95e17a6e7c7
Task : {Prerequisite check, Turning off resource on primary,
Starting failover, Preparing protected entities...}
Type : Microsoft.DataReplication/replicationVaults/jobs
Inicie a migração do servidor AzStackHCI por objeto de entrada de replicação.
Parâmetros
-Confirm
Solicita a confirmação antes de executar o cmdlet.
Tipo: | SwitchParameter |
Aliases: | cf |
Cargo: | Named |
Valor padrão: | None |
Obrigatório: | False |
Aceitar a entrada de pipeline: | False |
Aceitar caracteres curinga: | False |
-DefaultProfile
As credenciais, a conta, o locatário e a assinatura usados para comunicação com o Azure.
Tipo: | PSObject |
Aliases: | AzureRMContext, AzureCredential |
Cargo: | Named |
Valor padrão: | None |
Obrigatório: | False |
Aceitar a entrada de pipeline: | False |
Aceitar caracteres curinga: | False |
-InputObject
Especifica o servidor de replicação para o qual a migração precisa ser iniciada. O objeto de servidor pode ser recuperado usando o cmdlet Get-AzMigrateHCIServerReplication. Para construir, consulte a seção NOTES para propriedades INPUTOBJECT e crie uma tabela de hash.
Tipo: | IMigrateIdentity |
Cargo: | Named |
Valor padrão: | None |
Obrigatório: | True |
Aceitar a entrada de pipeline: | True |
Aceitar caracteres curinga: | False |
-SubscriptionId
ID da Assinatura do Azure.
Tipo: | String |
Cargo: | Named |
Valor padrão: | (Get-AzContext).Subscription.Id |
Obrigatório: | False |
Aceitar a entrada de pipeline: | False |
Aceitar caracteres curinga: | False |
-TargetObjectID
Especifica o servidor de replcação para o qual a migração precisa ser iniciada. A ID deve ser recuperada usando o cmdlet Get-AzMigrateHCIServerReplication.
Tipo: | String |
Cargo: | Named |
Valor padrão: | None |
Obrigatório: | True |
Aceitar a entrada de pipeline: | False |
Aceitar caracteres curinga: | False |
-TurnOffSourceServer
Especifica se o servidor de origem deve ser desativado após a migração.
Tipo: | SwitchParameter |
Cargo: | Named |
Valor padrão: | None |
Obrigatório: | False |
Aceitar a entrada de pipeline: | False |
Aceitar caracteres curinga: | False |
-WhatIf
Mostra o que aconteceria se o cmdlet fosse executado. O cmdlet não é executado.
Tipo: | SwitchParameter |
Aliases: | wi |
Cargo: | Named |
Valor padrão: | None |
Obrigatório: | False |
Aceitar a entrada de pipeline: | False |
Aceitar caracteres curinga: | False |
Entradas
Saídas
Azure PowerShell