Remove-AzMigrateHCIServerReplication
Stops replication for the migrated server.
Syntax
ByID (Standardwert)
Remove-AzMigrateHCIServerReplication
-TargetObjectID <String>
[-SubscriptionId <String>]
[-ForceRemove <String>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Remove-AzMigrateHCIServerReplication
-InputObject <IMigrateIdentity>
[-SubscriptionId <String>]
[-ForceRemove <String>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Beschreibung
The Remove-AzMigrateHCIServerReplication cmdlet stops the replication for a migrated server.
Beispiele
Example 1: Remove replication by Id
Remove-AzMigrateHCIServerReplication -TargetObjectID "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/test-rg/providers/Microsoft.DataReplication/replicationVaults/testproj1234replicationvault/protectedItems/00001111-aaaa-2222-bbbb-3333cccc4444"
ActivityId : ActivityId: 00000000-0000-0000-0000-000000000000
AllowedAction : {Cancel}
CustomPropertyAffectedObjectDetail : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210216Preview.WorkflowModelCustomPropertiesAffectedObjectDetails
CustomPropertyInstanceType : WorkflowDetails
DisplayName : Delete protected item
EndTime :
Error : {}
Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/test-rg/providers/Microsoft.DataReplication/replicationVaults/testproj1234replicationvault/jobs/2b0b356e-d106-43af-ad26-02631fcaebba
Name : 2b0b356e-d106-43af-ad26-02631fcaebba
ObjectId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/test-rg/providers/Microsoft.DataReplication/replicationVaults/testproj1234replicationvault/protectedItems/aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb
ObjectInternalId : a40ecd8e-6413-574d-b1f8-2ef925e087fc
ObjectInternalName : testmachine
ObjectName : aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb
ObjectType : ProtectedItem
ReplicationProviderId : 4de0fddc-bdfe-40d9-b60e-678bdce89630
SourceFabricProviderId : b35da11c-d69e-4220-9a90-d81ed93ad2fc
StartTime : 7/25/2023 10:14:42 PM
State : Started
SystemDataCreatedAt :
SystemDataCreatedBy :
SystemDataCreatedByType :
SystemDataLastModifiedAt :
SystemDataLastModifiedBy :
SystemDataLastModifiedByType :
Tag : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210216Preview.WorkflowModelTags
TargetFabricProviderId : 22f00372-a1b7-467f-87ce-d95e17a6e7c7
Task : {Prerequisite check, Deleting protected item}
Type : Microsoft.DataReplication/replicationVaults/jobs
Remove AzStackHCI replication by Id.
$InputObject = Get-AzMigrateHCIServerReplication -TargetObjectID "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/test-rg/providers/Microsoft.DataReplication/replicationVaults/testproj1234replicationvault/protectedItems/00001111-aaaa-2222-bbbb-3333cccc4444"
Remove-AzMigrateHCIServerReplication -InputObject $InputObject
$InputObject | Remove-AzMigrateHCIServerReplication
ActivityId : ActivityId: 00000000-0000-0000-0000-000000000000
AllowedAction : {Cancel}
CustomPropertyAffectedObjectDetail : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210216Preview.WorkflowModelCustomPropertiesAffectedObjectDetails
CustomPropertyInstanceType : WorkflowDetails
DisplayName : Delete protected item
EndTime :
Error : {}
Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/test-rg/providers/Microsoft.DataReplication/replicationVaults/testproj1234replicationvault/jobs/2b0b356e-d106-43af-ad26-02631fcaebba
Name : 2b0b356e-d106-43af-ad26-02631fcaebba
ObjectId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/test-rg/providers/Microsoft.DataReplication/replicationVaults/testproj1234replicationvault/protectedItems/aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb
ObjectInternalId : a40ecd8e-6413-574d-b1f8-2ef925e087fc
ObjectInternalName : testmachine
ObjectName : aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb
ObjectType : ProtectedItem
ReplicationProviderId : 4de0fddc-bdfe-40d9-b60e-678bdce89630
SourceFabricProviderId : b35da11c-d69e-4220-9a90-d81ed93ad2fc
StartTime : 7/25/2023 10:14:42 PM
State : Started
SystemDataCreatedAt :
SystemDataCreatedBy :
SystemDataCreatedByType :
SystemDataLastModifiedAt :
SystemDataLastModifiedBy :
SystemDataLastModifiedByType :
Tag : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210216Preview.WorkflowModelTags
TargetFabricProviderId : 22f00372-a1b7-467f-87ce-d95e17a6e7c7
Task : {Prerequisite check, Deleting protected item}
Type : Microsoft.DataReplication/replicationVaults/jobs
Remove AzStackHCI replication by replication input object.
Parameter
-Confirm
Prompts you for confirmation before running the cmdlet.
Parametereigenschaften
Typ: SwitchParameter
Standardwert: None
Unterstützt Platzhalter: False
Nicht anzeigen: False
Aliase: cf
Parametersätze
(All)
Position: Named
Obligatorisch.: False
Wert aus Pipeline: False
Wert aus Pipeline nach dem Eigenschaftsnamen: False
Wert aus verbleibenden Argumenten: False
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Parametereigenschaften
Typ: PSObject
Standardwert: None
Unterstützt Platzhalter: False
Nicht anzeigen: False
Aliase: AzureRMContext, AzureCredential
Parametersätze
(All)
Position: Named
Obligatorisch.: False
Wert aus Pipeline: False
Wert aus Pipeline nach dem Eigenschaftsnamen: False
Wert aus verbleibenden Argumenten: False
-ForceRemove
Specifies whether the replication needs to be force removed.
Default to "false".
Parametereigenschaften
Typ: String
Standardwert: None
Unterstützt Platzhalter: False
Nicht anzeigen: False
Parametersätze
(All)
Position: Named
Obligatorisch.: False
Wert aus Pipeline: False
Wert aus Pipeline nach dem Eigenschaftsnamen: False
Wert aus verbleibenden Argumenten: False
Specifies the replicating server for which the replication needs to be disabled.
The server object can be retrieved using the Get-AzMigrateHCIServerReplication cmdlet.
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
Typ: IMigrateIdentity
Standardwert: None
Unterstützt Platzhalter: False
Nicht anzeigen: False
ByInputObject
Position: Named
Obligatorisch.: True
Wert aus Pipeline: True
Wert aus Pipeline nach dem Eigenschaftsnamen: False
Wert aus verbleibenden Argumenten: False
-SubscriptionId
Azure Subscription ID.
Parametereigenschaften
Typ: String
Standardwert: (Get-AzContext).Subscription.Id
Unterstützt Platzhalter: False
Nicht anzeigen: False
Parametersätze
(All)
Position: Named
Obligatorisch.: False
Wert aus Pipeline: False
Wert aus Pipeline nach dem Eigenschaftsnamen: False
Wert aus verbleibenden Argumenten: False
-TargetObjectID
Specifies the replicating server for which the replication needs to be disabled.
The ID should be retrieved using the Get-AzMigrateHCIServerReplication cmdlet.
Parametereigenschaften
Typ: String
Standardwert: None
Unterstützt Platzhalter: False
Nicht anzeigen: False
Parametersätze
ByID
Position: Named
Obligatorisch.: True
Wert aus Pipeline: False
Wert aus Pipeline nach dem Eigenschaftsnamen: False
Wert aus verbleibenden Argumenten: False
-WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
Parametereigenschaften
Typ: SwitchParameter
Standardwert: None
Unterstützt Platzhalter: False
Nicht anzeigen: False
Aliase: wi
Parametersätze
(All)
Position: Named
Obligatorisch.: False
Wert aus Pipeline: False
Wert aus Pipeline nach dem Eigenschaftsnamen: False
Wert aus verbleibenden Argumenten: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters .
Ausgaben