# AzureOpenAIDeploymentResource

- Module: [Aspire.Hosting.Azure.CognitiveServices](/reference/api/go/aspire.hosting.azure.cognitiveservices.md)
- Version: `17.0.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

Represents an Azure OpenAI Deployment resource.

## Definition

```go
type AzureOpenAIDeploymentResource interface {
    ExpressionValue
    Resource
    ResourceWithConnectionString
    ResourceWithParent
}
```

## Embeds

- `ExpressionValue`
- `Resource`
- `ResourceWithConnectionString`
- `ResourceWithParent`

## Properties

- `ConnectionStringExpression`: `*ReferenceExpression` `get` -- Gets the connection string expression for the Azure OpenAI Deployment resource.
- `DeploymentName`: `string` `get/set` -- Gets or sets the name of the deployment.
- `ModelName`: `string` `get/set` -- Gets the name of the model.
- `ModelVersion`: `string` `get/set` -- Gets the version of the model.
- `Parent`: [`AzureOpenAIResource`](/reference/api/go/aspire.hosting.azure.cognitiveservices/azureopenairesource.md) `get` -- Gets the parent Azure OpenAI resource.
- `ResourceTypeDisplayName`: `string` `get` -- Gets the ResourceTypeDisplayName property
- `SkuCapacity`: `float64` `get/set` -- Gets the capacity of the SKU.
- `SkuName`: `string` `get/set` -- Gets the name of the SKU.

## Methods

- [WithProperties](/reference/api/go/aspire.hosting.azure.cognitiveservices/azureopenaideploymentresource/withproperties.md) -- `method` -- Allows setting the properties of an Azure OpenAI Deployment resource.
  ```go
  WithProperties(configure func(obj AzureOpenAIDeploymentResource)) AzureOpenAIDeploymentResource
  ```
