Skip to content

Conversation

Copy link

Copilot AI commented Nov 17, 2025

Users receive "Your app has been released from quarantine" emails even when environments are marked exempt via admin_excusefromappquarantineflow, or when apps were never quarantined.

Root Cause

The AdminSetappquarantinestatus workflow triggers release emails on any admin_appisquarantined = false state change without validating:

  • Environment exemption status
  • Prior quarantine state

Changes

Modified: CenterofExcellenceAuditComponents/SolutionPackage/src/Workflows/AdminSetappquarantinestatus-957255CE-1B93-EC11-B400-000D3A8FC5C7.json

Data Retrieval

Added fields to Get_App query:

  • admin_quarantineappdate - timestamp of quarantine action
  • admin_excusefromappquarantineflow - environment exemption flag

Release Condition

Enhanced Quarantine_or_Release condition from single check to three:

{
  "and": [
    {"equals": ["@outputs('Get_App')?['body/admin_appisquarantined']", "@false"]},
    {"not": {"equals": ["@outputs('Get_App')?['body/admin_appenvironment/admin_excusefromappquarantineflow']", "@true"]}},
    {"not": {"equals": ["@outputs('Get_App')?['body/admin_quarantineappdate']", "@null"]}}
  ]
}

Release emails now only send when:

  1. App is unquarantined
  2. Environment is not exempt
  3. App was previously quarantined (has quarantine date)
Original prompt

This section details on the original issue you should resolve

<issue_title>[CoE Starter Kit - BUG] Repeated emails stating app released from quarantine even when environment is exempt</issue_title>
<issue_description>### Does this bug already exist in our backlog?

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

Describe the issue

We have installed the CoE Starter Kit and configured the App Quarantine components using the Setup Wizard as per Microsoft documentation. Even after exempting certain environments from the compliance process, users continue to receive emails stating:
"Your app has been released from quarantine."
This behavior occurs despite the exemption configuration being applied correctly.

Reference: https://learn.microsoft.com/en-us/power-platform/guidance/coe/setup-quarantine-components

Expected Behavior

Once an environment is marked as exempt in the compliance process configuration, users should not receive any quarantine-related notifications for apps in that environment.

What solution are you experiencing the issue with?

Core

What solution version are you using?

Center of Excellence - Core Components

What app or flow are you having the issue with?

Admin | Quarantine non-compliant apps Admin | Set app quarantine status

What method are you using to get inventory and telemetry?

None

Steps To Reproduce

  1. Install CoE Starter Kit and configure App Quarantine components using the Setup Wizard.
  2. Navigate to CoE Setup and Upgrade Wizard → More Features → Compliance Process.
  3. Exempt an environment from the compliance process.
  4. Deploy apps in the exempt environment.
  5. Observe that users still receive emails stating:
  6. "Your app has been released from quarantine."

Anything else?

Documentation followed: https://learn.microsoft.com/en-us/power-platform/guidance/coe/setup-quarantine-components
</issue_description>

<agent_instructions>Why Repeated emails stating app released from quarantine even when environment is exempt. Analyze and troubleshoot with clear solution</agent_instructions>

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


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

- Added check for admin_excusefromappquarantineflow in release condition
- Added check for admin_quarantineappdate to verify app was actually quarantined
- Modified Get_App query to include necessary fields for validation
- Release emails now only sent when app was truly released from quarantine

Co-authored-by: AmarSaiRam <[email protected]>
Copilot AI changed the title [WIP] Fix repeated emails about app released from quarantine Fix quarantine release emails sent for exempt environments and never-quarantined apps Nov 17, 2025
Copilot AI requested a review from AmarSaiRam November 17, 2025 08:37
Copilot finished work on behalf of AmarSaiRam November 17, 2025 08:37
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 - BUG] Repeated emails stating app released from quarantine even when environment is exempt

2 participants