Azure service bus emulator destroys secret.json file when adding its own configuration
- 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
### Describe the bug
When adding the service bus emulator in an aspire project and running the project, it will add its password to the secret.json file. While doing so, it will reformat, reorder and destroy some values.
I can't really paste an example since my projects contains a lot of things I don't want to share publicly.
### Expected Behavior
Adds the value at the end of the file without messing with it.
### Steps To Reproduce
1-Have an aspire project that uses secret file.
2-Add these lines to the project (with the necessary references):
var serviceBus = builder.AddAzureServiceBus("messaging");
serviceBus.AddServiceBusQueue("queue");
serviceBus.AddServiceBusTopic("topic");
3-Add your own configuration to the secret.json file.
4-Run the project, the secret.json file will be rewritten, reordered and values will be changed as if it was done by some AI hallucinating.
### Exceptions (if any)
_No response_
### .NET Version info
_No response_
### Anything else?
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.