# SyncAgentProxy

- 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 SyncAgent Azure Provisioning model.

## Definition

```typescript
interface SyncAgentProxy {
  readonly expireOn: BicepValueProxy | datetimeoffset;
  readonly id: BicepValueProxy;
  readonly isUpToDate: BicepValueProxy | boolean;
  readonly lastAliveOn: BicepValueProxy | datetimeoffset;
  name: BicepValueProxy | string;
  parent: SqlServerProxy;
  readonly state: BicepValueProxy | SyncAgentState;
  syncDatabaseId: BicepValueProxy;
  readonly systemData: SqlSystemDataProxy;
  readonly version: BicepValueProxy | string;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearName(): void;
  clearSyncDatabaseId(): void;
}
```

## Properties

- `expireOn`: `BicepValueProxy | datetimeoffset` `get` -- Gets the ExpireOn provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `isUpToDate`: `BicepValueProxy | boolean` `get` -- Gets the IsUpToDate provisioning property.
- `lastAliveOn`: `BicepValueProxy | datetimeoffset` `get` -- Gets the LastAliveOn provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `parent`: [SqlServerProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/sqlserverproxy.md) `get - set` -- Gets or sets the Parent provisioning property.
- `state`: `BicepValueProxy | SyncAgentState` `get` -- Gets the State provisioning property.
- `syncDatabaseId`: `BicepValueProxy` `get - set` -- Gets or sets the SyncDatabaseId provisioning property.
- `systemData`: [SqlSystemDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/sqlsystemdataproxy.md) `get` -- Gets the SystemData provisioning property.
- `version`: `BicepValueProxy | string` `get` -- Gets the Version provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/syncagentproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/syncagentproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearSyncDatabaseId](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/syncagentproxy/clearsyncdatabaseid.md) -- `method` -- Clears the SyncDatabaseId provisioning property.
    ```typescript
  clearSyncDatabaseId(): void
  ```
