Skip to content
Solar Account.
Education & Software

How to Connect Zscaler to Microsoft Defender for Cloud Apps

To connect Zscaler to Microsoft Defender for Cloud Apps, you must configure the Zscaler Nanolog Streaming Service (NSS) to forward web traffic logs to the Microsoft Defender for Cloud Apps portal. This integration allows for comprehensive Shadow IT discovery a...

How to Connect Zscaler to Microsoft Defender for Cloud Apps

To connect Zscaler to Microsoft Defender for Cloud Apps, you must configure the Zscaler Nanolog Streaming Service (NSS) to forward web traffic logs to the Microsoft Defender for Cloud Apps portal. This integration allows for comprehensive Shadow IT discovery and risk assessment by analyzing Zscaler’s granular traffic data within Microsoft’s specialized security environment.

Contents

The integration between Zscaler and Microsoft Defender for Cloud Apps (formerly Microsoft Cloud App Security or MCAS) represents a cornerstone of modern Secure Service Edge (SSE) and Cloud Access Security Broker (CASB) architectures. In 2026, as enterprises move toward fully realized Zero Trust environments, the synergy between Zscaler’s perimeter-less network security and Microsoft’s deep application visibility is more critical than ever. This guide provides a technical roadmap for establishing a seamless connection between these two powerhouses to enhance threat detection and governance.

Understanding the Zscaler and Microsoft Security Ecosystem

Before initiating the technical configuration, it is essential to understand why this connection is necessary. Zscaler Internet Access (ZIA) acts as the gateway for all user traffic, inspecting every packet to prevent data exfiltration and block malware. Microsoft Defender for Cloud Apps, on the other hand, is designed to provide deep visibility into cloud service usage, identifying "Shadow IT" (unauthorized apps) and enforcing policies on how data is handled within those apps.

By connecting Zscaler to Microsoft’s security cloud, you bridge the gap between network-level activity and application-level risk. Zscaler provides the "raw material" (logs of every web request), and Microsoft provides the "intelligence" (risk scores for thousands of apps). This allows security teams to see not just that a user went to a specific URL, but whether that URL belongs to a high-risk file-sharing site that violates corporate compliance.

The Role of Nanolog Streaming Service (NSS)

How Does Zscaler Transform Cloud Security? - TPEBD

The primary mechanism for this connection is the Zscaler Nanolog Streaming Service (NSS). Because Zscaler processes massive amounts of data in its global cloud, it does not store logs locally for long periods. The NSS is a virtual machine (VM) deployed in your infrastructure (or a supported public cloud) that pulls logs from the Zscaler Nanolog clusters in real-time and pushes them to a designated destination, such as Microsoft Defender for Cloud Apps.

Prerequisites for Successful Integration

