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 Learn Educator Ambassador in Association with the Microsoft Next Generation Developer Relations Team. Project collaborators include Chan Yiu Leung, So Ka Chun, Lo Chun Hei, Ling Po Chu, Cheung Ho Shing and Pearly Law from the IT114115 Higher Diploma in Cloud and Data Centre Administration.
The project is being validated through usage on the course Higher Diploma in Cloud and Data Centre Administration
You can read more about this project at Microsoft Educator Developer TechCommunity
Azure Resource Manager templates (ARM templates) are used as an easy way to deploy services to Azure.
If you are interested in learning more about ARM see the following Microsoft Learn Module Deploy and manage resource manager templates. In this module you will learn about the structure of the template and the tools you will need for working with templates. If you want to learn about the benefits of using templates and why you should automate deployment with templates, see the ARM template overview.
Deployment URL for ARM Template
Please skip the setup section as the latest ARM can help you deploy eveything! However this old video can teach you how to rebuild and deploy your own test.
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.
Please visit Azure Automatic Grading Engine - Classroom Assignments samples
This service is tested with Azure for student subscription and follows details relating to the use of the Azure SDK
You need to add a Entity in assignments table. Partition Key: assignment or project name such as it114115 Properties:
- "GraderUrl": The grader HTTP Url
- "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.
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.
- Login into your Azure Portal
- Check your Subscription ID
- Open Cloud Shell
- Change your subscription
az account set --subscription
- Check the current subscriptions
az account show
- Create SDK Auth, keep it privately and don't run this command again
az ad sp create-for-rbac -n "gradingengine" --sdk-auth
- Submit the online registration form. https://XXXXXX.azurewebsites.net/api/StudentRegistrationFunction?project=AssignmentName&[email protected]
Note:
- Subscription ID and Email must be unique for each assignment.
- Don't run
az ad sp create-for-rbac -n "gradingengine" --sdk-auth
repeatedly! Students need to submit the online form again with the new credentials.
Open \AzureGraderTestProject\AzureGraderConsoleRunner\Program.cs and change Environment.SetEnvironmentVariable("AzureAuthFilePath", @"C:\Users\developer\Documents\azureauth.json");
Build and run AzureGraderConsoleRunner
Test result will be saved in \AzureGraderTestProject\AzureGraderConsoleRunner\bin\Debug\test_result.xml
Set up 2 system wide environment variables
set AzureAuthFilePath=C:\Users\developer\Documents\azureauth.json
Or update \repos\AzureGraderTestProject\AzureGraderTestProject\Config.cs
The scheduler is set to run every 12 hours by default and you can change the TimerTrigger expression
testResults: saves Nunit xml test result.
Get the latest zip package AzureAutomaticGradingEngine\AzureAutomaticGradingEngineFunctionApp\obj\Release\netcoreapp3.1\PubTmp
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 [email protected] with any additional questions or comments.
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.