Getting Started › Setting Up
Connecting Microsoft 365
To sync data from Microsoft 365, CloudM Continuity needs read access to your M365 tenant via the Microsoft Graph API. This is done by registering an application in Azure Active Directory (Azure AD) and granting it the necessary permissions.
Who should do this?
You will need Global Administrator or Application Administrator access to your Azure AD tenant. If you don't have this access, ask your IT admin to complete these steps.
Overview
The process involves four main steps:
- Register an application in Azure AD
- Create a certificate for authentication
- Configure and grant Microsoft Graph API permissions
- Enter the application credentials in CloudM Continuity
Choose one of the two approaches below to complete the Azure AD setup, then enter the credentials in CloudM Continuity.
▶ Option A: Automated setup with PowerShell (recommended)
A PowerShell script automates the app registration, certificate generation,
API permissions, and admin consent in one step.
Prerequisites
- Windows machine with PowerShell 5.1 or later
-
Global Administrator or
Application Administrator access to your Azure AD
tenant
-
The
Microsoft.Graph PowerShell module (the script will
install it if not present)
Running the script
-
Download
Create-ContinuitySync.ps1 from the bottom of this article
-
Open PowerShell and run:
.\Create-ContinuitySync.ps1
-
A browser window will open for authentication — sign in with your
Azure AD admin account
-
When prompted, enter:
-
Application name — e.g.
CloudM Continuity Sync
-
Certificate password — choose a secure password
(you will need this when entering credentials in CloudM Continuity)
-
The script will output three files to the current directory:
-
[AppName].pfx — The private key file to upload
to CloudM Continuity
-
[AppName].cer — The public key (already uploaded
to Azure AD by the script)
-
[AppName]-info.txt — Contains the Client ID,
Tenant ID, and other details
After the script completes, continue with
Enter credentials in CloudM Continuity below.
▶ Option B: Manual setup
Step 1: Register an application in Azure AD
-
Sign in to the Azure Portal at
portal.azure.com
-
Navigate to Azure Active Directory >
App registrations
-
Click New registration
-
Fill in the registration form:
-
Name: Enter a descriptive name, e.g.
CloudM Continuity
-
Supported account types: Select
Accounts in this organizational directory only (single
tenant)
-
Redirect URI: Leave blank (not required)
-
Click Register
After registration, note the following values from the Overview page:
| Field |
Where to find it |
|
Application (client) ID
|
Shown on the Overview page |
|
Directory (tenant) ID
|
Shown on the Overview page |
Step 2: Create a certificate
CloudM Continuity uses certificate-based authentication. Generate a self-signed
certificate and upload the public key to your Azure AD app registration.
-
Open PowerShell as Administrator on a Windows machine
-
Run the following command to generate a self-signed certificate:
$cert = New-SelfSignedCertificate `
-Subject "CN=CloudM Continuity" `
-CertStoreLocation "Cert:\CurrentUser\My" `
-KeyExportPolicy Exportable `
-KeySpec Signature `
-KeyLength 2048 `
-KeyAlgorithm RSA `
-HashAlgorithm SHA256 `
-NotAfter (Get-Date).AddYears(1)
-
Export the PFX file (private key):
$password = ConvertTo-SecureString -String "YourPassword" -Force -AsPlainText
Export-PfxCertificate -Cert "Cert:\CurrentUser\My\$($cert.Thumbprint)" `
-FilePath ".\CloudM-Continuity.pfx" -Password $password
-
Export the CER file (public key):
Export-Certificate -Cert "Cert:\CurrentUser\My\$($cert.Thumbprint)" `
-FilePath ".\CloudM-Continuity.cer"
-
In your Azure AD app registration, go to
Certificates & secrets
-
Under Certificates, click
Upload certificate
-
Upload the
.cer file and click Add
Step 3: Configure API permissions
-
In your app registration, go to API permissions
-
Click Add a permission >
Microsoft Graph >
Application permissions
- Add the following permissions:
| Permission |
Type |
Purpose |
Mail.Read
|
Application |
Read mail from all mailboxes |
User.Read.All
|
Application |
Read user profiles to match policy queries |
Directory.Read.All
|
Application |
Read directory data (groups, departments) for user queries |
MailboxSettings.Read
|
Application |
Read mailbox configuration for sync operations |
Application permissions, not delegated
Make sure you select Application permissions, not
Delegated permissions. Application permissions allow CloudM
Continuity to access data without a user being signed in.
-
After adding all permissions, click
Grant admin consent for [your organisation]
-
Confirm by clicking Yes
-
Verify that all permissions show a green checkmark under
Status
Enter credentials in CloudM Continuity
Whether you used the automated script or manual setup, complete this final step to connect your M365 tenant:
- In CloudM Continuity, go to Connections in the sidebar
- On the Source Connection card, click Create source
- Fill in the connection details:
-
Tenant ID — Your Azure AD Directory (tenant) ID
-
Client ID — The Application (client) ID
-
Private key — Upload the
.pfx file
-
Certificate password — The password you set when creating the certificate
- Click Create source
- Once the connection is created, click the three-dot menu on the Source Connection card and select Test connection
- A green toast notification confirms "Connection test successful" if everything is configured correctly
Test connection fails?
If the test fails, check that: the application has the correct API permissions, admin consent has been granted, and the certificate has not expired. You can update credentials at any time by clicking the three-dot menu and selecting Edit.
Security considerations
-
You own the application registration. CloudM does not have access to your Azure AD tenant. The application you register and the permissions you grant are fully under your control.
-
Least-privilege access. Only the permissions listed above are required. Do not grant broader permissions than necessary.
-
Certificate rotation. Rotate your certificate before it expires. Generate a new certificate, upload the public key to Azure AD, and update the PFX in CloudM Continuity. See Rotating Microsoft 365 credentials.
-
Audit access. You can review sign-in and audit logs for the registered application in Azure AD at any time.