Skip to content

Azure Automatic Grading Engine for Educator and Trainers to validate if students have created Azure Resources correctly based on labs, assignments and Assessments

License

Notifications You must be signed in to change notification settings

microsoft/AzureAutomaticGradingEngine

Repository files navigation

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

Getting started with Microsoft Azure Automatic Grading Engine

Architecture

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:

  1. "GraderUrl": The grader HTTP Url
  2. "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
  3. "TeacherEmail": Teacher Email for class grade report. (Optional)
  4. "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.

Assignment

Email the Registration Link to your Student

How to mail merge registration information to your students

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.

https://somethingunique.azurewebsites.net/api/StudentRegistrationFunction?project=studnetid&email=studnetemailaddress

Student Registration Steps

How to register your student subscription into Azure Automatic Grading Engine

  1. Login into your Azure Portal
  2. Check your Subscription ID
  3. Open Cloud Shell
  4. Change your subscription az account set --subscription your-subscriptions-id
  5. Check the current subscriptions az account show
  6. 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"
  7. Submit the online registration form. https://XXXXXX.azurewebsites.net/api/StudentRegistrationFunction?project=AssignmentName&[email protected]

Note:

  1. Subscription ID and Email must be unique for each assignment.
  2. 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 [email protected] 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.

About

Azure Automatic Grading Engine for Educator and Trainers to validate if students have created Azure Resources correctly based on labs, assignments and Assessments

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published