Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Start-AzureStorageBlobCopy

Start-AzureStorageBlobCopy

microsoft.windowsazure.commands.storage.dll

Synopsis

Start a copy operation to the specified destination blob.

Syntax

Start-AzureStorageBlobCopy [-SrcBlob] [-SrcContainer] [-DestContainer] [-DestBlob] [-Context] [-DestContext] [-Force] [-ServerTimeoutPerRequest] [-ClientTimeoutPerRequest] [-ConcurrentTaskCount] [<CommonParameters>]

Start-AzureStorageBlobCopy [-ICloudBlob] [-DestICloudBlob] [-Context] [-DestContext] [-Force] [-ServerTimeoutPerRequest] [-ClientTimeoutPerRequest] [-ConcurrentTaskCount] [<CommonParameters>]

Start-AzureStorageBlobCopy [-ICloudBlob] [-DestContainer] [-DestBlob] [-Context] [-DestContext] [-Force] [-ServerTimeoutPerRequest] [-ClientTimeoutPerRequest] [-ConcurrentTaskCount] [<CommonParameters>]

Start-AzureStorageBlobCopy [-CloudBlobContainer] [-SrcBlob] [-DestContainer] [-DestBlob] [-Context] [-DestContext] [-Force] [-ServerTimeoutPerRequest] [-ClientTimeoutPerRequest] [-ConcurrentTaskCount] [<CommonParameters>]

Start-AzureStorageBlobCopy [-AbsoluteUri] [-DestContainer] [-DestBlob] [-Context] [-DestContext] [-Force] [-ServerTimeoutPerRequest] [-ClientTimeoutPerRequest] [-ConcurrentTaskCount] [<CommonParameters>]

Detailed Description

Start a copy operation to the specified destination blob.

Parameters

-SrcBlob <String>

Source blob name.

Aliases

None

Required?

true

Position

0

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-SrcContainer <String>

Source container name.

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-DestContainer <String>

Destination container name.

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-DestBlob <String>

Destination blob name.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Context <AzureStorageContext>

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-DestContext <AzureStorageContext>

Destination Azure Storage Context. You can create it by New-AzureStorageContext cmdlet.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Force <SwitchParameter>

Force to overwrite the destination blob without confirmation.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-ServerTimeoutPerRequest <Nullable`1[Int32]>

Server side time out for each request.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-ClientTimeoutPerRequest <Nullable`1[Int32]>

Client side time out for each request.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-ConcurrentTaskCount <Nullable`1[Int32]>

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-ICloudBlob <ICloudBlob>

ICloudBlob object from Azure Storage Client library. You can create it or use Get-AzureStorageBlob cmdlet.

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-DestICloudBlob <ICloudBlob>

Destination ICloudBlob object

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-CloudBlobContainer <CloudBlobContainer>

CloudBlobContainer object from Azure Storage Client library. You can create it or use Get-AzureStorageContainer cmdlet.

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-AbsoluteUri <String>

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-PipelineVariable <string>

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

-------------------------- Start copy operation by name. --------------------------

PS C:\> Start-CopyAzureStorageContainer -SrcContainer container1 -SrcBlob blob1 -DestContainer container2

-------------------------- Start copy operation using container pipeline from GetAzureStorageContainer. --------------------------

PS C:\> Get-AzureStorageContainer -Container container1 | Start-AzureStorageBlobCopy  -SrcBlob blob -DestContainer container2

-------------------------- StartCopy to specified blob using pipeline from GetAzureStorageBlob --------------------------

PS C:\> Get-AzureStorageBlob -Container container1 | Start-AzureStorageBlobCopy -DestContainer container2

-------------------------- start copy operation to ICloudBlob object --------------------------

PS C:\> $srcBlob = Get-AzureStorageBlob -Container container1 -Blob srcBlob
$destBlob = Get-AzureStorageBlob -Container container2 -Blob destBlob

Start-AzureStorageBlobCopy -ICloudBlob $srcBlob.ICloudBlob -DestICloudBlob $destBlob.ICloudBlob

-------------------------- Start copy operation using source uri --------------------------

PS C:\> $context = New-AzureStorageContainer -StorageAccountName accountname -StorageAccountKey accountkey

Start-AzureStorageBlobCopy -SrcUri http://www.somesite.com/somefile -DestContainer container   -DestBlob blob -DestContext $context

Get-AzureStorageBlobCopyState
Stop-AzureStorageBlobCopy