opentofu-azure

Generate OpenTofu code for Azure infrastructure with MCP-verified provider versions.

Updated Jan 28, 2026
One-click install
npx skills add https://github.com/michalklabnik/lightning-talk-claude-tf --skill opentofu-azure
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: opentofu-azure
Source: https://github.com/michalklabnik/lightning-talk-claude-tf/tree/main/.claude/skills/opentofu-azure
Command: npx skills add https://github.com/michalklabnik/lightning-talk-claude-tf --skill opentofu-azure

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill generates OpenTofu (Terraform) code for Azure infrastructure using current provider versions and best practices.

Core Features & Use Cases

  • Generates OpenTofu Terraform configurations for Azure resources using MCP-verified provider versions and current syntax.
  • Enforces non-deprecated resources and best-practice patterns (e.g., using azurerm_linux_virtual_machine or azurerm_windows_virtual_machine where appropriate).
  • Supports a consistent naming convention and outputs for easy integration with deployment pipelines.
  • Tailored for demo/dev environments with simple, minimal networking and a basic web server via cloud-init.

Quick Start

Provide a description of the Azure resources you want (e.g., a resource group, VNet, and a VM), then invoke tofu to generate the OpenTofu code and follow up with tofu init and tofu plan.

Frequently Asked Questions about opentofu-azure

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

FAQPage Schema
How do I generate OpenTofu code for Azure infrastructure using current best practices?

This skill generates OpenTofu code for Azure by enforcing non-deprecated resources and current syntax. It targets demo and dev scenarios, creating minimal configurations for resource groups, virtual networks, and basic web servers using cloud-init.

How does MCP provider version verification work for Azure OpenTofu configurations?

MCP-based provider version verification automatically checks for current Azure provider releases during code generation. This ensures your OpenTofu configurations use non-deprecated resources and adhere to current best-practice syntax patterns.

Can I use cloud-init to set up a web server with OpenTofu on Azure?

Yes, you can use cloud-init to set up a basic web server on Azure virtual machines. The skill supports cloud-init-based web server configuration tailored for minimal networking in demo and development environments.

What is the best way to avoid deprecated Azure resources in Terraform code?

To avoid deprecated Azure resources, use a generator that enforces current best practices and verifies provider versions via MCP. This skill automatically selects non-deprecated resources like azurerm_linux_virtual_machine over older alternatives.

Does this OpenTofu Azure generator support Windows and Linux virtual machines?

Yes, the OpenTofu Azure generator supports both Windows and Linux virtual machines. It enforces best-practice patterns by applying azurerm_windows_virtual_machine or azurerm_linux_virtual_machine resources where appropriate for your infrastructure.

What Azure resources are included in a minimal OpenTofu demo environment?

A minimal OpenTofu demo environment includes a resource group, virtual network, and a simple web server. It uses a default Azure region, applies a consistent naming convention, and defines outputs for deployment pipeline integration.