Azure / Azure-Verified-Modules

Azure Verified Modules (AVM) is an initiative to consolidate and set the standards for what a good Infrastructure-as-Code module looks like. Modules will then align to these standards, across languages (Bicep, Terraform etc.) and will then be classified as AVMs and available from their respective language specific registries.
https://aka.ms/AVM
MIT License
365 stars 87 forks source link

[Question/Feedback]: #1470

Open ahelland opened 1 month ago

ahelland commented 1 month ago

Check for previous/existing GitHub issues

Description

Currently .NET Aspire supports provisioning Azure resources for development-time usage: https://github.com/dotnet/aspire/tree/main/src/Aspire.Hosting.Azure

You create Bicep files like you normally do, inject params & use the outputs. For secrets you can employ some secret sauce where you add a Key Vault Secret within your Bicep and Aspire creates a Vault and stuffs it in there so you don't risk checking in things you shouldn't.

As it's plain Bicep you can of course add Verified Modules as you see fit within, but that's outside Aspire's scope. For deployment-time you're driven towards using the Azure Developer CLI. (Which isn't using AVM either, but that's a separate thread: https://github.com/Azure/azure-dev/issues/2386)

I think it would be useful to be able to skip straight to consuming modules from Aspire code like var foo = builder.AddBicepVerifiedModule(...)

On a technical level it would probably be useful to support modules in a generic way, but after all this is the AVM repo :)

Does this make sense or should it be filed over in the Aspire repo instead? Or is it a matter of "if the community wants it; build it"?

microsoft-github-policy-service[bot] commented 1 month ago

[!IMPORTANT] The "Needs: Triage :mag:" label must be removed once the triage process is complete!

[!TIP] For additional guidance on how to triage this issue/PR, see the AVM Issue Triage documentation.

matebarabas commented 1 month ago

@Azure/avm-core-team-technical-bicep, can you please help with this question?