Overview

Date: 2026-05-11

Time: 15:18

I'll create a summary entry for this Azure examples documentation.

Overview

This page covers how to use FTL2 to provision and manage Azure cloud infrastructure by leveraging the azure.azcollection Ansible collection. It demonstrates setup, credential configuration, and a web stack example that provisions a complete Linux VM environment with networking and web server configuration.

Key Concepts

Commands and Syntax


# Install the Azure collection
ansible-galaxy collection install azure.azcollection

# Set Azure service principal credentials
export AZURE_CLIENT_ID="your-client-id"
export AZURE_SECRET="your-client-secret"
export AZURE_SUBSCRIPTION_ID="your-subscription-id"
export AZURE_TENANT="your-tenant-id"

# Set SSH public key for VM access
export AZURE_VM_SSH_PUBKEY="ssh-rsa AAAA..."

# Run examples (all use `uv run python`)
uv run python example_azure_web_stack.py --check     # Dry run
uv run python example_azure_web_stack.py              # Provision
uv run python example_azure_web_stack.py --teardown   # Destroy

Module call syntax (Python-native):


await ftl.azure.azcollection.azure_rm_virtualmachine(...)

Error handling:

Relationships

Exam-Relevant Points