# Aspire.Hosting.Azure.CognitiveServices

- Module: `Aspire.Hosting.Azure.CognitiveServices`
- Version: `13.4.0`
- Source: [GitHub](https://github.com/microsoft/aspire)
- Functions: `4`
- Types: `3`

## Types

- [AzureOpenAIDeploymentResource](/reference/api/typescript/aspire.hosting.azure.cognitiveservices/azureopenaideploymentresource.md) -- `handle` - 13 members -- Represents an Azure OpenAI Deployment resource.
- [AzureOpenAIResource](/reference/api/typescript/aspire.hosting.azure.cognitiveservices/azureopenairesource.md) -- `handle` - 1 members -- Represents an Azure OpenAI resource.

## Functions

- [addAzureOpenAI](/reference/api/typescript/aspire.hosting.azure.cognitiveservices/addazureopenai.md) -- `method` -- Adds an Azure OpenAI resource to the application model.
- [addDeployment](/reference/api/typescript/aspire.hosting.azure.cognitiveservices/adddeployment.md) -- `method` -- Adds an Azure OpenAI deployment resource
- [withCognitiveServicesRoleAssignments](/reference/api/typescript/aspire.hosting.azure.cognitiveservices/withcognitiveservicesroleassignments.md) -- `method` -- Assigns the specified roles to the given resource, granting it the necessary permissions on the target Azure OpenAI resource. This replaces the default role assignments for the resource.
- [withProperties](/reference/api/typescript/aspire.hosting.azure.cognitiveservices/withproperties.md) -- `method` -- Allows setting the properties of an Azure OpenAI Deployment resource.

## Enums

- [AzureOpenAIRole](/reference/api/typescript/aspire.hosting.azure.cognitiveservices/azureopenairole.md) -- `enum` - 3 values -- Represents ATS-compatible Azure OpenAI roles.
