Adding lifecycle scripts to a course in Course Manager

Use lifecycle scripts to allow Course Manager to execute a script when a lab end user’s Kyndryl Cloud Uplift environment is provisioned or torn down.

You can add lifecycle scripts to a course only if the course is a Lab course (the term Lab in the Course Manager interface is configurable for your account and may be replaced by another term such as Demo).

Contents

Adding a lifecycle script to a course

To add a lifecycle script to a course
  1. From the Course Manager navigation bar, click Courses. The Courses page displays.
  2. Click the Labs tab.

    The term Lab in the Course Manager interface is configurable for your account and may be replaced by another term such as Demo.

  3. Click the name of the course that you want to edit. The details page for the course displays.
  4. On the course details page, click the Course actions drop-down menu, and then click Lifecycle scripts.
  5. (Optional) Under Provision script, select a Script type of Cloud script or Legacy script to run a custom script when a lab environment is provisioned. The provision lifecycle script properties display.
  6. (Optional) Under Teardown script, select a Script type of Cloud script or Legacy script to run a custom script when a lab environment is torn down. The teardown lifecycle script properties display.
  7. Configure the properties for each lifecycle script.
  8. Click Update lifecycle scripts. The details page for the course displays.

Lifecycle script properties

When you add a lifecycle script, configure its properties.

The list of available properties depends on the type of lifecycle script you choose.

Property Name

Description

Script name

The cloud script or script package that contains the legacy script that should be executed when the lab environment is provisioned or torn down.

VMs to start before running the script

Select whether Course Manager should start only the Script Host VM or all the VMs in the environment before running the legacy lifecycle script.

Failure behavior

Select whether Course Manager should continue the environment provision or teardown process if the lifecycle script fails.

Timeout (seconds)

The number of seconds to wait before terminating the lifecycle script if it hasn’t yet completed.