Remove-​Azure​VM​Image​OS​Disk​Config

Removes the operating system disk configuration from the DiskConfigSet object.

Syntax

Remove-AzureVMImageOSDiskConfig
      [-DiskConfig] <VirtualMachineImageDiskConfigSet>
      [-InformationAction <ActionPreference>]
      [-InformationVariable <String>]
      [<CommonParameters>]

Description

The Remove-AzureVMImageOSDiskConfig cmdlet removes the operating system disk configuration from the DiskConfigSet object.

Examples

Example 1: Remove the operating system disk configuration from a DiskConfigSet

PS C:\> $Disk = New-AzureDiskConfigSet
PS C:\> $Disk = Set-AzureOSDiskConfig -DiskConfig $Disk -HostCaching ReadWrite
PS C:\> Remove-AzureVMImageOSDiskConfig -DiskConfig $Disk

This command removes the operating system disk configuration from the DiskConfigSet object

Required Parameters

-DiskConfig

Specifies the disk configuration object that encapsulates the operating system disk and Data Disk objects.

Type:VirtualMachineImageDiskConfigSet
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName, ByValue)
Accept wildcard characters:False

Optional Parameters

-InformationAction

Specifies how this cmdlet responds to an information event.The acceptable values for this parameter are:- Continue

  • Ignore
  • Inquire
  • SilentlyContinue
  • Stop
  • Suspend
Type:ActionPreference
Aliases:infa
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InformationVariable

Specifies an information variable.

Type:String
Aliases:iv
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Microsoft.WindowsAzure.Commands.ServiceManagement.Model.VirtualMachineImageDiskConfigSet