infrastructure-testing

Automate testing of Terraform, Bicep, and Azure infrastructure code.

1|Updated Apr 19, 2026
One-click install
npx skills add https://github.com/SandboxServers/github-copilot-agents --skill infrastructure-testing-sandboxservers
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: infrastructure-testing
Source: https://github.com/SandboxServers/github-copilot-agents/tree/main/skills/infrastructure-testing.skill
Command: npx skills add https://github.com/SandboxServers/github-copilot-agents --skill infrastructure-testing-sandboxservers

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires terraform, bicep, azure, checkov, terraform-compliance, infracost, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates testing strategies for Terraform, Bicep, and Azure infrastructure, ensuring code quality and compliance before deployment.

Core Features & Use Cases

  • Static Analysis: Lint, format, and scan for security and compliance issues.
  • Plan Validation: Preview changes and catch unexpected destroys.
  • Terraform Test Framework: Run HCL-based tests that deploy, validate, and destroy.
  • Bicep Testing: Perform what-if operations and validate ARM templates.
  • Policy Testing: Verify deployed resources comply with assigned policies.
  • Smoke Tests: Run immediately after deployment to ensure system health.
  • Canary Deployments: Gradually increase traffic to new versions.
  • CI Pipeline Integration: Integrate with CI pipelines for automated testing.

Quick Start

Run the infrastructure-testing skill to validate your Terraform or Bicep deployment.

Frequently Asked Questions about infrastructure-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate infrastructure testing for Terraform and Bicep in a CI pipeline?

Automate infrastructure testing by integrating static analysis, plan validation, and policy compliance checks directly into your CI pipeline to validate Terraform and Bicep code before deployment. This ensures code quality and prevents unexpected resource destruction.

What is the best way to validate Bicep ARM templates before deploying to Azure?

The best way to validate Bicep ARM templates is by performing what-if operations to preview changes and verify template configurations. This process catches deployment issues early without applying actual changes to your Azure environment.

How can I run policy compliance and security scans on my Terraform code?

Run policy compliance and security scans on Terraform code using tools like checkov and terraform-compliance. These tools perform static analysis to detect misconfigurations and ensure your infrastructure meets assigned security policies.

Do I need the Azure SDK installed to test Terraform and Bicep infrastructure?

Yes, you need the Azure SDK installed along with Terraform and Bicep to test infrastructure. These dependencies are required to execute plan validations, deploy test environments, and run smoke tests effectively.

Can I use the Terraform Test Framework to automatically deploy and destroy resources?

Yes, the Terraform Test Framework allows you to write HCL-based tests that automatically deploy, validate, and destroy resources. This ensures your infrastructure configurations work correctly without leaving behind test environments.

How do smoke tests work after an Azure infrastructure deployment?

Smoke tests run immediately after an Azure infrastructure deployment to verify system health and availability. They validate that deployed resources are functioning correctly before you proceed with canary deployments or full traffic routing.