# MigrationConfigurationProxy

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

## Definition

```typescript
interface MigrationConfigurationProxy {
  readonly id: BicepValueProxy;
  readonly location: BicepValueProxy;
  readonly migrationState: BicepValueProxy | string;
  parent: ServiceBusNamespaceProxy;
  readonly pendingReplicationOperationsCount: BicepValueProxy | number;
  postMigrationName: BicepValueProxy | string;
  readonly provisioningState: BicepValueProxy | string;
  readonly systemData: ServiceBusSystemDataProxy;
  targetServiceBusNamespace: BicepValueProxy;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearPostMigrationName(): void;
  clearTargetServiceBusNamespace(): void;
}
```

## Properties

- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `location`: `BicepValueProxy` `get` -- Gets the Location provisioning property.
- `migrationState`: `BicepValueProxy | string` `get` -- Gets the MigrationState provisioning property.
- `parent`: [ServiceBusNamespaceProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.servicebus/servicebusnamespaceproxy.md) `get - set` -- Gets or sets the Parent provisioning property.
- `pendingReplicationOperationsCount`: `BicepValueProxy | number` `get` -- Gets the PendingReplicationOperationsCount provisioning property.
- `postMigrationName`: `BicepValueProxy | string` `get - set` -- Gets or sets the PostMigrationName provisioning property.
- `provisioningState`: `BicepValueProxy | string` `get` -- Gets the ProvisioningState provisioning property.
- `systemData`: [ServiceBusSystemDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.servicebus/servicebussystemdataproxy.md) `get` -- Gets the SystemData provisioning property.
- `targetServiceBusNamespace`: `BicepValueProxy` `get - set` -- Gets or sets the TargetServiceBusNamespace provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.servicebus/migrationconfigurationproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearPostMigrationName](/reference/api/typescript/aspire.hosting.azure.provisioning.servicebus/migrationconfigurationproxy/clearpostmigrationname.md) -- `method` -- Clears the PostMigrationName provisioning property.
    ```typescript
  clearPostMigrationName(): void
  ```
- [clearTargetServiceBusNamespace](/reference/api/typescript/aspire.hosting.azure.provisioning.servicebus/migrationconfigurationproxy/cleartargetservicebusnamespace.md) -- `method` -- Clears the TargetServiceBusNamespace provisioning property.
    ```typescript
  clearTargetServiceBusNamespace(): void
  ```
