# getPostgreSqlServerKeyByIdentifier

- Module: [Aspire.Hosting.Azure.Provisioning.PostgreSql](/reference/api/typescript/aspire.hosting.azure.provisioning.postgresql.md)
- Version: `17.0.0-preview.1.26567.5`
- Kind: `method`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

Gets a PostgreSqlServerKey provisioning resource by its Bicep identifier.

## Definition

```typescript
interface AzureResourceInfrastructure {
  // ... omitted for brevity
  getPostgreSqlServerKeyByIdentifier(bicepIdentifier: string): PostgreSqlServerKeyProxy
}
```

## Parameters

- `bicepIdentifier` (`string`)

## Returns

[PostgreSqlServerKeyProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.postgresql/postgresqlserverkeyproxy.md)

## Applies to

- [AzureResourceInfrastructure](/reference/api/typescript/aspire.hosting.azure.provisioning.postgresql/azureresourceinfrastructure.md)
