< Back

Copy-AzureBlob

Sat Jan 18, 2020 4:32 pm

NAME Copy-AzureBlob



SYNOPSIS

Copy blob files (vhds) between Azure storage accounts.





SYNTAX

Copy-AzureBlob [[-SourceSubscriptionId] <String>] [[-DestinationSubscriptionId] <String>] [[-srcUri] <String>]

[[-SourceStorageAccount] <String>] [[-SourceStorageKey] <String>] [[-DestinationStorageAccount] <String>]

[[-DestinationStorageKey] <String>] [[-DestContainerName] <String>] [[-DestinationBlobName] <String>]

[<CommonParameters>]





DESCRIPTION

Copy VHD blob files (vhds) between Azure storage accounts.



Sometimes it is necessary to copy VHD files between storage accounts

in Azure. In addition you may need to copy VHD files between storage

accounts located in different Azure subscriptions.





PARAMETERS

-SourceSubscriptionId <String>



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-DestinationSubscriptionId <String>



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-srcUri <String>



Required? false

Position? 3

Default value https://mystorageaccount.blob.core.wind ... /myvhd.vhd

Accept pipeline input? false

Accept wildcard characters? false



-SourceStorageAccount <String>



Required? false

Position? 4

Default value sourcestorageaccountname

Accept pipeline input? false

Accept wildcard characters? false



-SourceStorageKey <String>



Required? false

Position? 5

Default value STORAGEKEY

Accept pipeline input? false

Accept wildcard characters? false



-DestinationStorageAccount <String>



Required? false

Position? 6

Default value destinationstorageaccountname

Accept pipeline input? false

Accept wildcard characters? false



-DestinationStorageKey <String>



Required? false

Position? 7

Default value STORAGEKEY

Accept pipeline input? false

Accept wildcard characters? false



-DestContainerName <String>

Destination Names ###



Required? false

Position? 8

Default value vhds

Accept pipeline input? false

Accept wildcard characters? false



-DestinationBlobName <String>



Required? false

Position? 9

Default value myvhd.vhd

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES





Created by: Jason Wasser @wasserja

Modified: 3/7/2016 03:56:46 PM



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Copy-AzureBlob













-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Another example of how to use this cmdlet















RELATED LINKS

https://www.opsgility.com/blog/windows- ... e-accounts

/

Mostly stolen from here, but needed to modify to add ARM support.