# AzureOpenAIDeploymentResource

- Kind: `class`
- Package: [Aspire.Hosting.Azure.CognitiveServices](/reference/api/csharp/aspire.hosting.azure.cognitiveservices.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.CognitiveServices/AzureOpenAIDeploymentResource.cs)
- Inherits: `Resource`
- Implements: `IExpressionValue`, `IManifestExpressionProvider`, `IResource`, `IResourceWithConnectionString`, `IResourceWithParent`, `IResourceWithParent<AzureOpenAIResource>`, `IValueProvider`, `IValueWithReferences`

Represents an Azure OpenAI Deployment resource.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public class AzureOpenAIDeploymentResource
    : Aspire.Hosting.ApplicationModel.Resource,
      Aspire.Hosting.ApplicationModel.IExpressionValue,
      Aspire.Hosting.ApplicationModel.IManifestExpressionProvider,
      Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.ApplicationModel.IResourceWithConnectionString,
      Aspire.Hosting.ApplicationModel.IResourceWithParent,
      Aspire.Hosting.ApplicationModel.IResourceWithParent<Aspire.Hosting.ApplicationModel.AzureOpenAIResource>,
      Aspire.Hosting.ApplicationModel.IValueProvider,
      Aspire.Hosting.ApplicationModel.IValueWithReferences
{
    // ...
}
```

## ATS metadata

### ATS export

- Type ID: `Aspire.Hosting.Azure.CognitiveServices/AzureOpenAIDeploymentResource`

## Constructors

- [AzureOpenAIDeploymentResource(string, string, string, AzureOpenAIResource)](/reference/api/csharp/aspire.hosting.azure.cognitiveservices/azureopenaideploymentresource/constructors.md#constructor-string-string-string-azureopenairesource) -- Initializes a new instance of the [AzureOpenAIDeploymentResource](/reference/api/csharp/aspire.hosting.azure.cognitiveservices/azureopenaideploymentresource.md) class.

## Properties

- [ConnectionStringExpression](/reference/api/csharp/aspire.hosting.azure.cognitiveservices/azureopenaideploymentresource/properties.md#connectionstringexpression) : `ReferenceExpression` `get` -- Gets the connection string expression for the Azure OpenAI Deployment resource.
- [DeploymentName](/reference/api/csharp/aspire.hosting.azure.cognitiveservices/azureopenaideploymentresource/properties.md#deploymentname) : `string` `get; set` -- Gets or sets the name of the deployment.
- [ModelName](/reference/api/csharp/aspire.hosting.azure.cognitiveservices/azureopenaideploymentresource/properties.md#modelname) : `string` `get; set` -- Gets the name of the model.
- [ModelVersion](/reference/api/csharp/aspire.hosting.azure.cognitiveservices/azureopenaideploymentresource/properties.md#modelversion) : `string` `get; set` -- Gets the version of the model.
- [Parent](/reference/api/csharp/aspire.hosting.azure.cognitiveservices/azureopenaideploymentresource/properties.md#parent) : [AzureOpenAIResource](/reference/api/csharp/aspire.hosting.azure.cognitiveservices/azureopenairesource.md) `get` -- Gets the parent Azure OpenAI resource.
- [SkuCapacity](/reference/api/csharp/aspire.hosting.azure.cognitiveservices/azureopenaideploymentresource/properties.md#skucapacity) : `int` `get; set` -- Gets the capacity of the SKU.
- [SkuName](/reference/api/csharp/aspire.hosting.azure.cognitiveservices/azureopenaideploymentresource/properties.md#skuname) : `string` `get; set` -- Gets the name of the SKU.
