Hello @Merdzd,
Based on your description, I understand that you want to allow access to the Power BI service only from a specific IP address and managed devices. If a user attempts to access it from a trusted location but an unmanaged device, access should be blocked.
To achieve this, you need to use a device filter with the following expression:
If your users are using all these trusted device types (i.e; Microsoft Entra Joined, Entra Registered, Entra Hybrid Join), make sure to exclude these managed devices from the policy.
Your policy should be like, Your policy should be configured as follows:
- Users → Include all required users.
- Target resources → Include the application you want to protect.
- Network → Include "Any network or location" and exclude either "Selected networks and locations" or "All trusted networks and locations."
- Conditions → Use Filter for Devices and exclude devices with the following rule syntax:
device.trustType -eq "AzureAD" - Grant Controls → Select Block Access.
- Click Save.
This policy will block all access attempts from untrusted locations and unmanaged devices.
If you need to exclude only one or two specific devices, use the deviceID property with the equal (eq) operator and enter the device ID value. Please refer to the screenshot below for reference.
I hope this information is helpful. Please feel free to reach out if you have any further questions.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".