Enjoyed SimpliVity SA new hire training over the last week and a half. Enjoyed the time with the SimpliVity team, still a lot to learn. Great company, cool tech, awesome folks.
With out going too deep, part of a SimpliVity deployment is preparing the VMware environment. Preparing the VMware environment includes creating a Role including the necessary Privileges and setting up the required permission in vCenter for a SimpliVity user. This is easy enough, but I created a PowerCLI script which creates a Role, applies the required Privileges to the Role, and applies the Role to a user as a permission in vCenter.
Even though I created this script specifically around the SimpliVity user requirements, with a few simple adjustments it could be used to automate the creation of any Role and Permission.
The PowerCLI script takes three parameters, -vCenter -Username -Domain, for the vCenter Server FQDN or IP Address, the Username, and the Domain of the user to assign the role to. All of these are required.
Create_SimpliVity_Role.ps1 -vCenter vCenterFQDNorIP -Username Username -Domain AuthenticationDomain
Create_SimpliVity_Role.ps1 -vCenter vcenter.homelab.local -Username svtuser -Domain homelab