NetworkExtensions.GetVirtualMachineScaleSetNetworkInterfacesAsync 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.
Gets all network interfaces in a virtual machine scale set. <item> Mocking. To mock this method, please mock GetVirtualMachineScaleSetNetworkInterfacesAsync(String, CancellationToken) instead. </item>
public static Azure.AsyncPageable<Azure.ResourceManager.Network.NetworkInterfaceData> GetVirtualMachineScaleSetNetworkInterfacesAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string virtualMachineScaleSetName, System.Threading.CancellationToken cancellationToken = default);
static member GetVirtualMachineScaleSetNetworkInterfacesAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Network.NetworkInterfaceData>
<Extension()>
Public Function GetVirtualMachineScaleSetNetworkInterfacesAsync (resourceGroupResource As ResourceGroupResource, virtualMachineScaleSetName As String, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of NetworkInterfaceData)
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource the method will execute against.
- virtualMachineScaleSetName
- String
The name of the virtual machine scale set.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of NetworkInterfaceData that may take multiple service requests to iterate over.
Exceptions
resourceGroupResource is null.