Confirm-​Azure​Stor​Simple​Legacy​Volume​Container​Status

Initiates the commit or rollback of the volume containers that are migrated.

Syntax

Confirm-AzureStorSimpleLegacyVolumeContainerStatus
       [-All]
       -LegacyConfigId <String>
       -MigrationOperation <String>
       [-Profile <AzureSMProfile>]
       [<CommonParameters>]
Confirm-AzureStorSimpleLegacyVolumeContainerStatus
       -LegacyConfigId <String>
       -LegacyContainerNames <String[]>
       -MigrationOperation <String>
       [-Profile <AzureSMProfile>]
       [<CommonParameters>]

Description

The Confirm-AzureStorSimpleLegacyVolumeContainerStatus cmdlet initiates the commit or rollback of the volume containers that are migrated as part of a legacy migration. The rollback restores the appliance to the original ownership. The commit assigns the ownership to the target appliance.

Examples

Example 1: Initiate a commit operation on a specific volume container

PS C:\>Confirm-AzureStorSimpleLegacyVolumeContainerStatus -LegacyConfigId "c5a831e1-7888-44f4-adf1-92994be630c3" -LegacyContainerNames "OneSDKAzureCloud" -MigrationOperation Commit
Please check the commit/discard status using Get-AzureStorSimpleLegacyVolumeContainerConfirmStatus

This command initiates a commit operation on the specified volume container for the specified legacy configuration ID. To see the status of the operation, use the Get-AzureStorSimpleLegacyVolumeContainerStatus cmdlet.

Example 2: Initiate a rollback operation on a specific volume container

PS C:\>Confirm-AzureStorSimpleLegacyVolumeContainerStatus -LegacyConfigId "c5a831e1-7888-44f4-adf1-92994be630c3" -LegacyContainerNames "OneSDKAzureCloud" -MigrationOperation Rollback
Please check the commit/discard status using Get-AzureStorSimpleLegacyVolumeContainerConfirmStatus

This command initiates a rollback operation on the specified volume container for the specified legacy configuration ID.

Example 3: Initiate a commit operation on all volume containers

PS C:\>Confirm-AzureStorSimpleLegacyVolumeContainerStatus -LegacyConfigId "c5a831e1-7888-44f4-adf1-92994be630c3" -MigrationOperation Commit -All
Please check the commit/discard status using Get-AzureStorSimpleLegacyVolumeContainerConfirmStatus

This command initiates a commit operation on all volume container for the specified legacy configuration ID.

Example 4: Initiate a rollback operation on all volume containers

PS C:\>Confirm-AzureStorSimpleLegacyVolumeContainerStatus -LegacyConfigId "c5a831e1-7888-44f4-adf1-92994be630c3" -MigrationOperation Rollback -All
Please check the commit/discard status using Get-AzureStorSimpleLegacyVolumeContainerConfirmStatus

This command initiates a rollback operation on all volume containers for the specified legacy configuration ID.

Required Parameters

-All

Indicates that this cmdlet initiates a roll back or commit operation on all volume containers in the imported configuration file.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-LegacyConfigId

Specifies the unique ID of the configuration of the legacy appliance.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-LegacyContainerNames

Specifies an array of volume container names for which the migration plan applies.

Type:String[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-MigrationOperation

Specifies whether this cmdlet performs a commit or rollback. Valid values are: Commit and Rollback.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Profile

Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.

Type:AzureSMProfile
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False