microsoft / microsoft/aspire

Add a way to load RabbitMQ container with a predefined configuration in AppHost.

Open
#8,766 2 comments 0 reactions 0 assignees View on GitHub
area-integrations rabbitmq
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Is your feature request related to a problem? Please describe the problem.

I am trying to load an rabbitMQ container into my Aspire solution, but there is no way to do that programmatically.
What should be available
1) Configure Exchanges
2) Configure Users
3) Configure Queues
4) Configure Opt-In Features

Currently, this is a manual process.
After starting the RabbitMQ container with ManagementPluging I log in into RabbitMQ. Activate the opt-in Feature and import the configuration I previously exported with the export function.

### Describe the solution you'd like

I want to have an extension method at hand that I can add to `rabbitMq = builder.AddRabbitMQ("MessageBus").WithManagementPlugin().WithDataVolume();` that will take care of the initial configuration.

### Additional context

This is an example json config file exported from the ManagementPlugin using the export feature.
[rabbitMQ.json](https://github.com/user-attachments/files/19736664/rabbitMQ.json)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.