# ServiceBusRuleProxy.addTo

- Module: [Aspire.Hosting.Azure.Provisioning.ServiceBus](/reference/api/typescript/aspire.hosting.azure.provisioning.servicebus.md)
- Defined on: [ServiceBusRuleProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.servicebus/servicebusruleproxy.md)
- Version: `13.6.0-preview.1.26478.8`
- Kind: `method`

Adds this provisioning resource to the Azure resource infrastructure.

## Definition

```typescript
interface ServiceBusRuleProxy {
  // ... omitted for brevity
  addTo(infrastructure: AzureResourceInfrastructure): void;
}
```

## Signature

```typescript
addTo(infrastructure: AzureResourceInfrastructure): void
```

## Parameters

- `infrastructure` (`AzureResourceInfrastructure`)

## Defined on

- [ServiceBusRuleProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.servicebus/servicebusruleproxy.md) -- `handle`
