| Profil von Dung K HoangDung's spaceBlogNetzwerk | Hilfe |
Dung's space |
|||||
|
|
23 Juli Delegation Model in Hyper-V – Part 6
In previous posts, I have shown how to create Azman scopes and roles to delegate administration of Hyper-V virtual machines to domain users. Now that we have an AzMan scope, let’s see how you can apply it to a virtual machine or set of virtual machines. Note: In Hyper-V, there is no GUI interface to assign a scope to a VM, you need to use the Hyper-V WMI API In my example scenario, I have a set of VMs prefixed with “01_”and I want to delegate administration of those VMs to Student01 and only this account can view those VMs in Hyper-V mmc console. In Prt 4 and Part 5, I already created a scope called 01_Scope and some role definitions. Let’s apply this cope to 01_ VMs.
Script$VM_Service = get-wmiobject -namespace root\virtualization Msvm_VirtualSystemManagementService $ListofVMs =get-wmiobject -namespace root\virtualization Msvm_ComputerSystem -filter "ElementName <> Name " | ` foreach ($VM in $ListofVMs) {
} Et Voilà! /Dung Delegation Model in Hyper-V – Part 5
Today, I will show you how to create an AzMan scope and role definition to manage Hyper-V Virtual machines. As discussed in part 3, the ”Virtual Machine Manager Role” includes the following operations:
For this role, you create a new scope in AzMan, define the role and assign it to users inside this scope. Step-by-Step
In summary ,you have defined 2 roles in Azman and assign those roles to an user called Student01
The Hyper-V Azman configuration should look like this one: Note: Instead of assigning roles to user accounts, you can assign roles to a Windows Security group. For example, in my training environment, I create a SG called AllStudents and assign the Hyper-V Manager role to this SG.
Enjoy! /Dung 12 Juli Delegation Model in Hyper-V – Part 4
Now that you have a good understanding of AzMan, let’s implement a simple delegation model of Hyper-V. I use the following scenario as example. In my training labs, I have a group of students ( Student01, Student02….) to whom I assign a set of VMs as follow: Student01 will get and can only manage 01_ VMs , Student02 will get 02_ VMs…
Basic AzMan rolesTo delegate administration of a selected virtual machine to a user, an administrator needs to:
You need to define at least the following roles:
For this role, you create a new scope in AzMan, define the role and assign it to users inside this scope and not at the default scope level.
Step-by-StepIn this section,I will show you how to create the roles in AzMan.
You have successfully created the Hyper-V Manager Role. Bravo! Enjoy! /Dung 08 Juli Delegation Model in Hyper-V – Part 3
Today, let’s discuss about basic Hyper-V operations defined in AzMan. Displaying Hyper-V OperationsAs explained in previous posts, all pre-defined Hyper-V operations are stored in the InitialStore.XML file located under C:\Programdata\Microsoft\Windows\Hyper-V. You can view the list of operations from the AzMan console. However the output is not easy to view as is is confined inside a small dialog box. Fortunately, you can also use PowerShell to get the same list with the AzMan COM object. Here is a snippet of PS script to get the list in a CSV file $AppName = "Hyper-V Services" ## Open the Hyper-V AzMan Store ## ## $HyperVApp | select Name, Description | export-csv c:\ListOfOperations.csv You can then import the CSV file into Excel and create the following tables that group Hyper-V operations per category.
Enjoy! /Dung 07 Juli Delegation Model in Hyper-V – Part 2
In this post, I will show you how to explore the Hyper-V AzMan configuration from the GUI AzMan GUI interfaceThere is no pre-defined AzMan console in Windows Server 2008, you have to create your own one. To do this, run mmc.exe from a command window. In the mmc, click File –> Add/Remove Snap-in and add the snap-in named Authorization Manager. Save your mmc console for later use. In the AzMan mmc console, right click the node Authorization Manager and select Open Authorization Store…. In the Open Authorization Store…, select XML file and type in Store name: C:\Programdata\Microsoft\Windows\Hyper-V\InitialStore.xml assuming that C: is your system drive. Note: Be aware that the ProgramData folder is hidden, you cannot browse it. Figure 1 shows the GUI interface of AzMan Exploring Hyper-V OperationsTo see all pre-defined operations in Hyper-V, right click Tasks Definition and select New Task Definition…. Click Add…, ignore the informational message box. In the Add Definition dialog box, click the Operations tab, you will see the list of available Hyper-V operations as shown in Figure 2 below Using the same technique, you can create task definitions, role definitions. Once done, you can look at the node Role Assignments to create roles and assign it to users or group of users. Creating ScopesNow, right click Hyper-V Services and select New Scope… Provide a name for the new scope and you will see that a node is created under Hyper-V Services and has the following sub-hierarchy: !------ Groups All tasks, role definitions and role assignments created there will be valid only at this new scope level. On the other hand, tasks, role definitions created at the default scope level can be seen/used by the “child” scope. SummaryIt is quite easy to use the AzMan console to create tasks, roles and scopes. In the next posts, I will show how to use PowerShell scripts to automate those tasks! Stay tuned!
Enjoy! /Dung |
||||
|
|