One of the main challenges on teaching cloud technologies in collages is how to assess student. For other IT courses, educators can collect some files such as source code and give a grade to students. However, for cloud tech educators, it is hard to use the traditional approach to handle the assessment. Two main problems, firstly it is hard to check each student work one by one manually which is time consuming and error-pone. Secondly, it is not a good idea to get a grade based on a “snapshot”, as students may use IasC tools such as ARM template or terraform and every student gets full mark, but they know nothing!
Timer Trigger runs a Durable Orchestration function “Schedule Grader” every 5 minutes.
“Schedule Grader” reads all json files in the “credentials” blob container and one file per class assignment. It defines the grader url and list of students and we will discuss the data structure later.
All assignments process run in parallel by an independent Grade Assignment Function call.
In each Grade Assignment Function call, it sends https request to Azure Grader Function in parallel. It uses Azure SDK to collect the Azure settings, the process runs a NUnit test to check the settings as expect or not and return an xml test result output file. For the fairness, it is important to grade all students at the same time. Also, using web services decouple the grader from the solution. This allows the educators to add and update the assignment grader without redeployment of the whole solution. In the long term, we can have a grader repository or hub and educators can share assignment with grader. The Grade Assignment Function saves all xml test results in test result blob container.
How does Class Grade Report Generator work?
When Grade Report Function HttpTrigger endpoint is called, it checks query parameter “assignment”.
It sets “assignment” as prefix and gets all text result xml files.
By mean of xpath we extract text case full name and test result. If the test is pass, it contains 1 mark.
The service then generates the accumulate mark and creates a report in an Excel file format.
How to create a class assignment?
Educators need to complete 3 tasks:
Implement a NUnit test for the assignment and note down the https endpoint. You can refer AzureGraderFunction.cs the code within this C# file it is very strange forward.
Collect the credentials from all students in your class. This process is simply an online form with 2 text fields: email and credentials.
Prepare the assignment json and upload it to “credentials” blob container.
The format of assignment JSON file
In this example we simply want to test if two students have successfully created a vnet within their Azure Subscription.
Assignment vnet creation
If you want to define a assignment named "vnet" and the class with 2 students. graderUrl is the url of Azure Function running Nunit test and return xml result. You just need to create and upload vnet.json as below.
For grading, students we need to process that the grader has read only access credentials to the students Azure subscription, each student has to create a service principal permission for the app.
For the engine, it is just a simple Azure Function app with consumption plan, This process has been developed so that it can even run inside Azure student subscription plan with very low cost. We have carried out a number of tests using this with Azure for Student subscription.
You can full control Microsoft Azure programmatically and educators can now spend time on preparing a better course instead of wasting on grading Azure assignment manually.
We have been using this kind of automatic grading tools for a few years. Students definatley benefit a lot both in technical and soft skills. Firstly, students must work honestly, seriously, and quickly. As a result, their technique is in industry standard. Also, using auto grading solutions is more fun for most students and you can treat this like a game. We have seen many students trying to get mark as fast as possible. Part of our process is that we do share their mark to employers and employers loves to refer that mark than the students GPA.
Also, it is possible to use the engine for Azure Competition Game. For upcoming features we all add a game like dashboard and allow students to gamify the journey of leaning Azure. We also plan to add Chaos component and we can have trouble shooting assignment, but every student will get different bugs within certain scope.