共用方式為


ConnectedVMwarevSphereExtensions.GetVirtualMachines Method

Definition

Overloads

GetVirtualMachines(SubscriptionResource, CancellationToken)

List of virtualMachines in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines
  • Operation Id: VirtualMachines_List
GetVirtualMachines(ResourceGroupResource)

Gets a collection of VirtualMachineResources in the ResourceGroupResource.

GetVirtualMachines(SubscriptionResource, CancellationToken)

Source:
ConnectedVMwarevSphereExtensions.cs

List of virtualMachines in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines
  • Operation Id: VirtualMachines_List
public static Azure.Pageable<Azure.ResourceManager.ConnectedVMwarevSphere.VirtualMachineResource> GetVirtualMachines (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetVirtualMachines : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ConnectedVMwarevSphere.VirtualMachineResource>
<Extension()>
Public Function GetVirtualMachines (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of VirtualMachineResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of VirtualMachineResource that may take multiple service requests to iterate over.

Applies to

GetVirtualMachines(ResourceGroupResource)

Source:
ConnectedVMwarevSphereExtensions.cs

Gets a collection of VirtualMachineResources in the ResourceGroupResource.

public static Azure.ResourceManager.ConnectedVMwarevSphere.VirtualMachineCollection GetVirtualMachines (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetVirtualMachines : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.ConnectedVMwarevSphere.VirtualMachineCollection
<Extension()>
Public Function GetVirtualMachines (resourceGroupResource As ResourceGroupResource) As VirtualMachineCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of VirtualMachineResources and their operations over a VirtualMachineResource.

Applies to