Skip to content

Latest commit

 

History

History
67 lines (42 loc) · 2.6 KB

Add_Enterprise_App.md

File metadata and controls

67 lines (42 loc) · 2.6 KB

Installation

Prerequisites

  • 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.

Rubrik Module

Download the Rubrik PowerShell Module to your local environment and extrat the Zip file.

Download zip

  1. Open PowerShell and navigate to the extracted polaris-o365-powershell-master folder.
  2. Install the module by running Import-Module ./RubrikPolaris/RubrikPolaris.psd1

Rubrik API Service Account

The PowerShell module will leverage a Rubrik API Service Account to connect the Enterprise Applications to Rubrik after they are created in Microsoft 365.

  1. Log in to Rubrik.
  2. Click the gear icon and select Users and Roles.
  3. Click Service Accounts.
  4. Click Add Service Account.
  5. In Name, type the polaris-service-account. This is case sensitive.
  6. Optional: In Description, type the description of the service account.
  7. Click Next.
  8. Select the Administrator role to be assigned to the service account.
  9. Click Add.
  10. Click Download As JSON.
  11. Click Done.
  12. Create a hidden folder named ".rubrik" in your home directory by running the following CLI command: mkdir ~/.rubrik
  13. Move the downloaded polaris-service-account.json to the ~/.rubrik directory

Creating the Enterprise Application

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
  1. Enable logging

$InformationPreference= "Continue"

  1. Connect to Rubrik

Connect-Polaris

  1. 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.

  1. Once finished, disconnect from Polaris

Disconnect-Polaris