Remove-AzureVMImageOSDiskConfig

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Remove-AzureVMImageOSDiskConfig

This cmdlet removes the OS Disk Config from the DiskConfigSet object

Syntax

Parameter Set: Default
Remove-AzureVMImageOSDiskConfig [-DiskConfig] <VirtualMachineImageDiskConfigSet> [ <CommonParameters>]

Parameters

-DiskConfig<VirtualMachineImageDiskConfigSet>

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

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see  about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

  • Microsoft.WindowsAzure.Commands.ServiceManagement.Model.VirtualMachineImageDiskConfigSet

Examples

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

Description

-----------

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

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

Remove-AzureVMImageOSDiskConfig -DiskConfig $s
# removes the OS DiskConfig object from the DiskConfigSet object