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-AzureVMImageOSDiskConfig

Set-AzureVMImageOSDiskConfig

microsoft.windowsazure.commands.servicemanagement.dll

Synopsis

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

Syntax

Set-AzureVMImageOSDiskConfig [-DiskConfig] [-HostCaching] [<CommonParameters>]

Detailed Description

Parameters

-DiskConfig <VirtualMachineImageDiskConfigSet>

Aliases

None

Required?

true

Position

0

Default value

None

Accept pipeline input?

true (ByValue, ByPropertyName)

Accept wildcard characters?

false

-HostCaching <String>

Aliases

None

Required?

false

Position

1

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