# ServiceBusDisasterRecoveryProxy

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

Represents the ServiceBusDisasterRecovery Azure Provisioning model.

## Definition

```typescript
interface ServiceBusDisasterRecoveryProxy {
  alternateName: BicepValueProxy | string;
  readonly id: BicepValueProxy;
  readonly location: BicepValueProxy;
  readonly name: BicepValueProxy | string;
  parent: ServiceBusNamespaceProxy;
  partnerNamespace: BicepValueProxy | string;
  readonly pendingReplicationOperationsCount: BicepValueProxy | number;
  readonly provisioningState: BicepValueProxy | ServiceBusDisasterRecoveryProvisioningState;
  readonly role: BicepValueProxy | ServiceBusDisasterRecoveryRole;
  readonly systemData: ServiceBusSystemDataProxy;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearAlternateName(): void;
  clearPartnerNamespace(): void;
}
```

## Properties

- `alternateName`: `BicepValueProxy | string` `get - set` -- Gets or sets the AlternateName provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `location`: `BicepValueProxy` `get` -- Gets the Location provisioning property.
- `name`: `BicepValueProxy | string` `get` -- Gets the Name provisioning property.
- `parent`: [ServiceBusNamespaceProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.servicebus/servicebusnamespaceproxy.md) `get - set` -- Gets or sets the Parent provisioning property.
- `partnerNamespace`: `BicepValueProxy | string` `get - set` -- Gets or sets the PartnerNamespace provisioning property.
- `pendingReplicationOperationsCount`: `BicepValueProxy | number` `get` -- Gets the PendingReplicationOperationsCount provisioning property.
- `provisioningState`: `BicepValueProxy | ServiceBusDisasterRecoveryProvisioningState` `get` -- Gets the ProvisioningState provisioning property.
- `role`: `BicepValueProxy | ServiceBusDisasterRecoveryRole` `get` -- Gets the Role provisioning property.
- `systemData`: [ServiceBusSystemDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.servicebus/servicebussystemdataproxy.md) `get` -- Gets the SystemData provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.servicebus/servicebusdisasterrecoveryproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearAlternateName](/reference/api/typescript/aspire.hosting.azure.provisioning.servicebus/servicebusdisasterrecoveryproxy/clearalternatename.md) -- `method` -- Clears the AlternateName provisioning property.
    ```typescript
  clearAlternateName(): void
  ```
- [clearPartnerNamespace](/reference/api/typescript/aspire.hosting.azure.provisioning.servicebus/servicebusdisasterrecoveryproxy/clearpartnernamespace.md) -- `method` -- Clears the PartnerNamespace provisioning property.
    ```typescript
  clearPartnerNamespace(): void
  ```
