Surviving Azure Policies: Zero-Trust Hub & Spoke with Terraform
The article discusses challenges faced when using Terraform with Azure Policies in a zero-trust architecture. It highlights how Azure Policies can interfere with Terraform deployments by injecting compliance tags that lead to pipeline failures. The author provides solutions for managing these issues, including specific Terraform configurations to ignore certain tags and implementing network security groups effectively.
- ▪Azure Policies can silently modify resources, causing Terraform to detect drift and fail deployments.
- ▪The article suggests configuring Terraform to ignore specific compliance tags to prevent pipeline failures.
- ▪Implementing a zero-trust network security group at the creation of subnets is crucial for compliance.
Opening excerpt (first ~120 words) tap to expand
try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 3933869) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } david Posted on May 18 • Originally published at woitzik.dev Surviving Azure Policies: Zero-Trust Hub & Spoke with Terraform #terraform #azure #devops #security Your Terraform pipeline is green. The deployment completes. You grab a coffee. Ten minutes later, Azure Policy has silently rewritten three of your resources. You run terraform plan. It detects drift. It tries to revert. Policy blocks the revert with a cryptic permission error.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).