When writing our ARM templates with Visual Studio Code, there is a feature that is usually overlooked but saves a lot of time by making sure that you don’t have typos being pushed to your release pipelines. (And it saves money by reducing the release pipeline time.) It also gives you good recommendations, such as repeated code that can be removed to clean your code.
To view the status of your ARM template, click on the two icons highlighted on Item 1, and view the recommendations before submitting a commit of your code.
In the example below, I hadn’t noticed that I had added the action item twice.
As you can see, Visual Studio Code warned me, making my job much easier.
More Quick Tips articles
- Using Azure ephemeral disks when provisioning VMs with ARM
- Checking services availability in Azure and Azure Stack Hub
- Reading text files with PowerShell and Linux bash shell
- Integrating Microsoft Defender with Cloud App Security
- New from Microsoft: Azure Security Center onboarding guide