Skip to content

Commit 29fea10

Browse files
Validate and fix local development setup
- Add scripts/validate-prerequisites.ps1 to check tool versions, git submodules, Azure auth, azd environment config, subscription alignment, and Fabric/Purview feature readiness before deployment - Add .env.example as a documented reference of all environment variables used by azd and infra/main.bicepparam (not auto-loaded by azd) - Add docs/local_development.md with step-by-step local setup guide, deployment instructions, troubleshooting, and recommended first-run config - Update .devcontainer/devcontainer.json with postCreateCommand to auto-init submodules and run prerequisite validation on container creation - Update README.md to reference the new local development guide Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent ab864e0 commit 29fea10

5 files changed

Lines changed: 743 additions & 1 deletion

File tree

.devcontainer/devcontainer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@
1010
"ghcr.io/azure/azure-dev/azd:latest": {},
1111
"ghcr.io/devcontainers/features/azure-cli:1": {},
1212
"ghcr.io/devcontainers/features/powershell:2.0.0": {}
13-
}
13+
},
14+
"postCreateCommand": "git submodule update --init --recursive && pwsh ./scripts/validate-prerequisites.ps1 -SkipAzureChecks"
1415
}

.env.example

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# ============================================================
2+
# Environment Variable Reference for Deploy-Your-AI-Application-In-Production
3+
# ============================================================
4+
#
5+
# This file is a REFERENCE ONLY. It is NOT auto-loaded by azd.
6+
#
7+
# The primary way to set these values is via Azure Developer CLI:
8+
# azd env new <environment-name>
9+
# azd env set <VARIABLE_NAME> <value>
10+
#
11+
# Use this file to understand which variables are available and
12+
# what they control. Copy values into your azd environment with
13+
# `azd env set` or edit `infra/main.bicepparam` for source-controlled defaults.
14+
# ============================================================
15+
16+
# ---- Required ----
17+
18+
# Azure subscription ID for deployment
19+
AZURE_SUBSCRIPTION_ID=
20+
21+
# Azure region (e.g., eastus2). Check service availability before choosing.
22+
AZURE_LOCATION=eastus2
23+
24+
# Cosmos DB location override (leave empty to use AZURE_LOCATION)
25+
AZURE_COSMOS_LOCATION=
26+
27+
# Entra object ID of the deploying identity (user, group, or service principal).
28+
# Set this if Microsoft Graph lookup is blocked in your tenant.
29+
AZURE_PRINCIPAL_ID=
30+
31+
# Principal type for RBAC assignments (User, Group, or ServicePrincipal)
32+
AZURE_PRINCIPAL_TYPE=User
33+
34+
# ---- Network-Isolated Deployments (Jump VM credentials) ----
35+
36+
# Jump box VM admin username (default: testvmuser)
37+
VM_ADMIN_USERNAME=testvmuser
38+
39+
# Jump box VM admin password (use a strong password)
40+
VM_ADMIN_PASSWORD=
41+
42+
# ---- PostgreSQL (when deployPostgreSql = true) ----
43+
44+
# PostgreSQL admin password. If not set, a random password is generated and stored in Key Vault.
45+
POSTGRES_ADMIN_PASSWORD=
46+
47+
# ---- Fabric Configuration ----
48+
49+
# Fabric capacity mode: 'create', 'byo', or 'none'
50+
fabricCapacityMode=create
51+
52+
# ---- Feature Flags ----
53+
54+
# Deploy VM Key Vault (set to 'false' to skip)
55+
DEPLOY_VM_KEY_VAULT=true
56+
57+
# Deploy VNet subnets (set to 'false' to skip)
58+
DEPLOY_SUBNETS=true
59+
60+
# Enable side-by-side deployment mode
61+
SIDE_BY_SIDE=true
62+
63+
# Use User-Assigned Identity instead of system-assigned
64+
USE_UAI=false
65+
66+
# Use Container App API Key authentication
67+
USE_CAPP_API_KEY=false
68+
69+
# Enable agentic retrieval in AI Foundry
70+
ENABLE_AGENTIC_RETRIEVAL=false
71+
72+
# Existing VNet resource ID (when useExistingVNet = true in main.bicepparam)
73+
EXISTING_VNET_RESOURCE_ID=

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ Supporting documentation
272272
273273
| Document | Description |
274274
|----------|-------------|
275+
| [Local Development Setup](./docs/local_development.md) | Set up your local environment, validate prerequisites, and deploy |
275276
| [Deployment Guide](./docs/deploymentguide.md) | Complete deployment instructions |
276277
| [Post Deployment Steps](./docs/post_deployment_steps.md) | Verify your deployment |
277278
| [PostgreSQL Mirroring](./docs/postgresql_mirroring.md) | Automate or troubleshoot the Fabric connection and PostgreSQL mirror flow |

0 commit comments

Comments
 (0)