A Project Manager can define and manage environment policies. Environment policies are associated directly with a project and can be used for any blueprint and by any team in the project.
The environment policy defines the amount of time users will have the use of the environment. An environment’s lifetime is set according to the policy associated with it:
- During runtime, the environment will be up with all machines running.
- During storage time, the environment will be archived and can be made accessible by extending it from the environment details page. After the environment storage time expires, the environment is securely deleted.
Only a Project Manager can create and manage environment policies.
To create a new Environment Policy as a Project Manager, follow these steps:
1. From the CloudShare Dashboard, navigate to Management > Policies
2. Click the Create Environment Policy button.
3. Complete the following:
- From the Name field, provide a descriptive name that your users can understand
- From the Projects list, select those entries that you would like this policy to be applied to (multi-select by holding down the Ctrl)
- From the Duration field:
- Runtime Lease - specify the amount of time (days, hours or minutes) that the environment will be in the Running state with all the machines accessible (must be equal to or less than the storage lease)
- Storage Lease - specify the amount of time (days, hours or minutes) that the environment will live before being securely deleted (total lifecycle of the environment)
- Environment Inactivity Handling
- Suspend the environment after XX minutes – Allows you to specify the value in minutes before inactivity handling is triggered
- Delete the environment after XX minutes – Allows you to specify the value in minutes before the delete action is triggered
- Always On – the environment will continue to RUN whether it senses activity or not for the lease duration specified above or unless manually extended
4. Click the Create button
Editing a Policy
You also have the ability to edit any existing policies. However, modifying an existing policy will not affect the environments which have already started.
This means that edits to an existing policy will not apply to the environments that are currently running (which retain their original timers). The edited policies will apply only to new environments which are started after the policy has been modified and saved.
For example, you may edit an existing policy to have a different value for its Inactivity Suspend timer, but this new setting will apply only when you start (Run) a new instance of the updated environment.
This change does not affect custom environment policies which are used with Single-Sign-On (SSO) API or during Classroom training.