arm-template-helper
ARM Template Helper
Quick Start
Create and validate Azure Resource Manager templates for infrastructure as code deployments.
Instructions
Step 1: Create ARM template structure
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"location": {
"type": "string",
"defaultValue": "[resourceGroup().location]"
}
},
"variables": {},
"resources": [],
"outputs": {}
}
Step 2: Add resources
"resources": [
{
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2021-04-01",
"name": "[parameters('storageAccountName')]",
"location": "[parameters('location')]",
"sku": {
"name": "Standard_LRS"
},
"kind": "StorageV2"
}
]
Step 3: Validate template
# Validate ARM template
az deployment group validate \
--resource-group myResourceGroup \
--template-file template.json \
--parameters parameters.json
# Test deployment (what-if)
az deployment group what-if \
--resource-group myResourceGroup \
--template-file template.json
Step 4: Deploy template
# Deploy ARM template
az deployment group create \
--resource-group myResourceGroup \
--template-file template.json \
--parameters parameters.json
Best Practices
- Use parameters for configurable values
- Use variables for computed values
- Add outputs for important resource properties
- Use dependsOn for resource dependencies
- Implement proper naming conventions
- Add tags for resource organization
- Use linked templates for modularity
- Validate before deploying
More from armanzeroeight/fastagent-plugins
gcp-cost-optimizer
Analyzes GCP costs and provides optimization recommendations including committed use discounts, rightsizing, and unused resources. Use when optimizing GCP spending or analyzing GCP costs.
15kubernetes-best-practices
Provides production-ready Kubernetes manifest guidance including resource management, security, high availability, and configuration best practices. This skill should be used when working with Kubernetes YAML files, deployments, pods, services, or when users mention k8s, container orchestration, or cloud-native applications.
11inventory-manager
Organizes Ansible inventory files, manages host groups, and configures dynamic inventory. Use when organizing Ansible inventory, managing host groups, or setting up dynamic inventory sources.
9ssl-helper
Configures SSL/TLS certificates, implements secure protocols and ciphers, and sets up security headers. Use when setting up HTTPS, SSL certificates, TLS configuration, or web security hardening.
9data-quality-checker
Implement data quality checks, validation rules, and monitoring. Use when ensuring data quality, validating data pipelines, or implementing data governance.
9aws-cost-optimizer
Analyze and optimize AWS costs with recommendations for Reserved Instances, right-sizing, and resource cleanup. Use when reducing AWS spending, analyzing costs, or optimizing cloud infrastructure expenses.
9