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
 

Save-AzureVhd

Save-AzureVhd

microsoft.windowsazure.commands.servicemanagement.dll

Synopsis

Syntax

Save-AzureVhd [-Source] [-LocalFilePath] [-NumberOfThreads] [-StorageKey] [-OverWrite] [<CommonParameters>]

Detailed Description

The Save-AzureVhd cmdlet allows to download VHD images stored in a blob in to a file. It has parameters to configure the download process such as specifying the number of downloader threads that will be used or overwriting the file which already exists in the specified file path. Save-AzureVhd doesn't do any VHD format conversion and the blob is downloaded as it is.

Parameters

-Source <Uri>

Uri to the blob in Microsoft Azure.

Aliases

None

Required?

true

Position

1

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-LocalFilePath <FileInfo>

Aliases

None

Required?

true

Position

2

Default value

2

Accept pipeline input?

false

Accept wildcard characters?

false

-NumberOfThreads <Int32>

Determines the number of download threads that will be used during download.

Aliases

None

Required?

false

Position

3

Default value

8

Accept pipeline input?

false

Accept wildcard characters?

false

-StorageKey <String>

Storage key of the blob storage account. If it is not provided, Save-AzureVhd tries to determine the storage key of the account in Source Uri from Microsoft Azure Cloud.

Aliases

None

Required?

false

Position

4

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-OverWrite <SwitchParameter>

Determines to delete the file specified by LocalFilePath file if it exists.

Aliases

None

Required?

false

Position

5

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

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

Description

PS C:\> Save-AzureVhd -Source http://mytestaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd -LocalFilePath C:\vhd\MyWin7Image.vhd

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

Description

PS C:\> Save-AzureVhd -Source http://mytestaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd -LocalFilePath C:\vhd\MyWin7Image.vhd -Overwrite

-------------------------- EXAMPLE 3 --------------------------

Description

PS C:\> Save-AzureVhd -Source http://mytestaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd -LocalFilePath C:\vhd\MyWin7Image.vhd -NumberOfThreads 32

-------------------------- EXAMPLE 4 --------------------------

Description

PS C:\> Save-AzureVhd -Source http://mytestaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd -LocalFilePath C:\vhd\MyWin7Image.vhd -StorageKey zNvcH0r5vAGmC5AbwEtpcyWCMyBd3eMDbdaa4ua6kwxq6vTZH3Y+sw==

Unknown