# Aspire.Hosting.Azure.CognitiveServices

- Module: `Aspire.Hosting.Azure.CognitiveServices`
- Version: `17.0.0`
- Import path: `apphost/modules/aspire`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)
- Functions: `4`
- Types: `7`

## Handles

- [AzureBicepResource](/reference/api/go/aspire.hosting.azure.cognitiveservices/azurebicepresource.md) -- `handle` - 0 members
- [AzureEnvironmentResource](/reference/api/go/aspire.hosting.azure.cognitiveservices/azureenvironmentresource.md) -- `handle` - 0 members
- [AzureOpenAIDeploymentResource](/reference/api/go/aspire.hosting.azure.cognitiveservices/azureopenaideploymentresource.md) -- `handle` - 9 members -- Represents an Azure OpenAI Deployment resource.
- [AzureOpenAIResource](/reference/api/go/aspire.hosting.azure.cognitiveservices/azureopenairesource.md) -- `handle` - 1 members -- Represents an Azure OpenAI resource.
- [AzureProvisioningResource](/reference/api/go/aspire.hosting.azure.cognitiveservices/azureprovisioningresource.md) -- `handle` - 0 members
- [AzureUserAssignedIdentityResource](/reference/api/go/aspire.hosting.azure.cognitiveservices/azureuserassignedidentityresource.md) -- `handle` - 0 members

## Enums

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

## Functions

- [WithProperties](/reference/api/go/aspire.hosting.azure.cognitiveservices/withproperties.md) -- `method` - on `AzureOpenAIDeploymentResource` -- Allows setting the properties of an Azure OpenAI Deployment resource.
- [AddDeployment](/reference/api/go/aspire.hosting.azure.cognitiveservices/adddeployment.md) -- `method` - on `AzureOpenAIResource` -- Adds an Azure OpenAI deployment resource
- [AddAzureOpenAI](/reference/api/go/aspire.hosting.azure.cognitiveservices/addazureopenai.md) -- `method` - on `DistributedApplicationBuilder` -- Adds an Azure OpenAI resource to the application model.
- [WithCognitiveServicesRoleAssignments](/reference/api/go/aspire.hosting.azure.cognitiveservices/withcognitiveservicesroleassignments.md) -- `method` - on `Resource` -- 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.
