# AzureOpenAIDeployment Constructors

- Package: [Aspire.Hosting.Azure.CognitiveServices](/reference/api/csharp/aspire.hosting.azure.cognitiveservices.md)
- Type: [AzureOpenAIDeployment](/reference/api/csharp/aspire.hosting.azure.cognitiveservices/azureopenaideployment.md)
- Kind: `Constructors`
- Members: `1`

Represents an Azure OpenAI Deployment.

## AzureOpenAIDeployment(string, string, string, string?, int?)

- Name: `Constructor(string, string, string, string?, int?)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.CognitiveServices/AzureOpenAIDeployment.cs#L18-L55)

Represents an Azure OpenAI Deployment.

```csharp
public class AzureOpenAIDeployment
{
    public AzureOpenAIDeployment(
        string name,
        string modelName,
        string modelVersion,
        string? skuName = null,
        int? skuCapacity = null)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
  The name of the deployment
- `modelName` (`string`)
  The name of the model.
- `modelVersion` (`string`)
  The version of the model.
- `skuName` (`string?`) `optional`
  The name of the SKU.
- `skuCapacity` (`int?`) `optional`
  The capacity of the SKU.
