NetworkExtensions.GetCloudServiceNetworkInterfacesAsync 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 cloud service. <item> Mocking. To mock this method, please mock GetCloudServiceNetworkInterfacesAsync(String, CancellationToken) instead. </item>
public static Azure.AsyncPageable<Azure.ResourceManager.Network.NetworkInterfaceData> GetCloudServiceNetworkInterfacesAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string cloudServiceName, System.Threading.CancellationToken cancellationToken = default);
static member GetCloudServiceNetworkInterfacesAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Network.NetworkInterfaceData>
<Extension()>
Public Function GetCloudServiceNetworkInterfacesAsync (resourceGroupResource As ResourceGroupResource, cloudServiceName As String, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of NetworkInterfaceData)
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource the method will execute against.
- cloudServiceName
- String
The name of the cloud service.
- 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.