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
 

Get-AzureOSDisk

Get-AzureOSDisk

microsoft.windowsazure.commands.servicemanagement.dll

Synopsis

Gets the operating system disk object for the specified Microsoft Azure virtual machine.

Syntax

Get-AzureOSDisk [-VM] [<CommonParameters>]

Detailed Description

The Get-AzureOSDisk cmdlet gets an object representing the operating system disk of the specified virtual machine object.

Parameters

-VM <IPersistentVM>

Specifies the virtual machine object whose operating system disk object you want to get.

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

true (ByValue, ByPropertyName)

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

-------------------------- Example 1 --------------------------

This command gets the operating system disk object for the "MyVM" virtual machine.

PS C:\> Get-AzureVM –ServiceName “MyService” –Name “MyVM” | Get-AzureOSDisk