Achieving a stable connection requires specific licensing and infrastructure components to be in place. Failure to meet these prerequisites often leads to data gaps or authentication failures during the setup process.

  1. Zscaler Subscriptions: You must have Zscaler Internet Access (ZIA) with the Nanolog Streaming Service (NSS) subscription enabled. NSS is typically an add-on or included in higher-tier bundles like ZIA Transformation or ELA packages.
  2. Microsoft Licensing: A subscription to Microsoft Defender for Cloud Apps is required. This is commonly included in Microsoft 365 E5, Mobility + Security E5, or as a standalone license.
  3. Deployment Environment: A virtual machine to host the Zscaler NSS. This VM requires a Linux-based environment (typically FreeBSD as provided by Zscaler's distribution) with sufficient CPU and RAM to handle your organization's log volume.
  4. Network Connectivity: The NSS VM requires outbound internet access to the Zscaler cloud (over port 443) and connectivity to the Microsoft Defender for Cloud Apps log collector or API endpoint (over port 443 or syslog ports).
  5. Administrative Access: You will need Super Admin rights in both the Zscaler Admin Portal and the Microsoft Defender for Cloud Apps (or Microsoft 365 Defender) portal.

Step-by-Step Configuration: Connecting the Platforms

The connection process is split into two main phases: preparing the Microsoft environment to receive data and configuring Zscaler to send it.

Phase 1: Preparing Microsoft Defender for Cloud Apps

In 2026, the Microsoft security interface is centralized within the Microsoft Defender portal. You must define Zscaler as a recognized data source so Microsoft’s parsers can interpret the log format correctly.

  • Access the Portal: Navigate to the Microsoft Defender portal and go to Settings > Cloud Apps > Cloud Discovery > Automatic Log Upload.
  • Create a Data Source: Click on "Add a data source." In the name field, enter a descriptive identifier such as "Zscaler_NSS_Primary."
  • Select Source Type: Choose "Zscaler" from the dropdown list of appliances. This ensures that the predefined Zscaler log parser is used.
  • Receiver Method: Choose "Syslog - UDP" or "Syslog - TCP," or use the "Log Collector" if you are deploying a dedicated Microsoft collector agent. Most Zscaler integrations utilize the Syslog over TLS method for encrypted transmission.
  • Save and Record Details: After saving, Microsoft will provide you with an IP address or a URL for the log upload endpoint. Keep this information for the Zscaler configuration phase.

Phase 2: Configuring Zscaler NSS for Log Streaming

Once the Microsoft "receiver" is ready, you must tell the Zscaler cloud to start pushing logs to it via your NSS VM.

  • Define the Feed: In the Zscaler ZIA portal, go to Administration > Nanolog Streaming Service. Under the "NSS Feeds" tab, click "Add NSS Feed."
  • Feed Parameters: Give the feed a name (e.g., "M365_Defender_Feed"). Select the NSS server you have previously deployed.
  • Feed Type: Set this to "Web Log."
  • Destination Server: Enter the IP address or hostname of the Microsoft Defender for Cloud Apps collector or the endpoint provided in Phase 1.
  • Log Format: This is the most critical step. Microsoft Defender for Cloud Apps requires a specific string format to parse the data. While Zscaler provides a default for many vendors, you should ensure the format follows the LEEF (Log Event Extended Format) or CEF (Common Event Format) patterns as requested by the Microsoft documentation.
  • Filter Logs: To save bandwidth and processing power, you can filter the logs to only send web traffic that is relevant to cloud discovery, such as "Allowed" or "Blocked" transactions, while excluding internal noise.

Integration Methods Comparison

Depending on your organization's size and security posture, you might choose different ways to link these services. The following table compares the most common methods available in 2026.

Integration Method Primary Use Case Complexity Required Components
NSS Log Upload Shadow IT Discovery & Risk Assessment Moderate Zscaler NSS VM, Microsoft Defender Portal
Microsoft Entra ID (IDP) Unified Identity & Conditional Access Low Microsoft Entra ID Tenant, Zscaler SAML Config
API Connector Governance & File Sanctioning High API Keys, OAuth 2.0 Permissions
Microsoft Defender for Endpoint Device-level visibility & blocking Moderate Defender for Endpoint Agent, Zscaler Client Connector

Establishing Identity Synchronization

While log streaming provides visibility, identity synchronization provides control. To ensure that the users appearing in Zscaler logs match the users in Microsoft Defender for Cloud Apps, you must use Microsoft Entra ID (formerly Azure AD) as your Identity Provider (IdP).

By configuring SAML 2.0 between Zscaler and Microsoft Entra ID, every web request logged by Zscaler is tagged with the user's immutable Entra ID identity. When these logs arrive in the Microsoft security portal, the system can automatically correlate network activity with the user's risk profile, their group memberships, and their activity in other Microsoft 365 apps.

SCIM Provisioning

Beyond authentication, you should implement SCIM (System for Cross-domain Identity Management). This ensures that when a user is deactivated in Microsoft Entra ID, they are immediately deactivated in Zscaler, preventing "zombie accounts" from accessing the internet via your corporate security edge. In 2026, SCIM is the gold standard for maintaining a clean user database across distributed cloud platforms.

Advanced Governance: Blocking Shadow IT

The ultimate goal of connecting Zscaler to Microsoft Cloud Security is the ability to act on discovered risks. Microsoft Defender for Cloud Apps evaluates thousands of cloud services and assigns them a "Risk Score" (1 to 10).

Once the connection is established, you can automate your security response:

  1. Discovery: Microsoft identifies a high-risk application (e.g., a non-compliant storage site) being used by employees.
  2. Tagging: You tag this application as "Unsanctioned" in the Microsoft Defender portal.
  3. Synchronization: Through the Zscaler-Microsoft integration, this "Unsanctioned" list is synced to Zscaler.
  4. Enforcement: Zscaler’s URL filtering engine automatically blocks any future attempts to access that specific application based on the tag provided by Microsoft.

This closed-loop system ensures that your security policy remains dynamic and responsive to new cloud threats without requiring manual updates to URL blocklists every day.

Troubleshooting Common Connection Issues

Even with a detailed plan, technical hurdles can arise. Monitoring the health of the NSS-to-Microsoft link is vital for maintaining visibility.

  • Log Lag: If logs are appearing in Microsoft Defender for Cloud Apps with a significant delay, check the CPU utilization of the NSS VM. High traffic volume may require scaling up the VM resources or deploying an NSS cluster.
  • Parser Errors: If logs are received but "Unrecognized," the issue is likely the Feed Output Format in the Zscaler portal. Verify that there are no trailing spaces or missing delimiters in the NSS Feed string.
  • Network Timeouts: Ensure that any intermediate firewalls between the NSS VM and the internet are not performing SSL inspection on the traffic destined for Microsoft, as this can break the certificate chain used for the secure syslog upload.
  • Identity Mismatch: If logs show "Unknown User," check that the Zscaler SAML configuration is sending the UPN (User Principal Name) as the NameID, which is what Microsoft Defender for Cloud Apps uses for correlation.

Frequently Asked Questions

Does connecting Zscaler to Microsoft Defender for Cloud Apps impact network performance?

The integration uses an asynchronous log-streaming method via the NSS, meaning it does not sit in the "path" of the user's traffic. Because the NSS VM handles the log processing and uploading separately from the Zscaler enforcement nodes, there is zero impact on the end-user's internet browsing speed or latency.

How often are the logs updated in the Microsoft portal?

When using the NSS feed method, logs are streamed in near real-time. Typically, you will see data appearing in the Cloud Discovery dashboard within 5 to 15 minutes of the actual web activity occurring. However, the initial processing of a large batch of logs can take slightly longer.

Can I use this integration if my NSS is hosted in AWS or Azure?

Yes. Zscaler NSS can be deployed as an instance in AWS (using an AMI) or Azure (using a VHD). The connection to Microsoft Defender for Cloud Apps works the same way regardless of whether the NSS is on-premises or in a public cloud, provided the necessary outbound ports are open.

Do I need a Microsoft Log Collector if I already have Zscaler NSS?

In most scenarios, a Microsoft Log Collector is not strictly necessary if you can send syslog data directly from Zscaler NSS to the Microsoft cloud endpoint. However, if your corporate security policy requires an on-premises aggregation point for all security logs before they leave your network, deploying a Microsoft Log Collector as an intermediary can be beneficial.

What is the difference between ZIA and ZPA integration with Microsoft?

ZIA (Zscaler Internet Access) integration focuses on web traffic and Shadow IT discovery. ZPA (Zscaler Private Access) integration focuses on user access to internal applications. Connecting ZPA to Microsoft involves streaming logs to Microsoft Sentinel or using Defender for Cloud Apps to monitor activity within those private applications, providing a different layer of the Zero Trust framework.

Next Steps for Enhanced Security

Once the core connection is established, your next priority should be refining the data quality and actionability. Start by auditing your NSS filters to ensure you aren't sending redundant data, which can help manage costs if you are using a SIEM that charges by data volume.

Next, explore the "Cloud Discovery Policies" within Microsoft Defender for Cloud Apps. You can set up alerts to notify your team whenever a user uploads an unusually large amount of data to a "Low Risk" but "Unsanctioned" application. By leveraging the Zscaler-Microsoft connection, you transform a simple web proxy into a sophisticated, automated data protection engine that is well-equipped for the security challenges of 2026.

Written by

Ryan Cooper

Productivity & Modern Work Editor