NetworkExtensions.GetCloudServicePublicIPAddresses Method

Definition

Gets information about all public IP addresses on a cloud service level. <item> Mocking. To mock this method, please mock GetCloudServicePublicIPAddresses(String, CancellationToken) instead. </item>

public static Azure.Pageable<Azure.ResourceManager.Network.PublicIPAddressData> GetCloudServicePublicIPAddresses(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string cloudServiceName, System.Threading.CancellationToken cancellationToken = default);
static member GetCloudServicePublicIPAddresses : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Network.PublicIPAddressData>
<Extension()>
Public Function GetCloudServicePublicIPAddresses (resourceGroupResource As ResourceGroupResource, cloudServiceName As String, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of PublicIPAddressData)

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 PublicIPAddressData that may take multiple service requests to iterate over.

Exceptions

resourceGroupResource is null.

Applies to