Enable Defender For Endpoint
In brief
The documentation now states that the integration can use an existing Defender for Endpoint sensor from the same tenant, adds updated platform and Linux requirements, and lists pre-deployment checks for connectivity, proxy authentication, file-system settings, and security policies.
What Defender admins need to know
Before enabling the integration, administrators must validate these prerequisites and install Python 3 on Linux servers.
Summaries are generated from the documentation change itself.
Documentation change
The comparison below shows only the changed extract. Use the full-page view for complete context.
Microsoft Defender for Cloud integrates natively with Microsoft Defender for Endpoint to provide Defender for Endpoint and Defender Vulnerability Management capabilities in Defender for Cloud.
- When you enable the Defender for Servers plan in Defender for Cloud, Defender for Endpoint integration is enabled by default.
- The integration
automaticallydeploystheor uses an existing Defender for Endpointagentinstallation onmachines.supported machines when prerequisites are met.
This article explains how to manually enable Defender for Endpoint integration if it was previously turned off or if you have a legacy subscription that requires manual opt-in.
Before you enable Defender for Endpoint integration, review these requirements.
| Requirement | Details |
|---|---|
| Windows support | |
| Linux support | For Linux servers, |
| Azure VMs | Check that |
| On-premises VMs | We recommend that you onboard on-premises machines as Azure Arc-enabled VMs. If you onboard on-premises VMs directly, Defender for Servers Plan 1 features are available, but |
| Azure tenant | If you moved your subscription between Azure tenants, some manual preparatory steps are also required. Contact Microsoft support for details. |
| Existing Defender for Endpoint installation | Defender for Cloud can use an existing Defender for Endpoint sensor when the device is associated with the same Defender for Endpoint organization (tenant). Defender for Cloud doesn't automatically reassign a device that is onboarded to a different organization. Offboard the device from the previous organization before you onboard it to the organization associated with Defender for Cloud. |
| Windows Server 2016, |
Unlike later versions of Windows Server, which come with the Defender for Endpoint sensor preinstalled, Defender for Cloud installs the sensor on machines running Windows Server 2016/ |
Pre-deployment validation
Complete these checks before you enable Defender for Endpoint integration:
- Confirm that the machine is powered on and runs a supported operating system.
- For Azure Arc-enabled machines, confirm that the Azure Connected Machine agent reports a healthy connection.
- Confirm that the machine can reach the Defender for Endpoint service URLs. Don't use a test against a single URL as proof that all required service endpoints are reachable.
- Confirm that your proxy doesn't require interactive user authentication. The Defender for Endpoint sensor connects in the system context.
- On Linux, confirm that the distribution is supported, Python is installed, and the file system that contains
/opt/microsoft/mdatpisn't mounted withnoexec. - Review Group Policy and third-party antimalware configuration to confirm that Microsoft Defender Antivirus and the Early Launch Antimalware (ELAM) driver aren't disabled.
For a complete connectivity and sensor-readiness assessment, run the Microsoft Defender for Endpoint Client Analyzer. The analyzer tests the service endpoints and collects diagnostics in the same security context used by the sensor.
Collect Windows readiness information
The following read-only PowerShell script collects information that is commonly needed when you investigate a deployment failure. It doesn't modify the server and doesn't replace the supported operating-system check or the Client Analyzer.
$os = Get-CimInstance Win32_OperatingSystem
$disk = Get-CimInstance Win32_LogicalDisk -Filter "DeviceID='$($env:SystemDrive)'"
$himds = Get-Service -Name himds -ErrorAction SilentlyContinue
$senseService = Get-Service -Name Sense -ErrorAction SilentlyContinue
$defenderService = Get-Service -Name WinDefend -ErrorAction SilentlyContinue
[pscustomobject]@{
ComputerName = $env:COMPUTERNAME
OperatingSystem = $os.Caption
OSVersion = $os.Version
SystemDriveFreeGB = [math]::Round($disk.FreeSpace / 1GB, 2)
AzureArcAgent = if ($himds) { $himds.Status } else { 'Not installed' }
SenseService = if ($senseService) { $senseService.Status } else { 'Not present' }
DefenderAntivirusService = if ($defenderService) { $defenderService.Status } else { 'Not present' }
PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
Interpret the output against the linked platform requirements. A stopped or missing service isn't, by itself, proof of the root cause because the expected service state depends on the operating system and deployment stage.
Collect Linux readiness information
Run these commands to collect Linux prerequisites and health information:
cat /etc/os-release
python3 --version
findmnt -no TARGET,OPTIONS /
findmnt -T /opt -o TARGET,OPTIONS
azcmagent show
mdatp health
If Defender for Endpoint isn't installed yet, the mdatp health command isn't available. Validate the distribution and version against Defender for Endpoint on Linux prerequisites, and use the Client Analyzer after installation to validate connectivity and collect diagnostics.
Deployment and verification by platform
Windows Server 2019 and later
- Enable Defender for Servers Plan 1 or Plan 2.
- Verify endpoint protection is enabled in Environment settings > Endpoint protection.
- Verify the extension state in the Azure portal: VM > Extensions > MDE.Windows > Provisioning succeeded.
- Verify onboarding in the Microsoft Defender portal: Devices > server name.
Windows Server 2016 and Windows Server 2012 R2
Note
For legacy subscriptions created before spring 2022, follow the steps in Legacy subscriptions (created before spring-2022): Enable Defender for Endpoint unified solution on Windows Server 2016/2012 R2.
- Enable Defender for Servers.
- Keep the operating system and Microsoft Defender Antivirus fully updated.
- After the unified agent is installed, make sure Defender Antivirus Update
KB5005292is approved and applied so that the EDR sensor continues to receive updates. - Verify the
MDE.Windowsextension and the device record in the Microsoft Defender portal.
Linux servers
- Validate the supported distribution, Python requirement, file-system mount options, and outbound connectivity before deployment.
- Verify extension state in Azure portal: VM > Extensions > MDE.Linux > Provisioning succeeded.
- Run
mdatp healthand confirm thathealthyandlicensedare true. - If installation fails, follow Troubleshoot installation issues for Defender for Endpoint on Linux and apply a remediation for a similarly worded error only after you confirm the actual failure in the installation or extension logs.
Enable Defender for Endpoint integration on a subscription
To enable Defender for Endpoint integration on a subscription:
Sign in to the Azure portal.
Go to Microsoft Defender for Cloud > Environment settings.
Select the
relevant subscription.subscription containing the machines on which you want to deploy the Defender for Endpoint integration.Go to Settings and monitoring > Endpoint protection.
Set statusToggle Status to On.Select Continue.
Select Save.
The Defender for Endpoint sensor is deployed to allsupported Windows and Linux machines inthat meet the selected subscription.prerequisites.
Onboarding might take up to an hour. Defender for Cloud detects any previousan existing Defender for Endpoint installationsinstallation and reconfigures them to integrateuses it when the device is associated with the same Defender for Cloud.Endpoint organization (tenant). A device onboarded to another organization isn't automatically reassigned.
Important
If this is the first subscription that you're configuring for Defender for Endpoint integration in the tenant, onboarding can take up to 12 hours. After integration is enabled for the first time, onboarding new machines and subscriptions can take up to one hour.
Note
On new subscriptions, Defender for Endpoint integration is automatically enabled and covers machines running a supported Windows Server or Linux operating system. The Enable Defender for Endpoint unified solution on Windows Server 2016/2012 R2 and Enable on Linux machines sections cover one-time opt-in procedures that might be required for legacy subscriptions.
Legacy subscriptions (created before spring-2022): Enable Defender for Endpoint unified solution on Windows Server 2016/2012 R2
If you enabled Defender for Servers and turned on Defender for Endpoint integration in a subscription that you created before spring 2022, you might need to manually enable integration of the unified solution for machines running Windows Server 2016 or Windows Server 2012 R2 in the subscription.
Sign in to the Azure portal.
Go to Microsoft Defender for Cloud > Environment settings.
Select the
relevant subscription.Insubscription with theMonitoring coverage column of theWindows machines that you want to receive Defender forServers plan, selectSettings.Endpoint.The status of the Endpoint
protectionsprotection component is Partial,which meansmeaning that not all parts of the component are enabled.Select Fix to see the components that aren't enabled.
Go to Missing components > Unified solution.
SelectIn Missing components > Unified solution, select Enable.Theto automatically install the Defender for Endpoint agentautomatically installson Windows Server 2012 R2 and 2016 machines connected to Microsoft Defender for Cloud.Select Save.
In Settings and monitoring, select Continue.
Enabling Defender for Endpoint integration on Windows Server 2012 R2 and Windows Server 2016 machines is a one-time action. If you disable the Defender for Servers plan and then re-enable it, integration stays enabled.
Legacy subscriptions (created before summer-2021): Enable on Linux machines (plan/integration enabled)
If Defender for Servers is already enabled and Defender for Endpoint integration is on in a subscription that existed before summer 2021, you might need to manually enable the integration for Linux machines.
Sign in to the Azure portal.
Go to Microsoft Defender for Cloud > Environment settings.
Select the
relevant subscription.Insubscription with theMonitoring coverage column of theLinux machines that you want to receive Defender forServers plan, selectSettings.Endpoint.The status of the Endpoint
protectionsprotection component is Partial, meaning that not all parts of the component are enabled.Select Fix to see the components that aren't enabled.

In Missing components > Linux machines, select Enable.
Select Save
.to save your settings.In Settings and monitoring, select Continue.
- Defender for Cloud onboards Linux machines to Defender for Endpoint.
The settings WDATP_UNIFIED_SOLUTION and WDATP_EXCLUDE_LINUX_PUBLIC_PREVIEW are relevant for legacy subscriptions. These settings apply to subscriptions that already have the Defender for Endpoint integration enabled when these features were introduced in August 2021 and Spring 2022.
Troubleshoot extension deployment
Use the following sequence instead of retrying the deployment without first identifying the failure stage.
| Symptom | What to check | Next action |
|---|---|---|
The MDE.Windows or MDE.Linux extension doesn't appear | Confirm that Defender for Servers and endpoint protection are enabled, the machine is powered on, and the operating system is supported. If the machine is connected through Azure Arc, verify that the Azure Connected Machine agent is healthy. | Resolve the missing prerequisite, and then allow the normal provisioning window to complete. |
| The extension remains in Creating or reports Provisioning failed | Open the extension in the Azure portal and select View detailed status. Review the platform logs listed later in this section. | Run the Client Analyzer and address the reported connectivity, policy, package, or service issue before retrying. |
| The extension succeeds, but the device doesn't appear in the Microsoft Defender portal | Verify onboarding status, connectivity, and that the device is associated with the intended Defender for Endpoint organization (tenant). | Allow up to 12 hours for the first subscription in a tenant or up to one hour for later machines. If the device belongs to another tenant, offboard it from that tenant before onboarding it to the intended tenant. |
| The device appears, but reports unhealthy or unlicensed | Review sensor health and licensing output rather than reinstalling the extension immediately. | Use the platform-specific Defender for Endpoint troubleshooting guidance and collect diagnostics if the issue continues. |
Windows diagnostics
- Azure portal: VM > Extensions > MDE.Windows > View detailed status
- Event Viewer: Applications and Services Logs > Microsoft > Windows > Windows Defender
- Extension logs:
C:\WindowsAzure\Logs\Plugins\Microsoft.Azure.AzureDefenderForServers.MDE.Windows - Run the Defender for Endpoint Client Analyzer on Windows.
- For onboarding and sensor errors, use Troubleshoot Defender for Endpoint onboarding issues.
Linux diagnostics
- Azure portal: VM > Extensions > MDE.Linux > View detailed status
- Extension logs:
/var/log/azure/Microsoft.Azure.AzureDefenderForServers.MDE.Linux/ - Installation log:
/var/log/microsoft/mdatp/install.log - Installation journal:
sudo journalctl --no-pager | grep 'microsoft-mdatp' - Sensor health:
mdatp health - If the machine is Azure Arc-enabled:
azcmagent show - Diagnostic package:
sudo mdatp diagnostic create - Follow Troubleshoot installation issues for Defender for Endpoint on Linux for dependency, service-account, systemd, SELinux, and
noexecissues.
Important
Don't disable Group Policy, SELinux, mount protections, or another security control as a generic first action. Confirm the root cause and follow your organization's change-control process. If a troubleshooting procedure temporarily changes a security control, restore the control immediately after the test.
Track Defender for Endpoint deployment status
You can use the Defender for Endpoint deployment status workbook to track the Defender for Endpoint deployment status on your Azure VMs and Azure Arc-enabled VMs. The interactive workbook provides an overview of machines in your environment showing their Defender for Endpoint extension deployment status.
To remove the Defender for Endpoint solution from your machines:
To disableSign in to theintegration, inAzure portal.- Go to Microsoft Defender for
Cloud, go toCloud > Environment settings,thenand select thesubscription with therelevantmachines.subscription. In the Defender plans page, selectGo to Settings& Monitoringand monitoring > Endpoint protection.In the status of theToggle Endpoint protectioncomponent, selectto Offto disable the integration with Defender for Endpoint for the subscription..- Select Continue
and. - Select Save
to save your settings.. - Remove the
MDE.WindowsorMDE.Linuxextension from the machine. - Offboard the device from the Microsoft Defender for Endpoint service.
Remove Defender for Endpoint integration tags
@@ -15,7 +15,7 @@ manager: orspodek ms.service: defender-for-cloud description: Learn how to enable Microsoft Defender for Endpoint integration in Microsoft Defender for Cloud to protect your multicloud and on-premises machines. ms.topic: how-to-ms.date: 2026-07-03T00:00:00.0000000Z+ms.date: 2026-09-23T00:00:00.0000000Z ms.custom: msecd-doc-authoring-1013 ai-usage: ai-assisted locale: en-us@@ -34,12 +34,12 @@ item_type: Content source_path: defender-for-cloud/enable-defender-for-endpoint.md cmProducts: - https://authoring-docs-microsoft.poolparty.biz/devrel/8e3fdb08-a059-4277-98f6-c0e21e940707+- https://authoring-docs-microsoft.poolparty.biz/devrel/68ec7f3a-2bc6-459f-b959-19beb729907d - https://microsoft-devrel.poolparty.biz/DevRelOfferingOntology/fc3f72c2-fb6f-4cea-95ee-b444e52254ee-- https://microsoft-devrel.poolparty.biz/DevRelOfferingOntology/8b9ae643-2e85-42b8-beb2-eef4bae8c4bc spProducts: - https://authoring-docs-microsoft.poolparty.biz/devrel/88291526-9c74-4f87-878c-de0a82134421+- https://authoring-docs-microsoft.poolparty.biz/devrel/90370425-aca4-4a39-9533-d52e5e002a5d - https://microsoft-devrel.poolparty.biz/DevRelOfferingOntology/f12cf087-582d-48ac-a085-0c19adf1e391-- https://microsoft-devrel.poolparty.biz/DevRelOfferingOntology/e047e27d-b5f3-43a8-b4b0-4f6dca95e7c9 platformId: 117525b1-d4b8-d027-4e11-5b9ee1e9545a --- @@ -48,7 +48,7 @@ platformId: 117525b1-d4b8-d027-4e11-5b9ee1e9545a Microsoft Defender for Cloud [integrates natively with Microsoft Defender for Endpoint](integration-defender-for-endpoint) to provide Defender for Endpoint and Defender Vulnerability Management capabilities in Defender for Cloud.
- When you enable the Defender for Servers plan in Defender for Cloud, Defender for Endpoint integration is enabled by default.
-- The integration automatically deploys the Defender for Endpoint agent on machines.
+- The integration deploys or uses an existing Defender for Endpoint installation on supported machines when prerequisites are met.
This article explains how to manually enable Defender for Endpoint integration if it was previously turned off or if you have a legacy subscription that requires manual opt-in.
@@ -56,14 +56,95 @@ This article explains how to manually enable Defender for Endpoint integration i
Before you enable Defender for Endpoint integration, review these requirements.
-| Requirement | Details |
+| **Requirement** | **Details** |
| --- | --- |
-| **Windows support** | Verify that Windows machines are [supported by Defender for Endpoint](/en-us/defender-endpoint/configure-server-endpoints#windows-server-2012-r2-and-windows-server-2016). |
-| **Linux support** | For Linux servers, you must have Python installed. Python 3 is recommended for all distros, but is required for RHEL 8.x and Ubuntu 20.04 or higher. Automatic deployment of the Defender for Endpoint sensor on Linux machines might not work as expected if machines run services that use [fanotify](/en-us/microsoft-365/security/defender-endpoint/microsoft-defender-endpoint-linux#system-requirements). Manually install the Defender for Endpoint sensor on these machines. |
-| **Azure VMs** | Check that virtual machines (VMs) can connect to the Defender for Endpoint service. If machines don't have direct access, proxy settings or firewall rules need to allow access to Defender for Endpoint URLs. Review [Windows proxy and internet configuration](/en-us/defender-endpoint/configure-proxy-internet) and [Linux static proxy configuration](/en-us/defender-endpoint/linux-static-proxy-configuration). |
-| **On-premises VMs** | We recommend that you [onboard on-premises machines as Azure Arc-enabled VMs](/en-us/azure/azure-arc/servers/learn/quick-enable-hybrid-vm). If you [onboard on-premises VMs directly](onboard-machines-with-defender-for-endpoint), Defender for Servers Plan 1 features are available, but most Defender for Servers Plan 2 functionality doesn't work. |
+| **Windows support** | Confirm that each Windows machine runs an [operating system version supported by Defender for Endpoint](/en-us/defender-endpoint/minimum-requirements). |
+| **Linux support** | For Linux servers, install Python 3. Python 3 is required for Red Hat Enterprise Linux (RHEL) 8.x and Ubuntu 20.04 or later. Some [Linux security monitoring solutions that use fanotify can affect automatic deployment of Defender for Endpoint](/en-us/defender-endpoint/microsoft-defender-endpoint-linux#system-requirements). |
+| **Azure VMs** | Check that VMs can connect to the Defender for Endpoint service. If machines don't have direct access, proxy settings or firewall rules need to allow access to Defender for Endpoint URLs. Review [Windows proxy and internet configuration](/en-us/defender-endpoint/configure-proxy-internet) and [Linux static proxy configuration](/en-us/defender-endpoint/linux-static-proxy-configuration). |
+| **On-premises VMs** | We recommend that you [onboard on-premises machines as Azure Arc-enabled VMs](/en-us/azure/azure-arc/servers/learn/quick-enable-hybrid-vm). If you [onboard on-premises VMs directly](onboard-machines-with-defender-for-endpoint), Defender for Servers Plan 1 features are available, but some Defender for Servers Plan 2 capabilities aren't available without Azure Arc. |
| **Azure tenant** | If you moved your subscription between Azure tenants, some manual preparatory steps are also required. [Contact Microsoft support](https://portal.azure.com/#view/Microsoft_Azure_Support/HelpAndSupportBlade/%7E/overview) for details. |
-| **Windows Server 2016, Windows Server 2012 R2** | Unlike later versions of Windows Server, which come with the Defender for Endpoint sensor preinstalled, Defender for Cloud installs the sensor on machines running Windows Server 2016/Windows Server 2012 R2 using the unified Defender for Endpoint solution. |
+| **Existing Defender for Endpoint installation** | Defender for Cloud can use an existing Defender for Endpoint sensor when the device is associated with the same Defender for Endpoint organization (tenant). Defender for Cloud doesn't automatically reassign a device that is onboarded to a different organization. Offboard the device from the previous organization before you onboard it to the organization associated with Defender for Cloud. |
+| **Windows Server 2016, 2012 R2** | Unlike later versions of Windows Server, which come with the Defender for Endpoint sensor preinstalled, Defender for Cloud installs the sensor on machines running Windows Server 2016/2012 R2 using the unified Defender for Endpoint solution. |
+
+## Pre-deployment validation
+
+Complete these checks before you enable Defender for Endpoint integration:
+
+- Confirm that the machine is powered on and runs a [supported operating system](/en-us/defender-endpoint/minimum-requirements).
+- For Azure Arc-enabled machines, confirm that the Azure Connected Machine agent reports a healthy connection.
+- Confirm that the machine can reach the [Defender for Endpoint service URLs](/en-us/defender-endpoint/configure-environment). Don't use a test against a single URL as proof that all required service endpoints are reachable.
+- Confirm that your proxy doesn't require interactive user authentication. The Defender for Endpoint sensor connects in the system context.
+- On Linux, confirm that the distribution is supported, Python is installed, and the file system that contains `/opt/microsoft/mdatp` isn't mounted with `noexec`.
+- Review Group Policy and third-party antimalware configuration to confirm that Microsoft Defender Antivirus and the Early Launch Antimalware (ELAM) driver aren't disabled.
+
+For a complete connectivity and sensor-readiness assessment, run the [Microsoft Defender for Endpoint Client Analyzer](/en-us/defender-endpoint/overview-client-analyzer). The analyzer tests the service endpoints and collects diagnostics in the same security context used by the sensor.
+
+### Collect Windows readiness information
+
+The following read-only PowerShell script collects information that is commonly needed when you investigate a deployment failure. It doesn't modify the server and doesn't replace the supported operating-system check or the Client Analyzer.
+
+```powershell
+$os = Get-CimInstance Win32_OperatingSystem
+$disk = Get-CimInstance Win32_LogicalDisk -Filter "DeviceID='$($env:SystemDrive)'"
+$himds = Get-Service -Name himds -ErrorAction SilentlyContinue
+$senseService = Get-Service -Name Sense -ErrorAction SilentlyContinue
+$defenderService = Get-Service -Name WinDefend -ErrorAction SilentlyContinue
+
+[pscustomobject]@{
+ ComputerName = $env:COMPUTERNAME
+ OperatingSystem = $os.Caption
+ OSVersion = $os.Version
+ SystemDriveFreeGB = [math]::Round($disk.FreeSpace / 1GB, 2)
+ AzureArcAgent = if ($himds) { $himds.Status } else { 'Not installed' }
+ SenseService = if ($senseService) { $senseService.Status } else { 'Not present' }
+ DefenderAntivirusService = if ($defenderService) { $defenderService.Status } else { 'Not present' }
+ PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+}
+```
+
+Interpret the output against the linked platform requirements. A stopped or missing service isn't, by itself, proof of the root cause because the expected service state depends on the operating system and deployment stage.
+
+### Collect Linux readiness information
+
+Run these commands to collect Linux prerequisites and health information:
+
+```bash
+cat /etc/os-release
+python3 --version
+findmnt -no TARGET,OPTIONS /
+findmnt -T /opt -o TARGET,OPTIONS
+azcmagent show
+mdatp health
+```
+
+If Defender for Endpoint isn't installed yet, the `mdatp health` command isn't available. Validate the distribution and version against [Defender for Endpoint on Linux prerequisites](/en-us/defender-endpoint/mde-linux-prerequisites), and use the Client Analyzer after installation to validate connectivity and collect diagnostics.
+
+## Deployment and verification by platform
+
+### Windows Server 2019 and later
+
+- Enable Defender for Servers Plan 1 or Plan 2.
+- Verify endpoint protection is enabled in **Environment settings** > **Endpoint protection**.
+- Verify the extension state in the Azure portal: **VM** > **Extensions** > **MDE.Windows** > **Provisioning succeeded**.
+- Verify onboarding in the Microsoft Defender portal: **Devices** > server name.
+
+### Windows Server 2016 and Windows Server 2012 R2
+
+Note
+
+For legacy subscriptions created before spring 2022, follow the steps in Legacy subscriptions (created before spring-2022): Enable Defender for Endpoint unified solution on Windows Server 2016/2012 R2.
+
+- Enable Defender for Servers.
+- Keep the operating system and Microsoft Defender Antivirus fully updated.
+- After the unified agent is installed, make sure Defender Antivirus Update `KB5005292` is approved and applied so that the EDR sensor continues to receive updates.
+- Verify the `MDE.Windows` extension and the device record in the Microsoft Defender portal.
+
+### Linux servers
+
+- Validate the supported distribution, Python requirement, file-system mount options, and outbound connectivity before deployment.
+- Verify extension state in Azure portal: **VM** > **Extensions** > **MDE.Linux** > **Provisioning succeeded**.
+- Run `mdatp health` and confirm that `healthy` and `licensed` are true.
+- If installation fails, follow [Troubleshoot installation issues for Defender for Endpoint on Linux](/en-us/defender-endpoint/linux-support-install) and apply a remediation for a similarly worded error only after you confirm the actual failure in the installation or extension logs.
## Enable Defender for Endpoint integration on a subscription
@@ -71,18 +152,21 @@ When you enable a Defender for Servers plan, Defender for Endpoint integration i
To enable Defender for Endpoint integration on a subscription:
-1. Go to **Defender for Cloud** > **Environment settings**.
-2. Select the relevant subscription.
-3. Go to **Settings and monitoring** > **Endpoint protection**.
-4. Set status to **On**.
+1. Sign in to the [Azure portal](https://portal.azure.com/).
+2. Go to **Microsoft Defender for Cloud** > **Environment settings**.
+3. Select the subscription containing the machines on which you want to deploy the Defender for Endpoint integration.
+4. Go to **Settings and monitoring** > **Endpoint protection**.
+5. Toggle **Status** to **On**.
[](media/integration-defender-for-endpoint/enable-defender-for-endpoint.png#lightbox)
-5. Select **Continue**.
-6. Select **Save**.
+6. Select **Continue**.
+7. Select **Save**.
+8. The Defender for Endpoint sensor is deployed to supported Windows and Linux machines that meet the prerequisites.
+9. Defender for Cloud detects an existing Defender for Endpoint installation and uses it when the device is associated with the same Defender for Endpoint organization (tenant). A device onboarded to another organization isn't automatically reassigned.
-The Defender for Endpoint sensor is deployed to all Windows and Linux machines in the selected subscription.
+Important
-Onboarding might take up to an hour. Defender for Cloud detects any previous Defender for Endpoint installations and reconfigures them to integrate with Defender for Cloud.
+If this is the first subscription that you're configuring for Defender for Endpoint integration in the tenant, onboarding can take up to 12 hours. After integration is enabled for the first time, onboarding new machines and subscriptions can take up to one hour.
Note
@@ -103,24 +187,22 @@ Note
On new subscriptions, Defender for Endpoint integration is automatically enabled and covers machines running a supported Windows Server or Linux operating system. The Enable Defender for Endpoint unified solution on Windows Server 2016/2012 R2 and Enable on Linux machines sections cover one-time opt-in procedures that might be required for legacy subscriptions.
-## Enable Defender for Endpoint unified solution on Windows Server 2016/2012 R2
+## Legacy subscriptions (created before spring-2022): Enable Defender for Endpoint unified solution on Windows Server 2016/2012 R2
If you enabled Defender for Servers and turned on Defender for Endpoint integration in a subscription that you created before spring 2022, you might need to manually enable integration of the unified solution for machines running Windows Server 2016 or Windows Server 2012 R2 in the subscription.
-1. Go to **Defender for Cloud** > **Environment settings**.
-2. Select the relevant subscription.
-3. In the Monitoring coverage column of the Defender for Servers plan, select **Settings**.
+1. Sign in to the [Azure portal](https://portal.azure.com/).
+2. Go to **Microsoft Defender for Cloud** > **Environment settings**.
+3. Select the subscription with the Windows machines that you want to receive Defender for Endpoint.
- The status of the Endpoint protections component is **Partial**, which means that not all parts of the component are enabled.
+ The status of the **Endpoint protection** component is **Partial**, meaning that not all parts of the component are enabled.
4. Select **Fix** to see the components that aren't enabled.
[](media/integration-defender-for-endpoint/fix-defender-for-endpoint.png#lightbox)
5. Go to **Missing components** > **Unified solution**.
-6. Select **Enable**.
+6. In **Missing components** > **Unified solution**, select **Enable** to automatically install the Defender for Endpoint agent on Windows Server 2012 R2 and 2016 machines connected to Microsoft Defender for Cloud.
[](media/integration-defender-for-endpoint/enable-defender-for-endpoint-unified.png#lightbox)
-
- The Defender for Endpoint agent automatically installs on Windows Server 2012 R2 and 2016 machines connected to Microsoft Defender for Cloud.
7. Select **Save**.
8. In **Settings and monitoring**, select **Continue**.
@@ -132,22 +214,22 @@ Note
Enabling Defender for Endpoint integration on Windows Server 2012 R2 and Windows Server 2016 machines is a one-time action. If you disable the Defender for Servers plan and then re-enable it, integration stays enabled.
-## Enable on Linux machines (plan/integration enabled)
+## Legacy subscriptions (created before summer-2021): Enable on Linux machines (plan/integration enabled)
If Defender for Servers is already enabled and Defender for Endpoint integration is on in a subscription that existed before summer 2021, you might need to manually enable the integration for Linux machines.
-1. Go to **Defender for Cloud** > **Environment settings**.
-2. Select the relevant subscription.
-3. In the Monitoring coverage column of the Defender for Servers plan, select **Settings**.
+1. Sign in to the [Azure portal](https://portal.azure.com/).
+2. Go to **Microsoft Defender for Cloud** > **Environment settings**.
+3. Select the subscription with the Linux machines that you want to receive Defender for Endpoint.
- The status of the **Endpoint protections** component is **Partial**, meaning that not all parts of the component are enabled.
+ The status of the **Endpoint protection** component is **Partial**, meaning that not all parts of the component are enabled.
4. Select **Fix** to see the components that aren't enabled.

5. In **Missing components** > **Linux machines**, select **Enable**.
[](media/integration-defender-for-endpoint/enable-defender-for-endpoint-linux.png#lightbox)
-6. Select **Save**.
+6. Select **Save** to save your settings.
7. In **Settings and monitoring**, select **Continue**.
- Defender for Cloud onboards Linux machines to Defender for Endpoint.
@@ -212,6 +294,40 @@ Both the Defender for Endpoint Unified Solution and Defender for Endpoint for Li
The settings `WDATP_UNIFIED_SOLUTION` and `WDATP_EXCLUDE_LINUX_PUBLIC_PREVIEW` are relevant for legacy subscriptions. These settings apply to subscriptions that already have the Defender for Endpoint integration enabled when these features were introduced in August 2021 and Spring 2022.
+## Troubleshoot extension deployment
+
+Use the following sequence instead of retrying the deployment without first identifying the failure stage.
+
+| Symptom | What to check | Next action |
+| --- | --- | --- |
+| The `MDE.Windows` or `MDE.Linux` extension doesn't appear | Confirm that Defender for Servers and endpoint protection are enabled, the machine is powered on, and the operating system is supported. If the machine is connected through Azure Arc, verify that the Azure Connected Machine agent is healthy. | Resolve the missing prerequisite, and then allow the normal provisioning window to complete. |
+| The extension remains in **Creating** or reports **Provisioning failed** | Open the extension in the Azure portal and select **View detailed status**. Review the platform logs listed later in this section. | Run the Client Analyzer and address the reported connectivity, policy, package, or service issue before retrying. |
+| The extension succeeds, but the device doesn't appear in the Microsoft Defender portal | Verify onboarding status, connectivity, and that the device is associated with the intended Defender for Endpoint organization (tenant). | Allow up to 12 hours for the first subscription in a tenant or up to one hour for later machines. If the device belongs to another tenant, offboard it from that tenant before onboarding it to the intended tenant. |
+| The device appears, but reports unhealthy or unlicensed | Review sensor health and licensing output rather than reinstalling the extension immediately. | Use the platform-specific Defender for Endpoint troubleshooting guidance and collect diagnostics if the issue continues. |
+
+### Windows diagnostics
+
+- Azure portal: **VM** > **Extensions** > **MDE.Windows** > **View detailed status**
+- Event Viewer: **Applications and Services Logs** > **Microsoft** > **Windows** > **Windows Defender**
+- Extension logs: `C:\WindowsAzure\Logs\Plugins\Microsoft.Azure.AzureDefenderForServers.MDE.Windows`
+- Run the [Defender for Endpoint Client Analyzer on Windows](/en-us/defender-endpoint/run-analyzer-windows).
+- For onboarding and sensor errors, use [Troubleshoot Defender for Endpoint onboarding issues](/en-us/defender-endpoint/troubleshoot-onboarding).
+
+### Linux diagnostics
+
+- Azure portal: **VM** > **Extensions** > **MDE.Linux** > **View detailed status**
+- Extension logs: `/var/log/azure/Microsoft.Azure.AzureDefenderForServers.MDE.Linux/`
+- Installation log: `/var/log/microsoft/mdatp/install.log`
+- Installation journal: `sudo journalctl --no-pager | grep 'microsoft-mdatp'`
+- Sensor health: `mdatp health`
+- If the machine is Azure Arc-enabled: `azcmagent show`
+- Diagnostic package: `sudo mdatp diagnostic create`
+- Follow [Troubleshoot installation issues for Defender for Endpoint on Linux](/en-us/defender-endpoint/linux-support-install) for dependency, service-account, systemd, SELinux, and `noexec` issues.
+
+Important
+
+Don't disable Group Policy, SELinux, mount protections, or another security control as a generic first action. Confirm the root cause and follow your organization's change-control process. If a troubleshooting procedure temporarily changes a security control, restore the control immediately after the test.
+
## Track Defender for Endpoint deployment status
You can use the [Defender for Endpoint deployment status workbook](https://github.com/Azure/Microsoft-Defender-for-Cloud/tree/main/Workbooks/Defender%20for%20Servers%20Deployment%20Status) to track the Defender for Endpoint deployment status on your Azure VMs and Azure Arc-enabled VMs. The interactive workbook provides an overview of machines in your environment showing their Defender for Endpoint extension deployment status.
@@ -235,12 +351,14 @@ To run a detection test, see [EDR detection test for verifying device's onboardi
To remove the Defender for Endpoint solution from your machines:
-1. To disable the integration, in Defender for Cloud, go to **Environment settings**, then select the subscription with the relevant machines.
-2. In the Defender plans page, select **Settings & Monitoring**.
-3. In the status of the **Endpoint protection** component, select **Off** to disable the integration with Defender for Endpoint for the subscription.
-4. Select **Continue** and **Save** to save your settings.
-5. Remove the `MDE.Windows` or `MDE.Linux` extension from the machine.
-6. [Offboard the device from the Microsoft Defender for Endpoint service](/en-us/defender-endpoint/offboard-machines).
+1. Sign in to the [Azure portal](https://portal.azure.com/).
+2. Go to **Microsoft Defender for Cloud** > **Environment settings**, and select the relevant subscription.
+3. Go to **Settings and monitoring** > **Endpoint protection**.
+4. Toggle **Endpoint protection** to **Off**.
+5. Select **Continue**.
+6. Select **Save**.
+7. Remove the `MDE.Windows` or `MDE.Linux` extension from the machine.
+8. [Offboard the device from the Microsoft Defender for Endpoint service](/en-us/defender-endpoint/offboard-machines).
### Remove Defender for Endpoint integration tags



