Already a NinjaOne customer? Log in to view more guides and the latest updates.

NinjaOne Agent Installation: Windows 365 Deployment

This guide explains how to register the NinjaOne Agent in Microsoft Entra ID and deploy it to Windows 365 Cloud PCs using Microsoft Graph API workflows and the NinjaOne Partner Connector integration.

Environment

  • NinjaOne Endpoint Management
  • Microsoft Entra ID
  • Microsoft Windows 365 Cloud PCs
  • Microsoft Graph API

Description

Windows 365 delivers persistent Cloud PCs hosted in the Microsoft 365 ecosystem, providing a full Windows experience—Windows 10 or Windows 11—accessible from virtually any device. Management and provisioning are primarily executed through the Microsoft Graph API.

Integrating NinjaOne with Windows 365 enables unified visibility, consistent policy application, and standardized remote management across physical and virtual endpoints.

Relevant Microsoft documentation:

Prerequisites

User Account Requirements

The account used to configure and deploy the agent must hold the Global Administrator role in the target Microsoft Entra tenant.

Required App Registration

Create an application in Microsoft Entra ID and assign the following permissions (ensure admin consent):

APIPermission NameType
Azure Active Directory GraphDirectory.AccessAsUser.AllDelegated
Azure Active Directory GraphUser.ReadDelegated
Microsoft GraphCloudPC.ReadWrite.AllDelegated
Microsoft Partner Centeruser_impersonationDelegated
Azure Active Directory GraphDirectory.Read.AllApplication
Microsoft GraphDirectory.Read.AllApplication
Microsoft GraphSecurityEvents.Read.AllApplication

Required Environment Variables

Set these variables in your shell session (requires internet access only):

VariableDefinition
NINJAONE_INSTALLER_URLTokenized NinjaOne Agent installer URL
NINJAONE_INSTALLER_TOKENInstaller token for the selected package
CLOUDPC_TENANT_IDMicrosoft Entra tenant GUID
CLOUDPC_CLIENT_IDApp (client) ID from app registration
CLOUDPC_CLIENT_SECRETClient secret from app registration

Retrieve the Integration Script

In NinjaOne, navigate to:
Administration → Library → Automation → Template Library

Locate and download the script titled:
Ninja – Windows 365 Cloud PC – Partner Connector Tool

This script contains all the logic needed to authenticate with Microsoft Entra ID, register the NinjaOne connector, and prepare for automated deployment.

Configure the Agent and Auto Deployment

Before deploying the NinjaOne Agent to Cloud PCs, you need to create a local agent profile and register the NinjaOne connector in your Microsoft tenant. Here’s what to do:

  • Run the downloaded script on your machine. It will:
    • Generate the NinjaOne agent profile
    • Authenticate using Microsoft identity platform
    • Register the connector under your tenant’s virtual endpoint configuration

Once registered, the connector appears in Microsoft Graph under:
https://graph.microsoft.com/beta/deviceManagement/virtualEndpoint/externalPartners

Deploying the NinjaOne Agent to Target Cloud PCs

After configuring the connector, use your shell session and the integration script to deploy the NinjaOne Agent. Follow this workflow:

  1. List all Cloud PCs
    Query the virtualEndpoint/cloudPCs resource to retrieve device IDs for the endpoints you want to target.
  2. Deploy the agent
    Send the deployment request for up to 50 Cloud PCs per call. The response will include an activityID for tracking.

This process ensures a scalable, automated deployment across your Windows 365 environment.

FAQ

Next Steps