Entra ID authentication
Entra ID authentication is ideal for DeployR servers hosted in the cloud and accessible over the internet. All task sequences and content are protected. Only users who authenticate successfully can access the DeployR server. An audit trail is available showing who logged in.
To authenticate using Entra ID:
Create an Entra ID application that allows authentication of users in your Entra ID tenant.
Configure DeployR with the details for your Entra ID tenant and application.
See the Microsoft documentation for more information on this authentication mechanism.
Configure Entra ID
To create an Entra ID application, sign in to Entra ID as a global administrator or other user with sufficient permissions, then click "New registration" from the "App registrations" page.

On the subsequent page, specify the user-facing name (e.g. "Contoso DeployR authentication") which will be shown to the user when they attempt to log in; the remaining settings can be left as defaults.

Click Register to create the application. On the application's Authentication (Preview) page, open Settings, enable Allow public client flows, and save your changes.

While still on the Authentication (Preview) page, go to Redirect URI configuration and click Add Redirect URI. In the menu that opens on the right, select Web.

When prompted for a Custom redirect URI, enter https://FQDN:7281/v1/auth/redirect, as shown below:

Click "Configure" to save those changes, and you will now see it listed:

Back on the "Settings" tab, make sure "ID tokens (used for implicit and hybrid flows)" is selected:

On the "API permissions" page, click "Add a permission". Several options appear on the right; choose "Microsoft Graph".

When you click "Microsoft Graph", it expands to show more options. Choose "Application permissions", search for User.ReadBasic, expand the "User" area, select "User.ReadBasic.All", and click "Add permissions".

After you click "Add permissions", you see the list below. Click "Grant admin consent for Default Directory", and then click "Yes" in the dialog that appears.


On the "Expose an API" page, click the "Add" link next to the "Application ID URI" text. Keep the default value, then click "Save".

On the "App roles" page, click "Create app role". Fill in the values as indicated and then click "Apply" to create the role.
DeployR User (Display name)
Both (Users/Groups + Applications)
DeployR.User (Value)
DeployR User (Description)

Switch to the "Enterprise applications" node in the Entra portal and find the application that you just created and configured. Click the "Users and Groups" node, then click "Add user/group" and specify the user or group that should be granted access. (Since there is only one role defined, that will be pre-selected.) In this example, a group called "DeployR OSD Users" was created and populated with the Entra users who can authenticate DeployR OSD task sequences.

Configure DeployR
With the Entra app created and configured, you can now configure DeployR to use this. Open the "Configure DeployR" shortcut from the Start menu, then select "Show advanced." Scroll down to the "Security Settings" section. You can copy the "Entra ID authentication tenant ID" and "Entra ID authentication application ID" values from the app registration in Entra:

Once configured, click "Verify" and then "Save" to save the configuration, then ensure that the DeployR service starts as expected.

Double-check the other settings, and make sure "Bypass authentication" is not enabled. It should be disabled so you are forced to authenticate during OSD.

Validation
To ensure everything is configured and working, boot into Windows PE (using an ISO, PXE, etc.). You should be challenged to complete the sign-in process:

If you toggle "Use device auth flow for Entra ID authentication", you will see this QR code instead when authenticating:

From a browser, you should see a generic prompt asking for the code specified:

Once you type in the code (it cannot be automatically populated), you should see a company-branded page to either sign in or to select an already signed-in account:

After a final confirmation, the sign-in is completed:

And the DeployR client will then continue automatically.
Last updated

