# ManagedDatabaseProxy

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

## Definition

```typescript
interface ManagedDatabaseProxy {
  allowAutoCompleteRestore: BicepValueProxy | boolean;
  catalogCollation: BicepValueProxy | CatalogCollationType;
  collation: BicepValueProxy | string;
  readonly createdOn: BicepValueProxy | datetimeoffset;
  createMode: BicepValueProxy | ManagedDatabaseCreateMode;
  crossSubscriptionRestorableDroppedDatabaseId: BicepValueProxy;
  crossSubscriptionSourceDatabaseId: BicepValueProxy;
  crossSubscriptionTargetManagedInstanceId: BicepValueProxy;
  readonly defaultSecondaryLocation: BicepValueProxy;
  readonly earliestRestorePoint: BicepValueProxy | datetimeoffset;
  readonly failoverGroupId: BicepValueProxy;
  readonly id: BicepValueProxy;
  isLedgerOn: BicepValueProxy | boolean;
  lastBackupName: BicepValueProxy | string;
  location: BicepValueProxy;
  longTermRetentionBackupResourceId: BicepValueProxy;
  name: BicepValueProxy | string;
  parent: ManagedInstanceProxy;
  recoverableDatabaseId: BicepValueProxy;
  restorableDroppedDatabaseId: BicepValueProxy;
  restorePointInTime: BicepValueProxy | datetimeoffset;
  sourceDatabaseId: BicepValueProxy;
  readonly status: BicepValueProxy | ManagedDatabaseStatus;
  storageContainerIdentity: BicepValueProxy | string;
  storageContainerSasToken: BicepValueProxy | string;
  storageContainerUri: BicepValueProxy | uri;
  readonly systemData: SqlSystemDataProxy;
  tags: Aspire_Hosting_Azure_Provisioning_Sql_Generated_DictionaryOfStringProxy;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearAllowAutoCompleteRestore(): void;
  clearCatalogCollation(): void;
  clearCollation(): void;
  clearCreateMode(): void;
  clearCrossSubscriptionRestorableDroppedDatabaseId(): void;
  clearCrossSubscriptionSourceDatabaseId(): void;
  clearCrossSubscriptionTargetManagedInstanceId(): void;
  clearIsLedgerOn(): void;
  clearLastBackupName(): void;
  clearLocation(): void;
  clearLongTermRetentionBackupResourceId(): void;
  clearName(): void;
  clearRecoverableDatabaseId(): void;
  clearRestorableDroppedDatabaseId(): void;
  clearRestorePointInTime(): void;
  clearSourceDatabaseId(): void;
  clearStorageContainerIdentity(): void;
  clearStorageContainerSasToken(): void;
  clearStorageContainerUri(): void;
}
```

## Properties

- `allowAutoCompleteRestore`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the AllowAutoCompleteRestore provisioning property.
- `catalogCollation`: `BicepValueProxy | CatalogCollationType` `get - set` -- Gets or sets the CatalogCollation provisioning property.
- `collation`: `BicepValueProxy | string` `get - set` -- Gets or sets the Collation provisioning property.
- `createdOn`: `BicepValueProxy | datetimeoffset` `get` -- Gets the CreatedOn provisioning property.
- `createMode`: `BicepValueProxy | ManagedDatabaseCreateMode` `get - set` -- Gets or sets the CreateMode provisioning property.
- `crossSubscriptionRestorableDroppedDatabaseId`: `BicepValueProxy` `get - set` -- Gets or sets the CrossSubscriptionRestorableDroppedDatabaseId provisioning property.
- `crossSubscriptionSourceDatabaseId`: `BicepValueProxy` `get - set` -- Gets or sets the CrossSubscriptionSourceDatabaseId provisioning property.
- `crossSubscriptionTargetManagedInstanceId`: `BicepValueProxy` `get - set` -- Gets or sets the CrossSubscriptionTargetManagedInstanceId provisioning property.
- `defaultSecondaryLocation`: `BicepValueProxy` `get` -- Gets the DefaultSecondaryLocation provisioning property.
- `earliestRestorePoint`: `BicepValueProxy | datetimeoffset` `get` -- Gets the EarliestRestorePoint provisioning property.
- `failoverGroupId`: `BicepValueProxy` `get` -- Gets the FailoverGroupId provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `isLedgerOn`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the IsLedgerOn provisioning property.
- `lastBackupName`: `BicepValueProxy | string` `get - set` -- Gets or sets the LastBackupName provisioning property.
- `location`: `BicepValueProxy` `get - set` -- Gets or sets the Location provisioning property.
- `longTermRetentionBackupResourceId`: `BicepValueProxy` `get - set` -- Gets or sets the LongTermRetentionBackupResourceId provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `parent`: [ManagedInstanceProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/managedinstanceproxy.md) `get - set` -- Gets or sets the Parent provisioning property.
- `recoverableDatabaseId`: `BicepValueProxy` `get - set` -- Gets or sets the RecoverableDatabaseId provisioning property.
- `restorableDroppedDatabaseId`: `BicepValueProxy` `get - set` -- Gets or sets the RestorableDroppedDatabaseId provisioning property.
- `restorePointInTime`: `BicepValueProxy | datetimeoffset` `get - set` -- Gets or sets the RestorePointInTime provisioning property.
- `sourceDatabaseId`: `BicepValueProxy` `get - set` -- Gets or sets the SourceDatabaseId provisioning property.
- `status`: `BicepValueProxy | ManagedDatabaseStatus` `get` -- Gets the Status provisioning property.
- `storageContainerIdentity`: `BicepValueProxy | string` `get - set` -- Gets or sets the StorageContainerIdentity provisioning property.
- `storageContainerSasToken`: `BicepValueProxy | string` `get - set` -- Gets or sets the StorageContainerSasToken provisioning property.
- `storageContainerUri`: `BicepValueProxy | uri` `get - set` -- Gets or sets the StorageContainerUri provisioning property.
- `systemData`: [SqlSystemDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/sqlsystemdataproxy.md) `get` -- Gets the SystemData provisioning property.
- `tags`: [Aspire_Hosting_Azure_Provisioning_Sql_Generated_DictionaryOfStringProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/aspire-hosting-azure-provisioning-sql-generated-dictionaryofstringproxy.md) `get - set` -- Gets or sets the Tags provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/manageddatabaseproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearAllowAutoCompleteRestore](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/manageddatabaseproxy/clearallowautocompleterestore.md) -- `method` -- Clears the AllowAutoCompleteRestore provisioning property.
    ```typescript
  clearAllowAutoCompleteRestore(): void
  ```
