Skillable Studio allows execution of scripts against a cloud subscription, as well as executing scripts that do not have a target. Scripts are used in Automated Activities and Life Cycle Actions.
Azure Authentication
The script environment will be pre-configured for your lab instance. You can use the DefaultAzureCredential class to obtain credentials, which can then be passed other Azure service clients.
For details working with the Azure SDK for .NET, please see Microsoft's documentation.
Using Directives
C# scripts in Skillable Studio can use the Using
directive at the beginning of a script, to help simplify your code.
Use setActivityResult
You can also report the result as a score percentage...
Send a Notification to the User
Notifications appear as real-time toast notification in the lab client.
Lab Variables
Lab variables are always string name/value pairs. Variable values are scoped to the lab instances and become avaialble within the lab instructions as well as subsequent script executions.
You can "receive" a variable in your script...