Share via


MockableNetworkCloudSubscriptionResource.GetNetworkCloudVirtualMachinesAsync Method

Definition

Get a list of virtual machines in the provided subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/virtualMachines
  • Operation Id: VirtualMachines_ListBySubscription
public virtual Azure.AsyncPageable<Azure.ResourceManager.NetworkCloud.NetworkCloudVirtualMachineResource> GetNetworkCloudVirtualMachinesAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetNetworkCloudVirtualMachinesAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.NetworkCloud.NetworkCloudVirtualMachineResource>
override this.GetNetworkCloudVirtualMachinesAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.NetworkCloud.NetworkCloudVirtualMachineResource>
Public Overridable Function GetNetworkCloudVirtualMachinesAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of NetworkCloudVirtualMachineResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of NetworkCloudVirtualMachineResource that may take multiple service requests to iterate over.

Applies to