DevOpsInfrastructureExtensions.GetDevOpsPoolAsync Method

Definition

Get a Pool <item> Mocking. To mock this method, please mock GetDevOpsPoolAsync(String, CancellationToken) instead. </item>

public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DevOpsInfrastructure.DevOpsPoolResource>> GetDevOpsPoolAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string poolName, System.Threading.CancellationToken cancellationToken = default);
static member GetDevOpsPoolAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DevOpsInfrastructure.DevOpsPoolResource>>
<Extension()>
Public Function GetDevOpsPoolAsync (resourceGroupResource As ResourceGroupResource, poolName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DevOpsPoolResource))

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource the method will execute against.

poolName
String

Name of the pool. It needs to be globally unique.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

poolName is an empty string, and was expected to be non-empty.

resourceGroupResource is null.

Applies to