PSRule icon indicating copy to clipboard operation
PSRule copied to clipboard

[FEATURE] aspnetcore aspire support

Open ysmoradi opened this issue 1 month ago • 2 comments

Your suggestion

Considering I can use aspire as Iac to build azure resources (It uses Azure Provisioning SDK internally) How can I apply PSRule with ease against my aspire project?

P.S. I using both aspire nuget packages like Redis and Custom bicep files

Alternatives

I might be able to generate bicep files, copy them somewhere and run PSRule against them.

Additional context

No response

ysmoradi avatar Nov 19 '25 12:11 ysmoradi

Thanks for raising your first issue, the team appreciates the time you have taken 😉

github-actions[bot] avatar Nov 19 '25 12:11 github-actions[bot]

Hi @ysmoradi, thanks for the question. Are you asking about testing Bicep files that have been generated by Aspire?

If you have not generated Bicep files but have deployed Azure resources to Azure then you can use the "in-flight" method to test resources deployed to Azure, see: https://azure.github.io/PSRule.Rules.Azure/export-rule-data/

If you mean testing Bicep files generated by Aspire, I am less familiar with this option then try: https://azure.github.io/PSRule.Rules.Azure/creating-your-pipeline/

If you mean you have tried to test Bicep files but have errors or it doesn't work, please share some additional details.

BernieWhite avatar Nov 26 '25 00:11 BernieWhite