Giter Club home page Giter Club logo

polaris-o365-powershell's Introduction

Rubrik Polaris Microsoft 365 Protection PowerShell Module

Welcome to the Rubrik Microsoft 365 Protection PowerShell module! This module provides an SDK for writing PowerShell scripts that work with the Rubrik Polaris Microsoft 365 protection product, allowing you to view all O365 users, their current SLA assignment and change those SLA assignments.

๐Ÿ”จ Installation

Import-Module ./RubrikPolaris/RubrikPolaris.psd1 

Additional information can be found in the Quick Start Guide.

Requirements

  • PowerShell v6.0 or greater
  • Microsoft Graph PowerShell SDK (Install-Module Microsoft.Graph) v1.8.0 or later
  • When creating SharePoint Enterprise Applications with the New-EnterpriseApplication cmdlet, the script must be run as an administrator and the following dependencies must be installed:
    • OpenSSL. When running on Windows, only openssl-1.1.1 is supported.

๐Ÿ” Example

See Quick Start Guide for examples.

๐Ÿ“˜ Documentation

Here are some resources to get you started! If you find any challenges from this project are not properly documented or are unclear, please raise an issue and let us know! This is a fun, safe environment - don't worry if you're a GitHub newbie! โค๏ธ

๐Ÿ’ช How You Can Help

We glady welcome contributions from the community. From updating the documentation to adding more functions for Python, all ideas are welcome. Thank you in advance for all of your issues, pull requests, and comments! โญ

๐Ÿ“Œ License

๐Ÿ‘‰ About Rubrik Build

We encourage all contributors to become members. We aim to grow an active, healthy community of contributors, reviewers, and code owners. Learn more in our Welcome to the Rubrik Build Community page.

We'd love to hear from you! Email us: [email protected] ๐Ÿ’Œ

polaris-o365-powershell's People

Contributors

ameliavu avatar ankitjain2-rubrik avatar draper1 avatar drew-russell avatar dterei avatar jaapbrasser avatar jlim1545 avatar mihirgangar avatar mishiay avatar mo6020 avatar railroadmanuk avatar rish-singhal avatar roxieatrubrik avatar scottwtang avatar yuyiying avatar zhedahht avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

polaris-o365-powershell's Issues

Import failure - requires privileged session error

Expected Behavior
Import and use the module under a non-privileged PowerShell session

Current Behavior
Requires elevated session because one command has #requires statement

Failure Information

Write-Error: Failed to import private function C:\Modules\RubrikPolaris\M365\New-EnterpriseApplication.ps1: The script 'New-EnterpriseApplication.ps1' cannot be run because it contains a "#requires" statement for running as Administrator. The current PowerShell session is not running as Administrator. Start PowerShell by using the Run as Administrator option, and then try running the script again.

Steps to Reproduce

Open PowerShell 7 session, run import command:

 > ipmo C:\Modules\RubrikPolaris\
Write-Error: Failed to import private function C:\Modules\RubrikPolaris\M365\New-EnterpriseApplication.ps1: The script 'New-EnterpriseApplication.ps1' cannot be run because it contains a "#requires" statement for running as Administrator. The current PowerShell session is not running as Administrator. Start PowerShell by using the Run as Administrator option, and then try running the script again.

Context

#Requires -Version 6.0 -RunAsAdministrator

New-EnterpriseApplication.ps1 fails with insufficient privileges

Expected Behavior

New-EnterpriseApplication.ps1 is able to run the cmdlet Get-MgOrganization without any issue

Current Behavior

New-EnterpriseApplication.ps1 connects to MS Graph with the scopes Application.ReadWrite.All,AppRoleAssignment.ReadWrite.All, and then later in the script calls the cmdlet Get-MgOrganization, which will give an error if the proper permissions aren't configured.
The error given is "Insufficient privileges to complete the operation"

Failure Information

Steps to Reproduce

Context

Failure Logs

Publish to PowerShell Gallery

Adoption and ease of installation for the team will be aided if the module is published to the PowerShell Gallery like the Rubrik module is.

Connect-Polaris - options to provide path to the json file or provide each

Is your feature request related to a problem? Please describe.

The sensitive nature of the service credential have administrator rights to our environments backup data should not require me to store the file under my profile where any Administrator on the device can read it.

Describe the solution you'd like

Provide parameters for providing one of the following:

  1. Path to the JSON file
  2. Parameters for each value of the JSON file.

Test bulk SLA assignment of 500+ users

We need to test and validate that bulk SLA assignment of a large number of objects works fine, some reports that will fail when assigning to 500 objects.

Get-PolarisSLA doesn't support pagination of results

The Get-PolarisSLA function only retrieves the first 20 results. As the -Name parameter is optional, users will also use this function to list all SLAs, so we should support pagination of results.

Alternatively we could provide a Get-PolarisSLAs function to distinguish the two use-cases.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.