Skip to content

Commit c98f602

Browse files
authored
Update Save-AzureRMVHD
Updating the example as the ResourceGroupName parameter is required to run the command
1 parent 881105e commit c98f602

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ResourceManager/Compute/Commands.Compute/help/Save-AzureRmVhd.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ It does not apply any Virtual Hard Disk (VHD) format conversion.
3535

3636
### Example 1: Download an image
3737
```
38-
PS C:\> Save-AzureRmVhd -SourceUri "http://contosoaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd" -LocalFilePath "C:\vhd\Win7Image.vhd"
38+
PS C:\> Save-AzureRmVhd -SourceUri "http://contosoaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd" -LocalFilePath "C:\vhd\Win7Image.vhd" -ResourceGroupName "rgname"
3939
```
4040

4141
This command downloads a .vhd file, and stores it in the local path C:\vhd\Win7Image.vhd.
4242

4343
### Example 2: Download an image and overwrite the local file
4444
```
45-
PS C:\> Save-AzureRmVhd -SourceUri "http://contosoaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd" -LocalFilePath "C:\vhd\Win7Image.vhd" -Overwrite
45+
PS C:\> Save-AzureRmVhd -SourceUri "http://contosoaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd" -LocalFilePath "C:\vhd\Win7Image.vhd" -Overwrite -ResourceGroupName "rgname"
4646
```
4747

4848
This command downloads a .vhd file, and stores it in the local path.
@@ -51,7 +51,7 @@ Therefore, if C:\vhd\Win7Image.vhd already exists, this command replaces it.
5151

5252
### Example 3: Download an image by using a specified number of threads
5353
```
54-
PS C:\> Save-AzureRmVhd -SourceUri "http://contosoaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd" -LocalFilePath "C:\vhd\Win7Image.vhd" -NumberOfThreads 32
54+
PS C:\> Save-AzureRmVhd -SourceUri "http://contosoaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd" -LocalFilePath "C:\vhd\Win7Image.vhd" -NumberOfThreads 32 -ResourceGroupName "rgname"
5555
```
5656

5757
This command downloads a .vhd file, and stores it in the local path.
@@ -60,7 +60,7 @@ Therefore, the cmdlet uses 32 threads for this action.
6060

6161
### Example 4: Download an image and specify the storage key
6262
```
63-
PS C:\> Save-AzureRmVhd -SourceUri "http://contosoaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd" -LocalFilePath "C:\vhd\Win7Image.vhd" -StorageKey "zNvcH0r5vAGmC5AbwEtpcyWCMyBd3eMDbdaa4ua6kwxq6vTZH3Y+sw=="
63+
PS C:\> Save-AzureRmVhd -SourceUri "http://contosoaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd" -LocalFilePath "C:\vhd\Win7Image.vhd" -StorageKey "zNvcH0r5vAGmC5AbwEtpcyWCMyBd3eMDbdaa4ua6kwxq6vTZH3Y+sw==" -ResourceGroupName "rgname"
6464
```
6565

6666
This command downloads a .vhd file and specifies the storage key.

0 commit comments

Comments
 (0)