DevCenterCatalogTaskCollection.GetAsync(String, CancellationToken) Method

Definition

Gets a Task from the catalog.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/tasks/{taskName}.
  • Operation Id. : CustomizationTasks_Get.
  • Default Api Version. : 2026-01-01-preview.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DevCenter.DevCenterCatalogTaskResource>> GetAsync(string taskName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DevCenter.DevCenterCatalogTaskResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DevCenter.DevCenterCatalogTaskResource>>
Public Overridable Function GetAsync (taskName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DevCenterCatalogTaskResource))

Parameters

taskName
String

The name of the Customization Task.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

taskName is null.

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

Applies to