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
 

New-AzureVMImageDiskConfigSet

New-AzureVMImageDiskConfigSet

microsoft.windowsazure.commands.servicemanagement.dll

Synopsis

This cmdlet returns a new object for disk configuration set, which would be passed to the image update cmdlet. It encapsulates the OSDiskConfig and the DataDiskConfig object. Use the Set-AzureVMImageOSDiskConfig and Set-AzureVMImageDataDiskConfig cmdlets to set the OS Disk and Data Disk properties for the VM Image.

Syntax

New-AzureVMImageDiskConfigSet [<CommonParameters>]

Detailed Description

This cmdlet returns a new object for disk configuration set, which would be passed to the image update cmdlet. It encapsulates the OSDiskConfig and the DataDiskConfig object. Use the Set-AzureVMImageOSDiskConfig and Set-AzureVMImageDataDiskConfig cmdlets to set the OS Disk and Data Disk properties for the VM Image.

Parameters

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