Policy: Apply Tags
This demo has a policy to apply tags to resources.
Rung the demo to see what happens when resources are created.
terraform init
terraform apply -auto-approve
az account show
subid='<....>'
az tag create --resource-id "/subscriptions/$subid/resourcegroups/RG6" --tags RGroup=RG6
az network vnet create -g 'RG6' -n 'VNET2'
Clean up after use:
az network vnet delete -g 'RG6' -n 'VNET2' -y
terraform destroy -auto-approve