ConnectedVMwarevSphereExtensions.GetVirtualMachines Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetVirtualMachines(SubscriptionResource, CancellationToken) |
List of virtualMachines in a subscription.
|
GetVirtualMachines(ResourceGroupResource) |
Gets a collection of VirtualMachineResources in the ResourceGroupResource. |
GetVirtualMachines(SubscriptionResource, CancellationToken)
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)
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
Azure SDK for .NET