Start-​Azs​Storage​Container​Migration

Starts the operation to migrate containers to the specified destination share and returns the job ID.

Syntax

Start-AzsStorageContainerMigration
     -ContainerToMigrate <Container>
     -DestinationShareUncPath <String>
     [-SkipCertificateValidation]
     [<CommonParameters>]

Description

The Start-AzsStorageContainerMigration cmdlet starts the operation to migrate containers to the specified destination share and returns the job ID. This cmdlet is available for Azure Stack multi-node instances only.

Examples

Example 1

$Shares = Get-AzsStorageShare

$containers = Get-AzsStorageContainer -ShareName $shares[0].ShareName -Count 4 -Intent Migration 

$DestinationShare = Get-AzsStorageShare -SourceShareName $Shares[0].ShareName 

$jobId = Start-AzsStorageContainerMigration -ContainerToMigrate $containers[1] -DestinationShareUncPath $DestinationShare.UncPath 
 }}

Required Parameters

-ContainerToMigrate

Specifies the Azs container that this cmdlet migrates.

Type:Container
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-DestinationShareUncPath

Specifies the share to which the container gets migrated.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-SkipCertificateValidation

Indicates that the cmdlet does not validate the certificate.

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