Add documentation and tooling for FullInventory environment variable management in large tenants #10607
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
CoE Starter Kit users with large tenants (10,000+ flows) report that the
admin_FullInventoryenvironment variable appears locked at "Yes" in the UI, and inventory runs take 20+ hours without completing updates. Root cause: full inventory on 16k+ flows causes timeouts and throttling; environment variable values can become read-only through managed solution layers.Changes
Documentation
TROUBLESHOOTING-INVENTORY.md: Comprehensive guide covering environment variable lock resolution (PowerShell/API/UI methods), performance tuning for large tenants, and expected inventory times by scaleQUICK-REFERENCE-INVENTORY.md: Single-page reference with commands and performance checklistSOLUTION-SUMMARY.md: Technical analysis confirming flow update logic is correct; issue is scale-relatedTooling
Scripts/Update-FullInventoryEnvVar.ps1: PowerShell script to programmatically update environment variable when UI is locked. Validates environment, provides warnings for full inventory on large tenants, includes error handlingSolution Updates
admin_FullInventory/environmentvariabledefinition.xml: Updated description to warn about large tenant impacts and reference troubleshooting docsREADME.md: Added troubleshooting section linking to new resourcesRecommended Configuration for Large Tenants
Expected improvement: 20+ hours → 2-4 hours for 16k flows.
Trade-offs
Incremental inventory only detects flow name changes when the flow is also modified. Workaround: manually flag flows with
admin_inventoryme = Yesto force re-inventory.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.