# AzureOpenAIDeploymentResource

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

Represents an Azure OpenAI Deployment resource.

## Definition

```typescript
interface AzureOpenAIDeploymentResource
  extends IExpressionValue,
    IManifestExpressionProvider,
    IResource,
    IResourceWithConnectionString,
    IResourceWithParent,
    AzureOpenAIResource]],
    IValueProvider,
    IValueWithReferences {
  readonly connectionStringExpression: ReferenceExpression;
  deploymentName: string;
  modelName: string;
  modelVersion: string;
  readonly parent: AzureOpenAIResource;
  skuCapacity: number;
  skuName: string;
  withProperties(configure: (obj: AzureOpenAIDeploymentResource) => Promise<void>): AzureOpenAIDeploymentResource;
}
```

## 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/typescript/aspire.hosting.azure.cognitiveservices/azureopenairesource.md) `get` -- Gets the parent Azure OpenAI resource.
- `skuCapacity`: `number` `get - set` -- Gets the capacity of the SKU.
- `skuName`: `string` `get - set` -- Gets the name of the SKU.

## Methods

- [withProperties](/reference/api/typescript/aspire.hosting.azure.cognitiveservices/azureopenaideploymentresource/withproperties.md) -- `method` -- Allows setting the properties of an Azure OpenAI Deployment resource.
    ```typescript
  withProperties(configure: (obj: AzureOpenAIDeploymentResource) => Promise<void>): AzureOpenAIDeploymentResource
  ```
