azurerm-acceptance-testing

Generate and troubleshoot Terraform AzureRM provider acceptance tests using the TestAcc framework.

6|7|Updated Oct 24, 2025
One-click install
npx skills add https://github.com/WodansSon/terraform-azurerm-ai-assisted-development --skill azurerm-acceptance-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azurerm-acceptance-testing
Source: https://github.com/WodansSon/terraform-azurerm-ai-assisted-development/tree/main/.github/skills/azurerm-acceptance-testing
Command: npx skills add https://github.com/WodansSon/terraform-azurerm-ai-assisted-development --skill azurerm-acceptance-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the creation and troubleshooting of acceptance tests for the Terraform AzureRM provider, ensuring consistency and adherence to best practices.

Core Features & Use Cases

  • Test Generation: Assists in writing TestAcc functions, including basic resource validation and import scenarios.
  • Troubleshooting: Provides guidance on diagnosing and resolving common acceptance test failures.
  • Use Case: When adding a new Azure resource to the provider, use this Skill to generate the boilerplate for its acceptance tests, including BuildTestData, ExistsInAzure, and ImportStep.

Quick Start

Use the azurerm-acceptance-testing skill to write a basic acceptance test for the azurerm_resource_group resource.

Frequently Asked Questions about azurerm-acceptance-testing

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

FAQPage Schema
How do I write acceptance tests for the Terraform AzureRM provider?

Terraform AzureRM provider acceptance tests validate resources using the `TestAcc` framework. Generate boilerplate for `BuildTestData`, `ExistsInAzure`, and `ImportStep` to ensure resource validation and import scenarios follow HashiCorp's provider development standards.

What is the TestAcc framework used for in AzureRM provider development?

The `TestAcc` framework is used for writing and validating AzureRM acceptance tests. It verifies that Terraform resources exist in Azure and handles scenarios like import validation and detecting requires import error steps during provider development.

How do I troubleshoot common failures in Terraform AzureRM acceptance tests?

Troubleshoot AzureRM acceptance test failures by validating your `TestAcc` function structure. Ensure `ExistsInAzure` and `ImportStep` logic align with HashiCorp standards to diagnose and resolve common resource validation errors effectively.

Does this assist with adding new Azure resources to the Terraform provider?

Yes, when adding a new Azure resource, this generates the acceptance test boilerplate. It creates the required `BuildTestData`, `ExistsInAzure`, and `ImportStep` blocks to validate the resource according to HashiCorp standards.

Why is my TestAcc import step failing for an AzureRM resource?

An AzureRM `TestAcc` import step might fail if the `ImportStep` and `RequiresImportErrorStep` are not configured correctly. Validate your `BuildTestData` setup against HashiCorp provider development standards to resolve the error.