# AzureOpenAIDeploymentResource Properties

- 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: `Properties`
- Members: `7`

Represents an Azure OpenAI Deployment resource.

## ConnectionStringExpression

- Name: `ConnectionStringExpression`
- Modifiers: `get`
- Returns: `ReferenceExpression`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.CognitiveServices/AzureOpenAIDeploymentResource.cs#L105)

Gets the connection string expression for the Azure OpenAI Deployment resource.

```csharp
public ReferenceExpression ConnectionStringExpression { get; }
```

## DeploymentName

- Name: `DeploymentName`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.CognitiveServices/AzureOpenAIDeploymentResource.cs)

Gets or sets the name of the deployment.

```csharp
public string DeploymentName { get; set; }
```

## Remarks

This defaults to `Resource.Name`, but allows for a different deployment name in Azure.

## ModelName

- Name: `ModelName`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.CognitiveServices/AzureOpenAIDeploymentResource.cs)

Gets the name of the model.

```csharp
public string ModelName { get; set; }
```

## ModelVersion

- Name: `ModelVersion`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.CognitiveServices/AzureOpenAIDeploymentResource.cs)

Gets the version of the model.

```csharp
public string ModelVersion { get; set; }
```

## Parent

- Name: `Parent`
- Modifiers: `get`
- Returns: [AzureOpenAIResource](/reference/api/csharp/aspire.hosting.azure.cognitiveservices/azureopenairesource.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.CognitiveServices/AzureOpenAIDeploymentResource.cs#L100)

Gets the parent Azure OpenAI resource.

```csharp
public AzureOpenAIResource Parent { get; }
```

## SkuCapacity

- Name: `SkuCapacity`
- Modifiers: `get; set`
- Returns: `int`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.CognitiveServices/AzureOpenAIDeploymentResource.cs)

Gets the capacity of the SKU.

```csharp
public int SkuCapacity { get; set; }
```

## SkuName

- Name: `SkuName`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.CognitiveServices/AzureOpenAIDeploymentResource.cs)

Gets the name of the SKU.

```csharp
public string SkuName { get; set; }
```
