Patent ID: 8141075

Claim:
A computer-implemented method for automating provisioning policies for dynamically allocating resources to one or more virtual desktops, comprising: under control of desktop management software programmed to automatically control provisioning of virtual desktops to one or more users: determining an occurrence of an event related to at least one of: a user request of a virtual desktop; a user request of a renewal of a desktop lease; an administrator login; an administrator logout; and/or a policy, resource requirement, or time specification that affects provisioning of the one or more virtual desktops to the one or more users; from a stored plurality of rules, each of the stored plurality of rules having a rule definition comprising an indication of an event relating to provisioning and/or use of the one or more virtual desktops, an indication of a corresponding virtual infrastructure operation used to allocate resources to the one or more virtual desktops, and an indication of a condition to be satisfied in order to cause the corresponding virtual infrastructure operation to be performed, selecting a rule corresponding to the determined event based upon the rule definitions of one or more of the stored plurality of rules; evaluating the condition indicated in the rule definition of the selected rule based upon a current state of the virtual infrastructure; and when the evaluated condition is satisfied, causing the corresponding virtual infrastructure operation to be performed on one or more virtual machines, thereby affecting resources of the one or more virtual desktops.