# AzureOpenAIDeploymentResource Constructors

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

Represents an Azure OpenAI Deployment resource.

## AzureOpenAIDeploymentResource(string, string, string, AzureOpenAIResource)

- Name: `Constructor(string, string, string, AzureOpenAIResource)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.CognitiveServices/AzureOpenAIDeploymentResource.cs#L34-L95)

Initializes a new instance of the [AzureOpenAIDeploymentResource](/reference/api/csharp/aspire.hosting.azure.cognitiveservices/azureopenaideploymentresource.md) class.

```csharp
public class AzureOpenAIDeploymentResource
{
    public AzureOpenAIDeploymentResource(
        string name,
        string modelName,
        string modelVersion,
        AzureOpenAIResource parent)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
  The name of the resource.
- `modelName` (`string`)
  The name of the model.
- `modelVersion` (`string`)
  The version of the model.
- `parent` ([AzureOpenAIResource](/reference/api/csharp/aspire.hosting.azure.cognitiveservices/azureopenairesource.md))
  The parent Azure OpenAI resource.
