On Prem To the Cloud: Everything As Code (Ep 4)
Mar 16, 2021Steven Murawski

Summary
This post details the use of Azure Policy for Compliance as Code, specifically demonstrating how to implement a policy to prevent opening port 3389 to the internet. It explains Azure Policy definitions, initiatives, and assignments, and provides a PowerShell script for deploying and managing policy definitions. The post also covers using ARM templates for Infrastructure as Code, highlighting the Azure Resource Manager (ARM) Tools extension for VS Code, the 'Export Template' feature, and the '_what-if_' operation for validating deployments. It shows an example of defining a storage account and a virtual machine resource within an ARM template.