# AzureOpenAIDeploymentResource.withProperties

- Module: [Aspire.Hosting.Azure.CognitiveServices](/reference/api/typescript/aspire.hosting.azure.cognitiveservices.md)
- Defined on: [AzureOpenAIDeploymentResource](/reference/api/typescript/aspire.hosting.azure.cognitiveservices/azureopenaideploymentresource.md)
- Version: `13.4.0`
- Kind: `method`

Allows setting the properties of an Azure OpenAI Deployment resource.

## Definition

```typescript
interface AzureOpenAIDeploymentResource {
  // ... omitted for brevity
  withProperties(configure: (obj: AzureOpenAIDeploymentResource) => Promise<void>): AzureOpenAIDeploymentResource;
}
```

## Signature

```typescript
withProperties(configure: (obj: AzureOpenAIDeploymentResource) => Promise<void>): AzureOpenAIDeploymentResource
```

## Parameters

- `configure` (`(obj: AzureOpenAIDeploymentResource) => Promise<void>`)

## Returns

[AzureOpenAIDeploymentResource](/reference/api/typescript/aspire.hosting.azure.cognitiveservices/azureopenaideploymentresource.md) `builder`

## Defined on

- [AzureOpenAIDeploymentResource](/reference/api/typescript/aspire.hosting.azure.cognitiveservices/azureopenaideploymentresource.md) -- `handle`
