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
 

Set-AzureVMImageDataDiskConfig

Set-AzureVMImageDataDiskConfig

microsoft.windowsazure.commands.servicemanagement.dll

Synopsis

Allows you to update the Data Disk properties on the VM Image

Syntax

Set-AzureVMImageDataDiskConfig [-DiskConfig] [-DataDiskName] [-Lun] [-HostCaching] [<CommonParameters>]

Detailed Description

Parameters

-DiskConfig <VirtualMachineImageDiskConfigSet>

The disk config object that encapsulates the OS Disk and Data Disk objects.

Aliases

None

Required?

true

Position

0

Default value

None

Accept pipeline input?

true (ByValue, ByPropertyName)

Accept wildcard characters?

false

-DataDiskName <String>

Aliases

None

Required?

true

Position

1

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-Lun <Int32>

Aliases

None

Required?

true

Position

2

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-HostCaching <String>

Aliases

None

Required?

true

Position

3

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

Input Type


Return Type

Microsoft.WindowsAzure.Commands.ServiceManagement.Model.VirtualMachineImageDiskConfigSet

Notes

Examples

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

Description

PS C:\> $s = New-AzureDiskConfigSet
          # returns DiskConfigSet object;

          $s = Set-AzureOSDiskConfig -DiskConfig $s -HostCaching ReadWrite
          # returns DiskConfigSet object;

          $s = Set-AzureDataDiskConfig -DiskConfig $s -Name 'test' -HostCaching 'ReadWrite' -LUN 0
          # returns DiskConfigSet object

          # Final step - Update the VM Image
          Update-AzureVMImage -ImageName testvmimage2 -Label test1 -Description test1 -DiskConfigSet $s;

          # OR

          $s | Update-AzureVMImage -ImageName testvmimage2 -Label test1 -Description test1;

Unknown