Quick Start
Deploy a complete Azure environment with hub-spoke networking, governance policies, and monitoring — in 5 commands.
-
Clone and navigate to the project
Terminal window git clone https://github.com/jonathan-vella/azure-smb-rf.gitcd azure-smb-rf/infra/bicep/smb-ready-foundation -
Create a management group (one-time setup)
Terminal window az account management-group create --name smb-rf --display-name "SMB Ready Foundation"SUBSCRIPTION_ID=$(az account show --query id -o tsv)az account management-group subscription add --name smb-rf --subscription $SUBSCRIPTION_ID -
Create and configure the azd environment
Terminal window azd env new my-foundationazd env set SCENARIO baselineazd env set OWNER "your@email.com"azd env set AZURE_LOCATION swedencentralazd env set ENVIRONMENT prodazd env set HUB_VNET_ADDRESS_SPACE "10.0.0.0/23"azd env set SPOKE_VNET_ADDRESS_SPACE "10.0.2.0/23"azd env set LOG_ANALYTICS_DAILY_CAP_GB "0.5"azd env set MANAGEMENT_GROUP_ID smb-rf -
Deploy
Terminal window azd upThe pre-provision hook automatically:
- Validates CIDR address spaces for overlaps
- Checks Azure CLI authentication and resource providers
- Creates the management group and associates the target subscription
- Deploys governance policies (MG-scoped and subscription-scoped)
- Cleans up stale budgets and faulted resources
-
Verify
Terminal window # Check resource groups (expect 6)az group list --query "[?starts_with(name,'rg-')].{name:name, state:properties.provisioningState}" -o table# Check MG policies (expect 33 at MG scope; 1 additional at subscription scope)az policy assignment list --scope "/providers/Microsoft.Management/managementGroups/smb-rf" --query "length(@)"
What Gets Deployed
Section titled “What Gets Deployed”The baseline scenario creates:
| Resource Group | Resources |
|---|---|
rg-hub-smb-swc | Hub VNet, NSG, Private DNS Zone |
rg-spoke-prod-swc | Spoke VNet, NSG, NAT Gateway, Public IP |
rg-monitor-smb-swc | Log Analytics Workspace (500MB cap), Automation Account |
rg-backup-smb-swc | Recovery Services Vault |
rg-security-smb-swc | Key Vault (with Private Endpoint) |
rg-migrate-smb-swc | Azure Migrate Project |
Plus: Monthly budget ($500), Defender for Cloud (free CSPM), and governance policies at MG and subscription scope.
Next Steps
Section titled “Next Steps”- Choose a different scenario (firewall, vpn, full)
- Customize parameters (CIDRs, budget, region)
- Understand the policies