Skip to content

Conversation

Copy link

Copilot AI commented Dec 8, 2025

Users frequently ask why orphaned resource counts differ between CoE Starter Kit and PPAC Advisor (~150 vs ~70 in the reported case). The tools use different methodologies: CoE syncs on schedule with configured environments, PPAC updates near real-time across all tenant environments. Different definitions of "orphaned" and resource type filtering also contribute to variance.

Changes

Documentation Structure

  • docs/coe-knowledge/ - New knowledge base directory for common questions and maintainer responses

Core Documentation

  • orphaned-resources-faq.md - Comprehensive explanation of calculation differences (timing, scope, definition, resource types), troubleshooting steps, and best practices
  • QUICKREF-orphaned-resources-discrepancy.md - TL;DR format with comparison table and quick fix checklist
  • issue-response-orphaned-resources.md - Ready-to-use GitHub issue response template

Maintainer Resources

  • COE-Kit-Common GitHub Responses.md - Reusable response patterns for common issues (support policy, BYODL deprecation, licensing, pagination, localization)
  • docs/coe-knowledge/README.md - Knowledge base index

Repository Updates

  • README.md - Added knowledge base link in "Asking and Answering Questions" section

Key Technical Details

Orphaned status determination in CoE:

  • Canvas Apps: cr5d5_appisorphaned field
  • AI Models: admin_aiisorphaned field
  • Updated via CLEANUP HELPER - Check Deleted v4 flows
  • Checks if owner exists in Azure AD

Expected behavior: 10-20% variance is normal. Investigate if sync flows fail or discrepancy exceeds 100%.

Original prompt

This section details on the original issue you should resolve

<issue_title>[CoE Starter Kit - QUESTION] Number of Orphaned resources in CoE doesn't match PPAC Advisor</issue_title>
<issue_description>### Does this question already exist in our backlog?

  • I have checked and confirm this is a new question.

What is your question?

Do you know how the orphaned resources are calculated because there is inconsistencies between the number of orphaned resources showing in the CoE and the number of orphaned resources showing in the PPAC Advisor.
The CoE has a figure of over 150 orphaned resources whereas the PPAC is showing ~70.

What solution are you experiencing the issue with?

Core

What solution version are you using?

No response

What app or flow are you having the issue with?

No response

What method are you using to get inventory and telemetry?

Cloud flows</issue_description>

<agent_instructions>Need to know why the differences is coming from orphaned resources and PPAC adviser report</agent_instructions>

Comments on the Issue (you are @copilot in this section)

Custom agent used: CoE Custom Agent
Specialized agent for triaging and fixing issues in the CoE Starter Kit. Always consult the official CoE docs and the team’s SharePoint notes first, then mine prior GitHub issues and the CoE Common Responses playbook.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 3 commits December 8, 2025 08:52
Co-authored-by: mohamrizwa <220306360+mohamrizwa@users.noreply.github.com>
Co-authored-by: mohamrizwa <220306360+mohamrizwa@users.noreply.github.com>
Co-authored-by: mohamrizwa <220306360+mohamrizwa@users.noreply.github.com>
Copilot AI changed the title [WIP] Investigate inconsistencies in orphaned resource counts Add knowledge base documentation for orphaned resources count discrepancies Dec 8, 2025
Copilot AI requested a review from mohamrizwa December 8, 2025 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CoE Starter Kit - QUESTION] Number of Orphaned resources in CoE doesn't match PPAC Advisor

2 participants