Hello @Bob Builder ,
Thank you for your question.
To achieve this, you use Intune to mark the cooperate devices are compliant the use Conditional to block non-compliant devices. Kindly look at this doc: https://learn.microsoft.com/en-us/defender-cloud-apps/use-case-proxy-block-session-aad