내보내기(0) 인쇄
모두 확장
EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

Get-AzureVM

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

Get-AzureVM

Retrieves information from one or more Windows Azure virtual machines.

 

Parameter Set: Default
Get-AzureVM [[-ServiceName] <String> ] [[-Name] <String> ] [ <CommonParameters>]




 

This topic describes the cmdlet in the .6.19 version of the Windows Azure PowerShell module. To find out the version of the module you're using, from the Windows Azure PowerShell console, type (get-module azure).version.

The Get-AzureVM cmdlet retrieves information about virtual machines running in Windows Azure. It returns an object with information on a specific virtual machine, or if no virtual machine is specified, for all the virtual machines in the specified service of the current subscription.

 

-Name<String>

Specifies the name of the virtual machine for which to retrieve information. If this parameter is not provided, the cmdlet returns a list object with information about all the virtual machines in the specified service.


Aliases

none

Required?

false

Position?

2

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-ServiceName<String>

The name of the cloud service for which to return virtual machine information.


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.

 

Example 1

This command returns an object with information on the "MyVM1" virtual machine running in the "MySvc1" cloud service.


C:\PS> Get-AzureVM -ServiceName "MySvc1" -Name "MyVM1"

Example 2

This command retrieves a list object with information on all of the virtual machines running in the "MySvc1" cloud service.


C:\PS> Get-AzureVM -ServiceName "MySvc1" 

Example 3

This command displays a table showing the virtual machines running on the "MySvc1" service, their Upgrade Domain, and the current status of each machine.


C:\PS> Get-AzureVM -ServiceName "MySvc1" `| Format-Table –auto "Name",@{Expression={$_.InstanceUpgradeDomain};Label="UpgDom";Align="Right"},"InstanceStatus"

Related topics

표시:
© 2014 Microsoft