# DistributedAvailabilityGroupDatabaseProxy

- Module: [Aspire.Hosting.Azure.Provisioning.Sql](/reference/api/typescript/aspire.hosting.azure.provisioning.sql.md)
- Version: `13.6.0-preview.1.26478.8`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62)

Represents the DistributedAvailabilityGroupDatabase Azure Provisioning model.

## Definition

```typescript
interface DistributedAvailabilityGroupDatabaseProxy {
  readonly connectedState: BicepValueProxy | SqlReplicaConnectedState;
  databaseName: BicepValueProxy | string;
  readonly instanceRedoReplicationLagSeconds: BicepValueProxy | number;
  readonly instanceReplicaId: BicepValueProxy | guid;
  readonly instanceSendReplicationLagSeconds: BicepValueProxy | number;
  readonly lastBackupLsn: BicepValueProxy | string;
  readonly lastBackupOn: BicepValueProxy | datetimeoffset;
  readonly lastCommitLsn: BicepValueProxy | string;
  readonly lastCommitOn: BicepValueProxy | datetimeoffset;
  readonly lastHardenedLsn: BicepValueProxy | string;
  readonly lastHardenedOn: BicepValueProxy | datetimeoffset;
  readonly lastReceivedLsn: BicepValueProxy | string;
  readonly lastReceivedOn: BicepValueProxy | datetimeoffset;
  readonly lastSentLsn: BicepValueProxy | string;
  readonly lastSentOn: BicepValueProxy | datetimeoffset;
  readonly mostRecentLinkError: BicepValueProxy | string;
  readonly partnerAuthCertValidity: SqlServerCertificateInfoProxy;
  readonly partnerReplicaId: BicepValueProxy | guid;
  readonly replicaState: BicepValueProxy | string;
  readonly seedingProgress: BicepValueProxy | string;
  readonly synchronizationHealth: BicepValueProxy | SqlReplicaSynchronizationHealth;
  clearDatabaseName(): void;
}
```

## Properties

- `connectedState`: `BicepValueProxy | SqlReplicaConnectedState` `get` -- Gets the ConnectedState provisioning property.
- `databaseName`: `BicepValueProxy | string` `get - set` -- Gets or sets the DatabaseName provisioning property.
- `instanceRedoReplicationLagSeconds`: `BicepValueProxy | number` `get` -- Gets the InstanceRedoReplicationLagSeconds provisioning property.
- `instanceReplicaId`: `BicepValueProxy | guid` `get` -- Gets the InstanceReplicaId provisioning property.
- `instanceSendReplicationLagSeconds`: `BicepValueProxy | number` `get` -- Gets the InstanceSendReplicationLagSeconds provisioning property.
- `lastBackupLsn`: `BicepValueProxy | string` `get` -- Gets the LastBackupLsn provisioning property.
- `lastBackupOn`: `BicepValueProxy | datetimeoffset` `get` -- Gets the LastBackupOn provisioning property.
- `lastCommitLsn`: `BicepValueProxy | string` `get` -- Gets the LastCommitLsn provisioning property.
- `lastCommitOn`: `BicepValueProxy | datetimeoffset` `get` -- Gets the LastCommitOn provisioning property.
- `lastHardenedLsn`: `BicepValueProxy | string` `get` -- Gets the LastHardenedLsn provisioning property.
- `lastHardenedOn`: `BicepValueProxy | datetimeoffset` `get` -- Gets the LastHardenedOn provisioning property.
- `lastReceivedLsn`: `BicepValueProxy | string` `get` -- Gets the LastReceivedLsn provisioning property.
- `lastReceivedOn`: `BicepValueProxy | datetimeoffset` `get` -- Gets the LastReceivedOn provisioning property.
- `lastSentLsn`: `BicepValueProxy | string` `get` -- Gets the LastSentLsn provisioning property.
- `lastSentOn`: `BicepValueProxy | datetimeoffset` `get` -- Gets the LastSentOn provisioning property.
- `mostRecentLinkError`: `BicepValueProxy | string` `get` -- Gets the MostRecentLinkError provisioning property.
- `partnerAuthCertValidity`: [SqlServerCertificateInfoProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/sqlservercertificateinfoproxy.md) `get` -- Gets the PartnerAuthCertValidity provisioning property.
- `partnerReplicaId`: `BicepValueProxy | guid` `get` -- Gets the PartnerReplicaId provisioning property.
- `replicaState`: `BicepValueProxy | string` `get` -- Gets the ReplicaState provisioning property.
- `seedingProgress`: `BicepValueProxy | string` `get` -- Gets the SeedingProgress provisioning property.
- `synchronizationHealth`: `BicepValueProxy | SqlReplicaSynchronizationHealth` `get` -- Gets the SynchronizationHealth provisioning property.

## Methods

- [clearDatabaseName](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/distributedavailabilitygroupdatabaseproxy/cleardatabasename.md) -- `method` -- Clears the DatabaseName provisioning property.
    ```typescript
  clearDatabaseName(): void
  ```
