# WebPubSubServiceProxy.addTo

- Module: [Aspire.Hosting.Azure.Provisioning.WebPubSub](/reference/api/typescript/aspire.hosting.azure.provisioning.webpubsub.md)
- Defined on: [WebPubSubServiceProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.webpubsub/webpubsubserviceproxy.md)
- Version: `13.6.0-preview.1.26478.8`
- Kind: `method`

Adds this provisioning resource to the Azure resource infrastructure.

## Definition

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

## Signature

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

## Parameters

- `infrastructure` (`AzureResourceInfrastructure`)

## Defined on

- [WebPubSubServiceProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.webpubsub/webpubsubserviceproxy.md) -- `handle`
