Share via

API/ARM support to programmatically connect secondary Microsoft Sentinel workspaces in Microsoft Defender portal

Michael Cain 0 Reputation points
2026-01-12T11:03:48.0966667+00:00

I am trying to prepare for the upcoming retirement of Microsoft Sentinel in the Azure portal.

I have Microsoft Sentinel integrated with the Microsoft Defender portal, with one Log Analytics workspace configured as the Primary workspace in the Defender portal. I need to connect additional Sentinel workspaces as Secondary workspaces.

I can programmatically enable Microsoft Sentinel on a workspace via IaC, but I have not found a supported public API/ARM/REST/CLI mechanism for the Defender portal action to “Connect a workspace” as secondary (System → Settings → Microsoft Sentinel → Workspaces). I have numerous secondary workspaces, and new ones are constantly being created.

Questions

  1. Is there a supported public API / ARM resource / REST endpoint / CLI command to connect a Sentinel-enabled Log Analytics workspace to the Microsoft Defender portal as a secondary workspace (when a primary already exists)?
    • If not, is Microsoft considering adding one? If so, is there a roadmap, preview, or recommended pattern for enterprises that require automated onboarding before July 2026?
  2. Behavior after July 2026: If my tenant already has at least one Sentinel workspace connected in the Defender portal, what happens when I create new Sentinel workspaces after July 2026?
    • Will newly created Sentinel workspaces be automatically connected to the Defender portal (as secondary), or do they still require a manual “Connect” action in the Defender portal?
Microsoft Security | Microsoft Sentinel

1 answer

Sort by: Most helpful
  1. Michael Cain 0 Reputation points
    2026-01-12T14:13:33.9466667+00:00

    Hi Rukmini,

    Thanks for the follow-up.

    To clarify our current approach and why we are pushing for automation:

    Automation/tools: We provision and manage Log Analytics workspaces (and enable Sentinel) using Terraform, with supporting automation via the Azure SDK for Go.

    Workflow needing support: We need a supported way to perform the Defender portal action System → Settings → Microsoft Sentinel → Workspaces → “Connect workspace” for newly created Sentinel-enabled workspaces as Secondary workspaces (we already have a Primary workspace configured).

    Why manual doesn’t scale: We can do the “Connect” step manually today, but it is not sustainable at the rate new workspaces are created, and it creates operational risk (missed onboarding / inconsistent coverage) as we approach July 2026.

    Could you please confirm (ideally with an official reference):

    Post–July 2026 behavior: In your response you noted that newly created Sentinel workspaces will not automatically connect as secondary workspaces and will require a manual “Connect” action. Can you confirm whether this is definitive product behavior and share a supporting documentation link/announcement?

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.