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
If suggesting a new feature or change, please discuss it in an issue first.
If fixing a bug, there should be an issue describing it with steps to reproduce
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:
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
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!
[ x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
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!