# addLavinMQ

- Module: [CommunityToolkit.Aspire.Hosting.LavinMQ](/reference/api/typescript/communitytoolkit.aspire.hosting.lavinmq.md)
- Version: `13.4.0`
- Kind: `method`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire)

Adds a LavinMQ container resource to the distributed application builder. Configures the resource with specified parameters and sets up health checks for the resource.

## Definition

```typescript
interface IDistributedApplicationBuilder {
  // ... omitted for brevity
  addLavinMQ(
    name: string,
    amqpPort?: number,
    managementPort?: number): LavinMQContainerResource
}
```

## Parameters

- `name` (`string`)
- `amqpPort` (`number`) `optional` `= 5672`
- `managementPort` (`number`) `optional` `= 15672`

## Returns

[LavinMQContainerResource](/reference/api/typescript/communitytoolkit.aspire.hosting.lavinmq/lavinmqcontainerresource.md) `builder`

## Applies to

- [IDistributedApplicationBuilder](/reference/api/typescript/communitytoolkit.aspire.hosting.lavinmq/idistributedapplicationbuilder.md)
