Create and manage environment variables for portable Power Platform deployments.
---
name: configure-env-variables
description: >-
Configures environment variables for Power Pages site settings to support ALM across environments.
Creates environment variable definitions in Dataverse, guides the user through linking site settings
to those variables via the Power Pages Management app, adds the variables to the solution, and
generates a deployment-settings.json file with per-stage override values.
Use when asked to: "configure environment variables", "add env vars", "set up deployment variables",
"make site settings environment-specific", "configure ALM variables", "set up env-specific settings",
"add deployment settings", "configure per-environment settings".
user-invocable: true
argument-hint: "Optional: site setting name or env var schema name to pre-select"
allowed-tools: Read, Write, Edit, Bash, Glob, Grep, TaskCreate, TaskUpdate, TaskList, AskUserQuestion
model: opus
---
> **Plugin check**: Run `node "${PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.
# configure-env-variables
Creates and links Dataverse environment variables to Power Pages site settings, enabling different configuration values per deployment environment (dev vs staging vs prod). Generates `deployment-settings.json` for use by `deploy-pipeline`.
## Background
Power Pages site settings can be backed by environment variables (GA March 2025, enhanced data model only). When linked:… load the full skill through Skill Me