# PostgreSqlFlexibleServerConfigurationProxy.addTo

- Module: [Aspire.Hosting.Azure.Provisioning.PostgreSql](/reference/api/typescript/aspire.hosting.azure.provisioning.postgresql.md)
- Defined on: [PostgreSqlFlexibleServerConfigurationProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.postgresql/postgresqlflexibleserverconfigurationproxy.md)
- Version: `17.0.0-preview.1.26567.5`
- Kind: `method`

Adds this provisioning resource to the Azure resource infrastructure.

## Definition

```typescript
interface PostgreSqlFlexibleServerConfigurationProxy {
  // ... omitted for brevity
  addTo(infrastructure: AzureResourceInfrastructure): void;
}
```

## Signature

```typescript
addTo(infrastructure: AzureResourceInfrastructure): void
```

## Parameters

- `infrastructure` (`AzureResourceInfrastructure`)

## Defined on

- [PostgreSqlFlexibleServerConfigurationProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.postgresql/postgresqlflexibleserverconfigurationproxy.md) -- `handle`
