Nubesgen is an excellent open-source tool that can be used to generate Infrastructure-as-code configuration files with Terraform or Bicep for Azure web app-related projects.
PS – The support for code generation is limited to some resources. You can’t generate the code for everything atm.
Refer : NubesGen – going to production on Azure is only one `git push` away.
And head to the generate option (Nu)
Choose the code type:

Give a name to the project, choose a location and the application type:

Choose the DB (if needed), the size and network config:

Choose the Add-ons and click on Download option:

The files along with Modules will be auto-generated:

The modules will contain the resources and main file will have all the inputs calling the module files:

