Giter VIP home page Giter VIP logo

azureautomaticgradingengine's Introduction

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.

azureautomaticgradingengine's People

Contributors

jlooper avatar leestott avatar maximrouiller avatar microsoftopensource avatar wongcyrus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

azureautomaticgradingengine's Issues

Don't package EXE that you can build yourself

Issue

The file AzureAutomaticGradingEngineFunctionApp/AzureGraderTestProject.exe should not be used directly.

We are compiling the executable ourselves which means we can simply refer to the code we need rather than copy/pasting an EXE. If we need to use the compiled output from one program in another, we are better publishing NuGet packages and using that instead.

Using an EXE directly can yield to many issues including security one. Which version is it? Is it the app we meant to use?

Recommendation

Call the necessary code directly, don't invoke EXE files unless no other choices are possible.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.