NetworkCloudExtensions.GetNetworkCloudVirtualMachines Method

Definition

Overloads

GetNetworkCloudVirtualMachines(ResourceGroupResource)

Gets a collection of NetworkCloudVirtualMachineResources in the ResourceGroupResource. MockingTo mock this method, please mock GetNetworkCloudVirtualMachines() instead.

GetNetworkCloudVirtualMachines(SubscriptionResource, CancellationToken)

Get a list of virtual machines in the provided subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/virtualMachines
  • Operation Id: VirtualMachines_ListBySubscription

GetNetworkCloudVirtualMachines(ResourceGroupResource)

Source:
NetworkCloudExtensions.cs

Gets a collection of NetworkCloudVirtualMachineResources in the ResourceGroupResource. MockingTo mock this method, please mock GetNetworkCloudVirtualMachines() instead.

public static Azure.ResourceManager.NetworkCloud.NetworkCloudVirtualMachineCollection GetNetworkCloudVirtualMachines (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetNetworkCloudVirtualMachines : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.NetworkCloud.NetworkCloudVirtualMachineCollection
<Extension()>
Public Function GetNetworkCloudVirtualMachines (resourceGroupResource As ResourceGroupResource) As NetworkCloudVirtualMachineCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of NetworkCloudVirtualMachineResources and their operations over a NetworkCloudVirtualMachineResource.

Exceptions

resourceGroupResource is null.

Applies to

GetNetworkCloudVirtualMachines(SubscriptionResource, CancellationToken)

Source:
NetworkCloudExtensions.cs

Get a list of virtual machines in the provided subscription.

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

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to