Azure prepare

From manu14357/zskills · View interactive version

Azure prepare is an AI agent skill from the GitHub repository manu14357/zskills. Prepare Azure environments and prerequisites before deployment. Use this skill when users ask for readiness checks, environment setup, or preflight planning. Covers landing zones, networking, identity, governance, and cost controls per Cloud Adoption Framework.

How to use this skill

Skill file

Azure Prepare

Prepare subscriptions, resource groups, identity, governance, and cost controls per the Cloud Adoption Framework.

Landing zone setup is foundational; all deployments depend on this layer.

Use This Skill When

Context: Landing Zone Maturity

Immature: Ad hoc resource creation, no policies, inconsistent naming, mixed environments

Developing: Basic resource groups, manual access control, some tagging

Managed: Landing zone deployed, policies enforced, RBAC standardized, centralized logging ← Target

Optimized: GitOps for infrastructure, automated drift detection, cost governance, full audit trail

Required Inputs

Decision Tree

Is this the first Azure subscription for the organization?
├─ Yes → Deploy landing zone from template (Microsoft Foundational or Enterprise)
└─ No → Align with existing landing zone patterns

Do you have on-premises infrastructure?
├─ Yes → Enable ExpressRoute, Site-to-Site VPN, DNS forwarders
└─ No → Direct internet egress acceptable

How many teams will share this subscription?
├─ Single team → Simple RBAC, one resource group per environment
└─ Multiple teams → Multiple resource groups, centralized policy, shared services

Are there compliance or regulatory requirements?
├─ Yes → Deploy Azure Policy, enable Defender, configure audit logging
└─ No → Basic security baseline sufficient

Workflow

Phase 1: Landing Zone Foundation

  1. Choose landing zone template:
  1. Provision landing zone:

```bash

# Use Azure landing zone Bicep templates from Microsoft

az deployment tenant create \

--name alz-deployment \

--location eastus \

--template-uri https://raw.githubusercontent.com/Azure/landing-zones-accelerator/main/templates/

```

  1. Validate foundational resources:

Phase 2: Subscription Baseline

  1. Provider registration:

```bash

# Enable required resource providers

az provider register --namespace Microsoft.Compute

az provider register --namespace Microsoft.Network

az provider register --namespace Microsoft.Storage

# (List depends on workload)

```

  1. Create resource groups by lifecycle:
  1. Apply Azure Policy:

Phase 3: Identity & Access

  1. Define role structure:
  1. Configure managed identities:
  1. Set up Key Vault:

```bash

az keyvault create --name "kv-${environment}-${org}" \

--resource-group $RG --enable-rbac-authorization

```

Phase 4: Networking

  1. Plan IP address space:
  1. Deploy network infrastructure:
  1. Configure DNS:

Phase 5: Logging & Monitoring

  1. Centralize diagnostics:
  1. Configure alerts:

Phase 6: Cost Governance

  1. Set budgets:
  1. Reserved capacity (if production):
  1. Cost allocation:

Output Contract

  1. Landing Zone Summary
  1. Pre-Deployment Checklist
  1. Setup Commands or IaC
  1. Access & Governance Model
  1. Network & Identity Baseline
  1. Monitoring & Cost Plan

Practical Examples

Example 1: Dev/Test Landing Zone

- Single VNet (10.1.0.0/16)
- Three subnets: app (10.1.1.0/24), data (10.1.2.0/24), mgmt (10.1.3.0/24)
- Minimal NSGs (allow internal, deny external)
- Shared Log Analytics (7-day retention)
- Budget alert at $500/month

Example 2: Production Landing Zone with Hub-Spoke

- Hub VNet (10.0.0.0/16): Firewall, Bastion, DNS forwarders
- Spoke VNet per workload: Web (10.1.0.0/16), Data (10.2.0.0/16), API (10.3.0.0/16)
- All spokes peered to hub
- Strict NSGs per spoke with specific ingress rules
- Centralized logging to shared workspace
- 30-day retention, archive to storage after 90 days
- Budget alerts at 50%, 75%, 100% thresholds

Guardrails

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.