6.9 KiB
Azure Automatic Grading Engine
For any course testing Microsoft Azure, it is hard to assess or grade Azure projects manually. This project makes use of the technique of unit tests to grade students' Azure project settings automatically.
This project has been developed by Cyrus Wong Microsoft MVP Azure and Microsoft Learn Educator Ambassador in Association with the Microsoft Next Generation Developer Relations Team.
Project collaborators include, Kwok,Hau Ling, Lau Hing Pui, and Xu Yuan from the IT114115 Higher Diploma in Cloud and Data Centre Administration.
Microsoft Reactor - Getting started with Microsoft Azure Automatic Grading Engine
Architecture
You can read more about this project at Microsoft Educator Developer TechCommunity
CDK-TF Deployment
You have to refer Object Oriented Your Azure Infrastructure with Cloud Development Kit for Terraform (CDKTF) and setup your CDK-TF.
npm i
cdktf deploy --auto-approve
Config SMTP
You have to set the App Settings Key during deployment or in the Azure Portal. If you want to use Gmail, you need to allow Less Secure Apps for your Gmail.
Deploy the Demo Assignment Project
Please visit Azure Automatic Grading Engine - Classroom Assignments samples
Supporting Environment
This service is tested with Azure for student subscription and follows details relating to the use of the Azure SDK
How to Define a Project Assignment?
Define a project or assignment
You need to add a Entity in assignments table. Partition Key: assignment or project name such as it114115 Properties:
- "GraderUrl": The grader HTTP Url
- "CronExpression" : The grading schedule. The time must be must be divided by 5 minutes. Follow Cronos Cron expression sample use the expression */5 * * * * Every 5 minutes
- "TeacherEmail": Teacher Email for class grade report. (Optional)
- "SendMarkEmailToStudents": This is a type boolean, set it to true if you want to send the mark report to students via an email. If this email property does not exist or the item is set to false, the email will not be sent.
Email the Registration Link to your Student
To prevent typos of the assignment name and email address, you can use mail merge to send the link to students.
You can use the sample mail merge template /MailMerge
Using the template will result in your creating and issuing a unique URL string for each student. The url string will be in the following format.
Student Registration Steps
- Login into your Azure Portal
- Check your Subscription ID
- Open Cloud Shell
- Change your subscription
az account set --subscription your-subscriptions-id
- Check the current subscriptions
az account show
- Create Subscriptions Contributor, keep it privately and don't run this command again
az ad sp create-for-rbac -n "AzureAutomaticGradingEngine" --role="Contributor" --scopes="/subscriptions/your-subscriptions-id"
- Submit the online registration form. https://XXXXXX.azurewebsites.net/api/StudentRegistrationFunction?project=AssignmentName&email=abcd@stu.vtc.edu.hk
Note:
- Subscription ID and Email must be unique for each assignment.
- Don't run
az ad sp create-for-rbac -n "AzureAutomaticGradingEngine" --role="Contributor" --scopes="/subscriptions/your-subscriptions-id"
repeatedly!
Generate the Prebuilt package
Get the latest zip package AzureAutomaticGradingEngine\AzureAutomaticGradingEngineFunctionApp\obj\Release\netcoreapp3.1\PubTmp
Contributing
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
Trademarks
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.