NetworkCloudExtensions.GetNetworkCloudVirtualMachinesAsync 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.
Get a list of virtual machines in the provided subscription.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/virtualMachines
- Operation Id: VirtualMachines_ListBySubscription
- Default Api Version: 2025-07-01-preview
- Resource: NetworkCloudVirtualMachineResource
public static Azure.AsyncPageable<Azure.ResourceManager.NetworkCloud.NetworkCloudVirtualMachineResource> GetNetworkCloudVirtualMachinesAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, int? top = default, string skipToken = default, System.Threading.CancellationToken cancellationToken = default);
static member GetNetworkCloudVirtualMachinesAsync : Azure.ResourceManager.Resources.SubscriptionResource * Nullable<int> * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.NetworkCloud.NetworkCloudVirtualMachineResource>
<Extension()>
Public Function GetNetworkCloudVirtualMachinesAsync (subscriptionResource As SubscriptionResource, Optional top As Nullable(Of Integer) = Nothing, Optional skipToken As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of NetworkCloudVirtualMachineResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
The maximum number of resources to return from the operation. Example: '$top=10'.
- skipToken
- String
The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
An async collection of NetworkCloudVirtualMachineResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource is null.