SALES: 1-800-867-1380
Expand Minimize

Get-WAPackVMOSDisk

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

Get-WAPackVMOSDisk

Gets operating system disk objects for virtual machines.

Syntax

Parameter Set: FromId
Get-WAPackVMOSDisk [[-ID] <Guid> ] [ <CommonParameters>]

Parameter Set: FromName
Get-WAPackVMOSDisk [[-Name] <String> ] [ <CommonParameters>]




Detailed Description

These topics are deprecated and will be removed in the future. For the updated topics, see Azure WAPack Cmdlets. This topic describes the cmdlet in the 0.8.1 version of the Microsoft Azure PowerShell module. To find out the version of the module you're using, from the Azure PowerShell console, type (get-module azure).version.

The Get-WAPackVMOSDisk cmdlet gets operating system disk objects for virtual machines.

Parameters

-ID<Guid>

Specifies the unique ID of an operating system disk.


Aliases

none

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Name<String>

Specifies the name of an operating system disk.


Aliases

none

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

True (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 (http://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.

Examples

Example 1: Get an operating system disk by using a name

This command gets an operating system disk named ContosoOSDisk.


PS C:\> Get-WAPackVMOSDisk -Name "ContosoOSDisk"

Example 2: Get an operating system disk by using an ID

This command gets the operating system disk that has the specified ID.


PS C:\> Get-WAPackVMOSDisk -Id 66242D17-189F-480D-87CF-8E1D749998C8

Example 3: Get all operating system disks

This command gets all operating system disks.


PS C:\> Get-WAPackVMOSDisk

Related topics

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft