- PowerShell Version v6.0 or higher. Updated versions can be downloaded directly from Microsoft
- Microsoft Graph PowerShell Module. Run the following command to install:
Install-Module Microsoft.Graph
- When creating SharePoint Enterprise Applications OpenSSL v1.1.1 and Windows is also required.
Download the Rubrik PowerShell Module to your local environment and extrat the Zip file.
- Open PowerShell and navigate to the extracted
polaris-o365-powershell-master
folder. - Install the module by running
Import-Module ./RubrikPolaris/RubrikPolaris.psd1
The PowerShell module will leverage a Rubrik API Service Account to connect the Enterprise Applications to Rubrik after they are created in Microsoft 365.
- Log in to Rubrik.
- Click the gear icon and select Users and Roles.
- Click Service Accounts.
- Click Add Service Account.
- In Name, type the polaris-service-account. This is case sensitive.
- Optional: In Description, type the description of the service account.
- Click Next.
- Select the Administrator role to be assigned to the service account.
- Click Add.
- Click Download As JSON.
- Click Done.
- Create a hidden folder named ".rubrik" in your home directory by running the following CLI command:
mkdir ~/.rubrik
- Move the downloaded polaris-service-account.json to the
~/.rubrik
directory
Note - At most, Enterprise Applications should be created in batches of 50 to avoid Microsoft throttling slowdowns. If running the command for the first time we recommend only create one to validate functionality.
$InformationPreference = "Continue"
Connect-Polaris
NewEnterpriseApplication -DataSource Exchange -Count 50
Disconnect-Polaris
- Enable logging
$InformationPreference= "Continue"
- Connect to Rubrik
Connect-Polaris
- Create the Enterprise Application. After running the command you will be prompted to authenticate into Microsoft using Global administrator credentials
NewEnterpriseApplication -DataSource Exchange -Count 50
Valid DataSource options are Exchange, OneDrive, or SharePoint.
- Once finished, disconnect from Polaris
Disconnect-Polaris