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

NinjaOne Agent Installation: Windows 365 Deployment

Topic

This article explains how to register the NinjaOne Agent software in Microsoft Entra ID and configure the software’s deployment to Microsoft Windows 365 Cloud PCs.

For more information about app registration, refer to Register an application in Microsoft Entra ID (external link) and Overview of permissions and consent in the Microsoft identity platform (external link).

Environment

  • NinjaOne Endpoint Management
  • Microsoft Entra ID
  • Microsoft Windows 365

Description

Microsoft Windows 365 is a cloud-based Software-as-a-Service (SaaS) platform that empowers you to create and deploy Microsoft Windows virtual machines, called "Cloud PCs," for your users. These endpoints enable users to run fully featured Windows 10 or Windows 11 virtual machines on various devices, including PCs, Apple iOS devices, and Android smartphones. Windows 365 offers a range of deployment options tailored to different organizational roles and needs. It enhances productivity, security, and collaboration by integrating seamlessly with Microsoft 365 solutions.

We're proud to partner with Microsoft to bring NinjaOne device management to Windows 365 Cloud PCs.

Select a topic to continue:

Prerequisites

The Microsoft Entra ID tenant and user account you leverage to deploy the NinjaOne Agent software to your protected virtual endpoints must meet the following requirements:

User Account

Your user account must be a Global Administrator of the selected Microsoft tenant.

Required App Registration

You'll need to register an app in Microsoft Entra ID with the following administrator permissions:

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

To complete the steps described in this article, you'll also need to set the following environment variables in a shell session. The shell session does not need to be run on any specific endpoint or in any specific environment; it only requires an internet connection to authenticate the tenant administrator when sending requests to Microsoft’s Graph API.

VariableDefinition
NINJAONE_INSTALLER_URLURL of the tokenized NinjaOne Agent software installer you'd like to use; for more information, refer to NinjaOne Agent Installation: Agent Tokenization
NINJAONE_INSTALLER_TOKENYour selected NinjaOne Agent software installer's token (without quotes); learn how to find this value in Viewing Installer Details and Obtain the Install Command
CLOUDPC_TENANT_IDYour Microsoft tenant ID; consult How to find your Microsoft Entra tenant ID (external link) for guidance
CLOUDPC_CLIENT_IDApp client ID, retrieved after Microsoft Entra app registration
CLOUDPC_CLIENT_SECRETApp secret, retrieved after Microsoft Entra app registration

Retrieve the Integration Script from the Automation Library

  1. Next, in NinjaOne, navigate to Administration → Library → Automation → Automation library → Template Library.
  2. Download the Ninja - Windows 365 Cloud PC - Partner Connector Tool script.
Automation-Library-Partner-Connector-365.png
Figure 1: Ninja - Windows 365 Cloud PC - Partner Connector Tool (click to enlarge)
  1. Proceed to the Configure the Agent and Auto Deployment section of this article.

Configure the Agent and Auto Deployment

Before you can deploy the NinjaOne agent to your managed endpoints, you must create a local agent profile and then use that file to onboard a NinjaOne connector in your Microsoft tenant. To do so, perform the following steps:

  1. Follow the instructions in the Ninja - Windows 365 Cloud PC - Partner Connector Tool script. from the Automation Library to create a local profile on your machine.
  2. Optionally, validate your configuration by visiting the Microsoft Graph Explorer (external link) and querying the https://graph.microsoft.com/beta/deviceManagement/virtualEndpoint/externalPartners endpoint. You should see the NinjaOne connector in your Graph API response.
  3. Proceed to the Deploying the NinjaOne Agent to Target Cloud PCs section of this article.

Deploying the NinjaOne Agent to Target Cloud PCs

Once you've completed the steps in the Configure the Agent and Auto Deployment section of this article, you can deploy the NinjaOne Agent software installer to your managed Cloud PCs. Complete the following workflow in your shell session to identify your target endpoints, deploy the installer, and monitor your deployment status.

For information about how to perform these steps, refer to the instructions included with the Ninja - Windows 365 Cloud PC - Partner Connector Tool script from the Automation Library.
  1. List all Cloud PCs and copy the IDs you want to target.
  2. Deploy the agent to up to 50 Cloud PCs per call. The deployment output will return activityID for status tracking.
  3. Optionally, use the activityID value to monitor the deployment's status. The query will return a value of Pending, Complete, or Failed.

Additional Resources

For more agent deployment and management learning resources, refer to our NinjaOne Agent: Resource Catalog article.

FAQ

Next Steps