Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 183671

VM tagging and permission assignment

$
0
0

Hi Community,

 

I need to assign the tag based on tag category in csv file. (http://www.virtu-al.net/2014/11/13/automating-tags-tag-category-creation-assignment-powercli/ )

 

1. I want to tag all the VMs where MktMgmt is the application.

2. Assign the role MktMgmt_role with AD group domain\MktMgmt_group to the tag Application:MktMgmt

 

This way I will be giving access to usergroup domain\MktMgmt_group on VMs where Application:MktMgmt is the tag.

 

Here is example CSV.

   

vcvmnametags_with_category
VC01VM01ApplicationCategory:HR-stream,Owner:WindowsTeam,Application:HRmgmt,ProductOwner:abc
VC02VM02ApplicationCategory:HR-stream,Owner:WindowsTeam,Application:HRmgmt,ProductOwner:abc
VC03VM03ApplicationCategory:Mkt-stream,Owner:WindowsTeam,Application:MktMgmt,ProductOwner:xxx
VC04VM04ApplicationCategory:HR-stream,Owner:WindowsTeam,Application:HRmgmt,ProductOwner:abc
VC01VM05ApplicationCategory:Mkt-stream,Owner:WindowsTeam,Application:MktMgmt,ProductOwner:xxx
VC02VM06ApplicationCategory:Fin-stream,Owner:LinuxTeam,Application:Finmgmt
VC03VM07ApplicationCategory:Fin-stream,Owner:LinuxTeam,Application:Finmgmt
VC04VM08ApplicationCategory:Fin-stream,Owner:LinuxTeam,Application:Finmgmt
VC01VM09ApplicationCategory:Mkt-stream,Owner:WindowsTeam,Application:MktMgmt

Viewing all articles
Browse latest Browse all 183671

Trending Articles