- [clearCatalogCollation](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/manageddatabaseproxy/clearcatalogcollation.md) -- `method` -- Clears the CatalogCollation provisioning property.
    ```typescript
  clearCatalogCollation(): void
  ```
- [clearCollation](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/manageddatabaseproxy/clearcollation.md) -- `method` -- Clears the Collation provisioning property.
    ```typescript
  clearCollation(): void
  ```
- [clearCreateMode](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/manageddatabaseproxy/clearcreatemode.md) -- `method` -- Clears the CreateMode provisioning property.
    ```typescript
  clearCreateMode(): void
  ```
- [clearCrossSubscriptionRestorableDroppedDatabaseId](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/manageddatabaseproxy/clearcrosssubscriptionrestorabledroppeddatabaseid.md) -- `method` -- Clears the CrossSubscriptionRestorableDroppedDatabaseId provisioning property.
    ```typescript
  clearCrossSubscriptionRestorableDroppedDatabaseId(): void
  ```
- [clearCrossSubscriptionSourceDatabaseId](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/manageddatabaseproxy/clearcrosssubscriptionsourcedatabaseid.md) -- `method` -- Clears the CrossSubscriptionSourceDatabaseId provisioning property.
    ```typescript
  clearCrossSubscriptionSourceDatabaseId(): void
  ```
- [clearCrossSubscriptionTargetManagedInstanceId](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/manageddatabaseproxy/clearcrosssubscriptiontargetmanagedinstanceid.md) -- `method` -- Clears the CrossSubscriptionTargetManagedInstanceId provisioning property.
    ```typescript
  clearCrossSubscriptionTargetManagedInstanceId(): void
  ```
- [clearIsLedgerOn](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/manageddatabaseproxy/clearisledgeron.md) -- `method` -- Clears the IsLedgerOn provisioning property.
    ```typescript
  clearIsLedgerOn(): void
  ```
- [clearLastBackupName](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/manageddatabaseproxy/clearlastbackupname.md) -- `method` -- Clears the LastBackupName provisioning property.
    ```typescript
  clearLastBackupName(): void
  ```
- [clearLocation](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/manageddatabaseproxy/clearlocation.md) -- `method` -- Clears the Location provisioning property.
    ```typescript
  clearLocation(): void
  ```
- [clearLongTermRetentionBackupResourceId](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/manageddatabaseproxy/clearlongtermretentionbackupresourceid.md) -- `method` -- Clears the LongTermRetentionBackupResourceId provisioning property.
    ```typescript
  clearLongTermRetentionBackupResourceId(): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/manageddatabaseproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearRecoverableDatabaseId](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/manageddatabaseproxy/clearrecoverabledatabaseid.md) -- `method` -- Clears the RecoverableDatabaseId provisioning property.
    ```typescript
  clearRecoverableDatabaseId(): void
  ```
- [clearRestorableDroppedDatabaseId](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/manageddatabaseproxy/clearrestorabledroppeddatabaseid.md) -- `method` -- Clears the RestorableDroppedDatabaseId provisioning property.
    ```typescript
  clearRestorableDroppedDatabaseId(): void
  ```
- [clearRestorePointInTime](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/manageddatabaseproxy/clearrestorepointintime.md) -- `method` -- Clears the RestorePointInTime provisioning property.
    ```typescript
  clearRestorePointInTime(): void
  ```
- [clearSourceDatabaseId](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/manageddatabaseproxy/clearsourcedatabaseid.md) -- `method` -- Clears the SourceDatabaseId provisioning property.
    ```typescript
  clearSourceDatabaseId(): void
  ```
- [clearStorageContainerIdentity](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/manageddatabaseproxy/clearstoragecontaineridentity.md) -- `method` -- Clears the StorageContainerIdentity provisioning property.
    ```typescript
  clearStorageContainerIdentity(): void
  ```
- [clearStorageContainerSasToken](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/manageddatabaseproxy/clearstoragecontainersastoken.md) -- `method` -- Clears the StorageContainerSasToken provisioning property.
    ```typescript
  clearStorageContainerSasToken(): void
  ```
- [clearStorageContainerUri](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/manageddatabaseproxy/clearstoragecontaineruri.md) -- `method` -- Clears the StorageContainerUri provisioning property.
    ```typescript
  clearStorageContainerUri(): void
  ```
