Share via

Filters for CAP's

Matt 1 Reputation point
2026-02-16T20:56:06.7433333+00:00

Looking to apply a specific CAP for Azure DevBox's, and was hoping I could use a device filter CAP. I've first tried using model as I have a dynamic group setup to filter based on that "device.model -startswith "Microsoft Dev Box", but the CAP filter doesn't seem to be working.

I confirmed that in Entra ID attributes that's what's listed under Model, so is this just not possible, or am I doing something wrong?

Furthering that, I'd actually like to use the EnrollmentProfileName attribute if possible to filter instead....assuming CAP's can filter built in attributes......

Microsoft Security | Microsoft Entra | Microsoft Entra External ID
{count} votes

1 answer

Sort by: Most helpful
  1. Q&A Assist
    2026-02-16T20:56:18.2866667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To apply a Conditional Access Policy (CAP) filter for Azure DevBox devices using the device.model attribute, ensure that the model name is correctly specified in your filter. The syntax you provided, device.model -startswith "Microsoft Dev Box", is correct, but if it's not working, consider the following:

    1. Check Device Attributes: Confirm that the devices are indeed reporting the model as "Microsoft Dev Box" in Azure Entra ID. Sometimes, there might be discrepancies in how the model is reported.
    2. Filter Conditions: Ensure that the devices are compliant and managed as required by the CAP settings. If the devices do not meet the compliance criteria, the filter may not apply as expected.
    3. CAP Configuration: Review the overall configuration of the CAP to ensure that all conditions and requirements are correctly set.

    Regarding the EnrollmentProfileName attribute, you can use it to filter based on the enrollment profile applied to the device. The syntax would be similar to:

    device.enrollmentProfileName -eq "YourEnrollmentProfileName"
    

    This attribute can be used in CAP filters, allowing you to narrow down the assignment scope based on the specific enrollment profile associated with the devices.

    If you continue to face issues, consider reviewing the documentation for any updates or specific requirements related to device filters in Conditional Access policies.


    References:


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.