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-AzureDisk

Get-AzureDisk

microsoft.windowsazure.commands.servicemanagement.dll

Synopsis

Gets an object with information on disks in the Microsoft Azure disk repository.

Syntax

Get-AzureDisk [-DiskName] [<CommonParameters>]

Detailed Description

The Get-AzureDisk cmdlet retrieves an object with information about the disks stored in the Microsoft Azure disk repository for the current subscription. It returns a list object with information for all disks in the repository, or with information on a specific disk if its disk name is specified.

Parameters

-DiskName <String>

Specifies the name of the disk in the disk repository to return information about.

Aliases

None

Required?

false

Position

0

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

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

This command retrieves data about the "MyDataDisk" disk from the disk repository.

PS C:\> C:\PS>Get-AzureDisk -DiskName MyDataDisk

-------------------------- Example 2 --------------------------

This command retrieves data for all the disks in the disk repository.

PS C:\> C:\PS>Get-AzureDisk

-------------------------- Example 3 --------------------------

This command gets data for all of the disks in the disk repository that are not currently attached to a virtual machine and then formats the list as a table.

PS C:\> C:\PS>Get-AzureDisk | Where-Object {$_.AttachedTo –eq $null } `
          | Format-Table –auto "DiskName","DiskSizeInGB","MediaLink"

Add-AzureDisk
Remove-AzureDisk
Update-AzureDisk