/powercat-governance:dev-environment-deprecation-reportfrom powercat-governance
Builds an HTML report of unmanaged developer environments in a Power Platform tenant, showing days until suspension, apps/flows/agents at risk, environments created on behalf of others, and makers exceeding the one-per-maker limit. Uses Power Platform for Admins connectors and a bundled Python script.
Ships in powercat-governance. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Microsoft is retiring unmanaged developer environments and the Power Apps Developer Plan's unmanaged
model. This skill collects the tenant's developer environments and their apps / flows / agents through the
Power Platform admin connectors, then runs the bundled scripts/build_report.py so every run produces the
same report layout. It is generic: every tenant ID, connection ID, user and environment comes from the
admin's own tenant at run time — never hard-code any of them.
ask-power-platform-advisor* skillsSource: Microsoft Learn, "Important changes (deprecations) coming in Power Platform" — https://learn.microsoft.com/en-us/power-platform/important-changes-coming#deprecation-of-unmanaged-developer-environments-and-the-power-apps-developer-plan
| Milestone | Default | Script flag |
|---|---|---|
| Creation of new unmanaged developer environments ends | 2026-11-15 | --create-cutoff |
| Existing unmanaged developer environments suspended | 2026-12-15 | --suspend-date |
| Suspended environments deleted | 2027-01-15 | --delete-date |
Re-fetch that page with web_fetch at the start of every run. If any date changed, pass the new date via
the flag and tell the user. If the page can't be reached, use the defaults and say they were not re-confirmed.
The page states that from the creation cutoff each user can create only one managed developer environment
and existing managed developer environments are kept even when a user has more than one. It does not say
whether converting an extra unmanaged developer environment to managed counts against that limit — say so
whenever you advise conversion for a maker who is over the limit.
Full call shapes, paging and the tool-script skeleton: references/data-collection.md.
Write all intermediate files to working/devenv/.
web_fetch the Learn page above; note the three dates.
powerplatform-ListConnections → pick a usable connection for shared_powerplatformforadmins
(Power Platform for Admins) and shared_powerplatformadminv2 (Power Platform for Admins V2). If either is
missing, powerplatform-CreateConnection and follow its next_step; use FindConnectors /
HydrateConnector to confirm connector names and operation parameters if a call is rejected.
powerplatform-InvokeConnectorOperation on shared_powerplatformforadmins, operation Get-AdminEnvironment,
params {"api-version":"2020-10-01","$top":250}; follow nextLink with $skiptoken until done. Save all
environments (unfiltered is fine — the script keeps environmentSku == "Developer") to working/devenv/envs.json.
createdBy.displayName and usedBy.displayName come back empty. Collect the distinct createdBy.id /
usedBy.id values (skip SYSTEM) and resolve them with me_profile-GetMultipleUsersDetails (fallback:
graph-QueryGraph /users?$filter=id in (...)). Save {"<id>": "<display name>"} to working/devenv/users.json.
InvokeConnectorOperation on shared_powerplatformadminv2, operation QueryResources
(api-version 2024-10-01, table PowerPlatformResources), one call per type: apps = canvasapps,
modeldrivenapps, codeapps, apps; flows = cloudflows, agentflows, m365agentflows; agents =
copilotstudio/agents. If totalRecords exceeds the rows returned (1000 cap), split by
properties.createdAt and re-query. Run all of these in one core-RunScript tool script. Save all
data rows to working/devenv/resources.json and note the UTC time of the scan.
Gotchas: the response field is a JSON string (json.loads it); when truncated is true read the newest
grounding/responses/InvokeConnectorOperation_*.json created during the call.
python <skill-dir>/scripts/build_report.py \
--envs working/devenv/envs.json --resources working/devenv/resources.json \
--users working/devenv/users.json --today <YYYY-MM-DD> --scan-time <scan UTC ISO time> \
[--create-cutoff …] [--suspend-date …] [--delete-date …] \
--out working/Developer-Environments-Report.html --summary-json working/devenv/summary.json
<skill-dir> is this skill's folder (e.g. /mnt/user-config/skills/dev-environment-deprecation-report).
Never hand-edit the HTML; change inputs or flags and re-run.
python /opt/workspace-config/.github/skills/html/scripts/validate.py working/Developer-Environments-Report.html
Fix any error (re-run the script), then publish:
host-CopyArtifact(surface="output", source="working/Developer-Environments-Report.html", destination="Developer-Environments-Report.html")
and check the returned copied count is 1. Retry the same call on "source not visible yet".
data-target), three
milestone tiles, and "N of your M developer environments are unmanaged and will lose access to X apps,
Y flows and Z agents unless converted to Managed Environments or their solutions are moved."governanceConfiguration.protectionLevel == "Standard"; counts from the resource
inventory; envs created after the scan show 0; countdown refreshes on open.Read working/devenv/summary.json (never recount by hand) and answer:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub microsoft/power-cat-skills --plugin powercat-governanceOther plugins' skills for the same job