Confirm-AzureStorSimpleLegacyVolumeContainerStatus

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

Note

The cmdlets referenced in this documentation are for managing legacy Azure resources that use Azure Service Manager (ASM) APIs. This legacy PowerShell module isn't recommended when creating new resources since ASM is scheduled for retirement. For more information, see Azure Service Manager retirement.

The Az PowerShell module is the recommended PowerShell module for managing Azure Resource Manager (ARM) resources with PowerShell.

Syntax

Confirm-AzureStorSimpleLegacyVolumeContainerStatus
       -LegacyConfigId <String>
       -MigrationOperation <String>
       -LegacyContainerNames <String[]>
       [-Profile <AzureSMProfile>]
       [<CommonParameters>]
Confirm-AzureStorSimpleLegacyVolumeContainerStatus
       -LegacyConfigId <String>
       -MigrationOperation <String>
       [-All]
       [-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.

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
Required:True
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
Required:True
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
Required:True
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
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-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
Required:False
Accept pipeline input:False
Accept wildcard characters:False