{"slug":"restrict-device-access-with-microsoft-intune","title":"Restrict device access with Microsoft Intune","tags":["tailscale","access-control","devices"],"agent_summary":"Last validated: Jan 28, 2026","trigger_phrases":[],"runnable":false,"markdown":"\r\n# Restrict device access with Microsoft Intune\r\n\r\nLast validated: Jan 28, 2026\r\n\r\nThis integrationis available for [the Standard, Premium, and Enterprise plans](https://tailscale.com/pricing).\r\n\r\n[Microsoft Intune](https://www.microsoft.com/en-us/security/business/microsoft-intune) collects a series of signals from the MDM profile installed on devices and these signals can be used to determine the security posture of a device. Tailscale can fetch these signals from Intune and use them as device posture attributes in access rules, which can allow organizations to grant access to sensitive resources only to devices that have a high enough level of trust.\r\n\r\nYou can achieve this Tailscale's [device posture management](https://tailscale.com/docs/features/device-posture) features:\r\n\r\n- [Device Identity Collection](https://tailscale.com/docs/features/access-control/device-management/how-to/manage-identity), which collects identifiers (for example, serial numbers), used to match devices in Tailscale to devices in Intune.\r\n- Intune posture integration, which synchronizes signals from Intune to device posture attributes in Tailscale.\r\n- [Posture conditions in access rules](https://tailscale.com/docs/features/device-posture#device-posture-conditions), which lets you configure access restrictions based on device attributes.\r\n\r\nThis guide explains how to enable Device Identity collection for your Tailscale network (tailnet) and configure Microsoft Intune posture integration.\r\n\r\n## [What is Intune posture integration?](https://tailscale.com/docs/integrations/mdm/intune\\#what-is-intune-posture-integration)\r\n\r\nThe Intune integration syncs data between Intune and Tailscale on a recurring schedule.\r\nDuring each sync, Tailscale performs the following actions:\r\n\r\n1. Fetches a list of hosts and their reported data from your Intune account.\r\n2. Matches Intune devices to devices in your tailnet based on serial numbers.\r\n3. Writes the Intune data to device posture attributes on each matched device.\r\n\r\nThe integration writes the following device posture attributes to matched devices:\r\n\r\n| **Attribute key** | **Description** | **Allowed values** |\r\n| --- | --- | --- |\r\n| `intune:complianceState` | Compliance state of the device | `unknown`, `compliant`, `noncompliant`, `conflict`, `error`, `inGracePeriod`, `configManager` |\r\n| `intune:azureADRegistered` | Whether the device is registered with Azure AD | `true`, `false` |\r\n| `intune:deviceRegistrationState` | Registration state of the device | `notRegistered`, `registered`, `revoked`, `keyConflict`, `approvalPending`, `certificateReset`, `notRegisteredPendingEnrollment`, `unknown` |\r\n| `intune:isSupervised` | Whether the device is supervised by Intune | `true`, `false` |\r\n| `intune:isEncrypted` | Whether the device is encrypted | `true`, `false` |\r\n| `intune:managedDeviceOwnerType` | Owner of the device | `unknown`, `company`, `personal` |\r\n\r\n## [Prerequisites](https://tailscale.com/docs/integrations/mdm/intune\\#prerequisites)\r\n\r\nBefore you can set up the Microsoft Intune integration, make sure you have:\r\n\r\n- [Device Identity Collection](https://tailscale.com/docs/features/access-control/device-management/how-to/manage-identity) enabled, and devices in your tailnet are reporting identifiers.\r\n- An Azure Application credential to connect to Microsoft Intune.\r\n\r\n## [Create Azure Application credential to connect Intune](https://tailscale.com/docs/integrations/mdm/intune\\#create-azure-application-credential-to-connect-intune)\r\n\r\nTo authenticate your Intune account with Tailscale, you'll need to create a set of [Azure Application credentials](https://portal.azure.com/).\r\nThe Microsoft Intune integration uses these credentials to connect to the [Microsoft Graph API](https://learn.microsoft.com/en-us/graph/use-the-api) and fetch a list of devices and their data from Intune.\r\n\r\nTo create an Azure Application and credentials:\r\n\r\n01. In [Azure Portal](https://portal.azure.com/), in the **Azure Services** menu, select **App registrations**.\r\n\r\n02. Select **New registration**.\r\n\r\n03. Enter a name for the application, for example, `Tailscale` and select **Register**. Take note of the **Application (Client) ID** and **Directory (Tenant) ID** for later.\r\n\r\n04. Under **Essentials**, select **Add a certificate or secret**.\r\n\r\n05. Select **New client secret**.\r\n\r\n06. Enter a description for the secret, select an expiration period, and select **Add**. Take note of the **Value** for later.\r\n\r\n07. Under **API permissions**, select **Add a permission**.\r\n\r\n08. Select **Microsoft Graph**.\r\n\r\n09. Select **Application permissions**.\r\n\r\n10. Search for and select **DeviceManagementManagedDevices.Read.All** and select **Add permissions**.\r\n\r\n11. Select **Grant admin consent for _your-organization_** and select **Yes**.\r\n\r\n\r\n## [Configure Intune posture integration](https://tailscale.com/docs/integrations/mdm/intune\\#configure-intune-posture-integration)\r\n\r\nTo configure Tailscale to fetch data about devices from Intune:\r\n\r\n1. Open the [Device management](https://login.tailscale.com/admin/settings/device-management) page of the Tailscale admin console.\r\n\r\n2. Under the **Device Posture Integrations** section, locate the Intune integration, then select **Connect**.\r\n\r\n3. Select your **Microsoft Region**, the region where your Intune account is located.\r\n\r\n4. Enter your **Application (Client) ID**, **Directory (Tenant) ID** and **Client Secret**.\r\n![The configuration screen for connecting to Intune from the Tailscale admin console.](https://tailscale.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fconfigure-integration.59e6174a.png&w=1080&q=75)\r\n5. Select **Connect to Intune**.\r\n\r\n\r\n## [Review the integration status](https://tailscale.com/docs/integrations/mdm/intune\\#review-the-integration-status)\r\n\r\nNext, check to ensure the Intune integration has run successfully.\r\n\r\n1. Go to the **Device Posture Integrations** section of the [Device management](https://login.tailscale.com/admin/settings/device-management) page.\r\n2. Locate the Intune integration under the **Integrations** section.\r\n\r\nAfter the Intune integration runs successfully, it shows the time of the most recent sync, the number of synced devices, and any errors that occurred while synchronizing.\r\n\r\n![Integrations: Microsoft Intune: Last sync 4 minutes ago, 1 match between 2 Tailscale devices with identifies and 3 Intune devices](https://tailscale.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fintegration-status.87040af2.png&w=1200&q=75)\r\n\r\n## [Check node attributes](https://tailscale.com/docs/integrations/mdm/intune\\#check-node-attributes)\r\n\r\nAfter you set up the Microsoft Intune integration, you can confirm that Tailscale is writing the new node attributes for your Fleet devices from the Tailscale admin console.\r\n\r\n1. Open the [Machines](https://login.tailscale.com/admin/machines) page of the Tailscale admin console.\r\n2. Select a device to inspect.\r\n3. The node attributes for the device are in the **Machine Details** section. This should include the set of `intune:` attributes listed previously.\r\n\r\n![View of the machine attributes in the Machines page.](https://tailscale.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fmachine-attributes.7995b62b.png&w=640&q=75)\r\n\r\nYou can also check device attributes using the [Tailscale API](https://tailscale.com/api#tag/devices/GET/device/%7BdeviceId%7D/attributes).\r\n\r\n## [Adjust Tailscale access rules](https://tailscale.com/docs/integrations/mdm/intune\\#adjust-tailscale-access-rules)\r\n\r\nAfter you set up the Intune posture integration, and your devices have device posture attributes that reflect their signals as reported by Intune, you can use those device posture attributes as part of your posture rules.\r\n\r\nFor example, to only permit access to `tag:production` from devices that Intune reports as compliant and supervised by Intune, you can create a new posture and use it as part of a corresponding access rule:\r\n\r\n```json\r\n\"postures\": {\r\n  \"posture:trusted\": [\\\r\n    \"intune:complianceState == 'compliant'\",\\\r\n    \"intune:isSupervised == true\",\\\r\n  ],\r\n},\r\n\"grants\": [\\\r\n  {\\\r\n    \"src\": [\"autogroup:member\"],\\\r\n    \"dst\": [\"tag:production\"],\\\r\n    \"ip\": [\"*\"],\\\r\n    \"srcPosture\": [\"posture:trusted\"]\\\r\n  }\\\r\n]\r\n```\r\n\r\nYou can use the [visual policy editor](https://tailscale.com/docs/features/visual-editor) to manage your tailnet policy file. Refer to the [visual editor reference](https://tailscale.com/docs/reference/visual-editor) for guidance on using the visual editor.\r\n\r\n## [Schedule](https://tailscale.com/docs/integrations/mdm/intune\\#schedule)\r\n\r\nFor each configured integration, Tailscale will aim to sync device posture\r\nattributes every 15 minutes, with a few exceptions:\r\n\r\n- Adding a new integration, or changing configuration of an existing one,\r\nwill trigger an out-of-schedule sync.\r\n- If an integration fails due to authentication error (usually caused by invalid\r\ncredentials), it will be paused for up to 24 hours.\r\n\r\n## [Limitations](https://tailscale.com/docs/integrations/mdm/intune\\#limitations)\r\n\r\nWe have observed that Intune does not report serial numbers for some machines running Linux. Without serial number details, Tailscale will not be able to populate device posture attributes for such machines.\r\n\r\n## [Audit log events](https://tailscale.com/docs/integrations/mdm/intune\\#audit-log-events)\r\n\r\nThe following [audit log events](https://tailscale.com/docs/features/logging/audit-logging#events) are added for device posture.\r\n\r\n| **Target** | **Action** | **Description** |\r\n| --- | --- | --- |\r\n| Integration | Create posture integration | A new posture integration was created |\r\n| Integration | Update posture integration | A posture integration was updated |\r\n| Integration | Removed posture integration | A posture integration was removed |\r\n| Node | Update node attribute | Device posture attributes for a node were changed |\r\n\r\n![Project Logo](https://cdn.brandfetch.io/tailscale.com/fallback/lettermark/theme/dark/h/256/w/256/icon?c=1bfwsmEH20zzEfSNTed)\r\n\r\nAsk AI\r\n\r\nreCAPTCHA\r\n\r\nRecaptcha requires verification.\r\n\r\nprotected by **reCAPTCHA**\r\n","html":"<h1>Restrict device access with Microsoft Intune</h1>\n<p>Last validated: Jan 28, 2026</p>\n<p>This integrationis available for <a href=\"https://tailscale.com/pricing\">the Standard, Premium, and Enterprise plans</a>.</p>\n<p><a href=\"https://www.microsoft.com/en-us/security/business/microsoft-intune\">Microsoft Intune</a> collects a series of signals from the MDM profile installed on devices and these signals can be used to determine the security posture of a device. Tailscale can fetch these signals from Intune and use them as device posture attributes in access rules, which can allow organizations to grant access to sensitive resources only to devices that have a high enough level of trust.</p>\n<p>You can achieve this Tailscale's <a href=\"https://tailscale.com/docs/features/device-posture\">device posture management</a> features:</p>\n<ul>\n<li><a href=\"https://tailscale.com/docs/features/access-control/device-management/how-to/manage-identity\">Device Identity Collection</a>, which collects identifiers (for example, serial numbers), used to match devices in Tailscale to devices in Intune.</li>\n<li>Intune posture integration, which synchronizes signals from Intune to device posture attributes in Tailscale.</li>\n<li><a href=\"https://tailscale.com/docs/features/device-posture#device-posture-conditions\">Posture conditions in access rules</a>, which lets you configure access restrictions based on device attributes.</li>\n</ul>\n<p>This guide explains how to enable Device Identity collection for your Tailscale network (tailnet) and configure Microsoft Intune posture integration.</p>\n<h2><a href=\"https://tailscale.com/docs/integrations/mdm/intune#what-is-intune-posture-integration\">What is Intune posture integration?</a></h2>\n<p>The Intune integration syncs data between Intune and Tailscale on a recurring schedule.\r\nDuring each sync, Tailscale performs the following actions:</p>\n<ol>\n<li>Fetches a list of hosts and their reported data from your Intune account.</li>\n<li>Matches Intune devices to devices in your tailnet based on serial numbers.</li>\n<li>Writes the Intune data to device posture attributes on each matched device.</li>\n</ol>\n<p>The integration writes the following device posture attributes to matched devices:</p>\n<p>| <strong>Attribute key</strong> | <strong>Description</strong> | <strong>Allowed values</strong> |\r\n| --- | --- | --- |\r\n| <code>intune:complianceState</code> | Compliance state of the device | <code>unknown</code>, <code>compliant</code>, <code>noncompliant</code>, <code>conflict</code>, <code>error</code>, <code>inGracePeriod</code>, <code>configManager</code> |\r\n| <code>intune:azureADRegistered</code> | Whether the device is registered with Azure AD | <code>true</code>, <code>false</code> |\r\n| <code>intune:deviceRegistrationState</code> | Registration state of the device | <code>notRegistered</code>, <code>registered</code>, <code>revoked</code>, <code>keyConflict</code>, <code>approvalPending</code>, <code>certificateReset</code>, <code>notRegisteredPendingEnrollment</code>, <code>unknown</code> |\r\n| <code>intune:isSupervised</code> | Whether the device is supervised by Intune | <code>true</code>, <code>false</code> |\r\n| <code>intune:isEncrypted</code> | Whether the device is encrypted | <code>true</code>, <code>false</code> |\r\n| <code>intune:managedDeviceOwnerType</code> | Owner of the device | <code>unknown</code>, <code>company</code>, <code>personal</code> |</p>\n<h2><a href=\"https://tailscale.com/docs/integrations/mdm/intune#prerequisites\">Prerequisites</a></h2>\n<p>Before you can set up the Microsoft Intune integration, make sure you have:</p>\n<ul>\n<li><a href=\"https://tailscale.com/docs/features/access-control/device-management/how-to/manage-identity\">Device Identity Collection</a> enabled, and devices in your tailnet are reporting identifiers.</li>\n<li>An Azure Application credential to connect to Microsoft Intune.</li>\n</ul>\n<h2><a href=\"https://tailscale.com/docs/integrations/mdm/intune#create-azure-application-credential-to-connect-intune\">Create Azure Application credential to connect Intune</a></h2>\n<p>To authenticate your Intune account with Tailscale, you'll need to create a set of <a href=\"https://portal.azure.com/\">Azure Application credentials</a>.\r\nThe Microsoft Intune integration uses these credentials to connect to the <a href=\"https://learn.microsoft.com/en-us/graph/use-the-api\">Microsoft Graph API</a> and fetch a list of devices and their data from Intune.</p>\n<p>To create an Azure Application and credentials:</p>\n<ol>\n<li>\n<p>In <a href=\"https://portal.azure.com/\">Azure Portal</a>, in the <strong>Azure Services</strong> menu, select <strong>App registrations</strong>.</p>\n</li>\n<li>\n<p>Select <strong>New registration</strong>.</p>\n</li>\n<li>\n<p>Enter a name for the application, for example, <code>Tailscale</code> and select <strong>Register</strong>. Take note of the <strong>Application (Client) ID</strong> and <strong>Directory (Tenant) ID</strong> for later.</p>\n</li>\n<li>\n<p>Under <strong>Essentials</strong>, select <strong>Add a certificate or secret</strong>.</p>\n</li>\n<li>\n<p>Select <strong>New client secret</strong>.</p>\n</li>\n<li>\n<p>Enter a description for the secret, select an expiration period, and select <strong>Add</strong>. Take note of the <strong>Value</strong> for later.</p>\n</li>\n<li>\n<p>Under <strong>API permissions</strong>, select <strong>Add a permission</strong>.</p>\n</li>\n<li>\n<p>Select <strong>Microsoft Graph</strong>.</p>\n</li>\n<li>\n<p>Select <strong>Application permissions</strong>.</p>\n</li>\n<li>\n<p>Search for and select <strong>DeviceManagementManagedDevices.Read.All</strong> and select <strong>Add permissions</strong>.</p>\n</li>\n<li>\n<p>Select <strong>Grant admin consent for <em>your-organization</em></strong> and select <strong>Yes</strong>.</p>\n</li>\n</ol>\n<h2><a href=\"https://tailscale.com/docs/integrations/mdm/intune#configure-intune-posture-integration\">Configure Intune posture integration</a></h2>\n<p>To configure Tailscale to fetch data about devices from Intune:</p>\n<ol>\n<li>\n<p>Open the <a href=\"https://login.tailscale.com/admin/settings/device-management\">Device management</a> page of the Tailscale admin console.</p>\n</li>\n<li>\n<p>Under the <strong>Device Posture Integrations</strong> section, locate the Intune integration, then select <strong>Connect</strong>.</p>\n</li>\n<li>\n<p>Select your <strong>Microsoft Region</strong>, the region where your Intune account is located.</p>\n</li>\n<li>\n<p>Enter your <strong>Application (Client) ID</strong>, <strong>Directory (Tenant) ID</strong> and <strong>Client Secret</strong>.\r\n<img src=\"https://tailscale.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fconfigure-integration.59e6174a.png&#x26;w=1080&#x26;q=75\" alt=\"The configuration screen for connecting to Intune from the Tailscale admin console.\"></p>\n</li>\n<li>\n<p>Select <strong>Connect to Intune</strong>.</p>\n</li>\n</ol>\n<h2><a href=\"https://tailscale.com/docs/integrations/mdm/intune#review-the-integration-status\">Review the integration status</a></h2>\n<p>Next, check to ensure the Intune integration has run successfully.</p>\n<ol>\n<li>Go to the <strong>Device Posture Integrations</strong> section of the <a href=\"https://login.tailscale.com/admin/settings/device-management\">Device management</a> page.</li>\n<li>Locate the Intune integration under the <strong>Integrations</strong> section.</li>\n</ol>\n<p>After the Intune integration runs successfully, it shows the time of the most recent sync, the number of synced devices, and any errors that occurred while synchronizing.</p>\n<p><img src=\"https://tailscale.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fintegration-status.87040af2.png&#x26;w=1200&#x26;q=75\" alt=\"Integrations: Microsoft Intune: Last sync 4 minutes ago, 1 match between 2 Tailscale devices with identifies and 3 Intune devices\"></p>\n<h2><a href=\"https://tailscale.com/docs/integrations/mdm/intune#check-node-attributes\">Check node attributes</a></h2>\n<p>After you set up the Microsoft Intune integration, you can confirm that Tailscale is writing the new node attributes for your Fleet devices from the Tailscale admin console.</p>\n<ol>\n<li>Open the <a href=\"https://login.tailscale.com/admin/machines\">Machines</a> page of the Tailscale admin console.</li>\n<li>Select a device to inspect.</li>\n<li>The node attributes for the device are in the <strong>Machine Details</strong> section. This should include the set of <code>intune:</code> attributes listed previously.</li>\n</ol>\n<p><img src=\"https://tailscale.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fmachine-attributes.7995b62b.png&#x26;w=640&#x26;q=75\" alt=\"View of the machine attributes in the Machines page.\"></p>\n<p>You can also check device attributes using the <a href=\"https://tailscale.com/api#tag/devices/GET/device/%7BdeviceId%7D/attributes\">Tailscale API</a>.</p>\n<h2><a href=\"https://tailscale.com/docs/integrations/mdm/intune#adjust-tailscale-access-rules\">Adjust Tailscale access rules</a></h2>\n<p>After you set up the Intune posture integration, and your devices have device posture attributes that reflect their signals as reported by Intune, you can use those device posture attributes as part of your posture rules.</p>\n<p>For example, to only permit access to <code>tag:production</code> from devices that Intune reports as compliant and supervised by Intune, you can create a new posture and use it as part of a corresponding access rule:</p>\n<pre><code class=\"language-json\">\"postures\": {\r\n  \"posture:trusted\": [\\\r\n    \"intune:complianceState == 'compliant'\",\\\r\n    \"intune:isSupervised == true\",\\\r\n  ],\r\n},\r\n\"grants\": [\\\r\n  {\\\r\n    \"src\": [\"autogroup:member\"],\\\r\n    \"dst\": [\"tag:production\"],\\\r\n    \"ip\": [\"*\"],\\\r\n    \"srcPosture\": [\"posture:trusted\"]\\\r\n  }\\\r\n]\n</code></pre>\n<p>You can use the <a href=\"https://tailscale.com/docs/features/visual-editor\">visual policy editor</a> to manage your tailnet policy file. Refer to the <a href=\"https://tailscale.com/docs/reference/visual-editor\">visual editor reference</a> for guidance on using the visual editor.</p>\n<h2><a href=\"https://tailscale.com/docs/integrations/mdm/intune#schedule\">Schedule</a></h2>\n<p>For each configured integration, Tailscale will aim to sync device posture\r\nattributes every 15 minutes, with a few exceptions:</p>\n<ul>\n<li>Adding a new integration, or changing configuration of an existing one,\r\nwill trigger an out-of-schedule sync.</li>\n<li>If an integration fails due to authentication error (usually caused by invalid\r\ncredentials), it will be paused for up to 24 hours.</li>\n</ul>\n<h2><a href=\"https://tailscale.com/docs/integrations/mdm/intune#limitations\">Limitations</a></h2>\n<p>We have observed that Intune does not report serial numbers for some machines running Linux. Without serial number details, Tailscale will not be able to populate device posture attributes for such machines.</p>\n<h2><a href=\"https://tailscale.com/docs/integrations/mdm/intune#audit-log-events\">Audit log events</a></h2>\n<p>The following <a href=\"https://tailscale.com/docs/features/logging/audit-logging#events\">audit log events</a> are added for device posture.</p>\n<p>| <strong>Target</strong> | <strong>Action</strong> | <strong>Description</strong> |\r\n| --- | --- | --- |\r\n| Integration | Create posture integration | A new posture integration was created |\r\n| Integration | Update posture integration | A posture integration was updated |\r\n| Integration | Removed posture integration | A posture integration was removed |\r\n| Node | Update node attribute | Device posture attributes for a node were changed |</p>\n<p><img src=\"https://cdn.brandfetch.io/tailscale.com/fallback/lettermark/theme/dark/h/256/w/256/icon?c=1bfwsmEH20zzEfSNTed\" alt=\"Project Logo\"></p>\n<p>Ask AI</p>\n<p>reCAPTCHA</p>\n<p>Recaptcha requires verification.</p>\n<p>protected by <strong>reCAPTCHA</strong></p>\n"}