We've been down this road before where developers had to be taught not to manually create databases and tables. Now, in the cloud world, we're saying the same thing again: Don't manually create Azure resources.
This is the most common and the worst. This is bad because it requires manual effort to reproduce and leaves margin for human error. Manually provisioning resources can also lead to configuration drift, which is to say that over time it can be difficult to keep track of which deployment configurations were made and why.
❌ Figure: Figure (animated gif): Bad example - Creating resources manually
Some people half solve the problem by manually creating and saving the script. This is also bad because it’s like eating ice cream and brushing your teeth – it doesn’t solve the health problem.
❌ Figure: Bad example – Exporting your Resource Group as an ARM template defined in JSON
❌ Figure: Warning - The templates are crazy verbose. They often don't work and need to be manually tweaked
Tip: Save infrastructure scripts/templates in a folder called 'infra'.
So if you aren't manually creating your Azure resources, what options do you have?
Farmer - Making repeatable Azure deployments easy!

Bicep - a declarative language for describing and deploying Azure resources
Tip: If you are assigning any role assignment using bicep, make sure it doesn't exist before. (Using Azure Portal)
Announcement info: Project Bicep – Next Generation ARM Templates
Example Bicep files: Fullstack Webapp made with Bicep
✅ Figure: Good example - Author your own Bicep templates in Visual Studio Code using the Bicep Extension
The other option when moving to an automated Infrastructure as Code (IaC) solution is to move to a paid provider like Pulumi or Terraform. These solutions are ideal if you are using multiple cloud providers or if you want to control the software installation as well as the infrastructure.
✅ Figure: Good example - Code from the Pulumi Azure NextGen provider demo with Azure resources defined in C#
✅ Figure: Good example - From the console simply run 'pulumi up' to deploy your resources to Azure
Tip: After you’ve made your changes, don’t forget to visualize your new resources.