CognitiveServicesAgentApplicationResource.GetCognitiveServicesAgentDeploymentAsync Method

Definition

Gets an Agent Deployment by name.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CognitiveServices.CognitiveServicesAgentDeploymentResource>> GetCognitiveServicesAgentDeploymentAsync(string deploymentName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetCognitiveServicesAgentDeploymentAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CognitiveServices.CognitiveServicesAgentDeploymentResource>>
override this.GetCognitiveServicesAgentDeploymentAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CognitiveServices.CognitiveServicesAgentDeploymentResource>>
Public Overridable Function GetCognitiveServicesAgentDeploymentAsync (deploymentName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CognitiveServicesAgentDeploymentResource))

Parameters

deploymentName
String

The name of the deployment associated with the Cognitive Services Account.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

deploymentName is null.

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

Applies to