rubrikinc / rubrik-scripts-for-powershell

Collection of PowerShell Scripts created to interact to Rubrik CDM
MIT License
50 stars 58 forks source link

Create Add_VM_to_CustomRole.ps1 #172

Closed hbuter-rubrik closed 3 years ago

hbuter-rubrik commented 3 years ago

Input the role you want to amend and the VM you want to add into the custom role. The script will retrieve the ID for the for the role and use invoke-RubrikRESTcall to add the VM ID into the role.

Description

Adding new file in Powershell MISC repository, this script will allow users to add Virtual Machine into a custom role

Related Issue

Customer request to have such a script to automate adding VM into custom roles

Please link to the issue here

Motivation and Context

No change, new script to automate adding VM into custom role

How Has This Been Tested?

Tested in several Test environments

Screenshots (if appropriate):

Types of changes

What types of changes does your code introduce? Put an x in all the boxes that apply:

Checklist:

Go over all the following points, and put an x in all the boxes that apply. If you're unsure about any of these, don't hesitate to ask. We're here to help!