Azure Function
20 TopicsEnhancing GitHub Classroom with Azure serverless services
GitHub classroom auto grader uses GitHub Actions and Unit Test under student's repository. However students can get full mark by simply changing the workflow or tests. Students push code themselves, so they can copy from other and push! This post is an opensource Azure Serverless application to address those to problem for Python programming course with CodeSpace and Visual Code.3KViews2likes0CommentsAzure Cloud Lab Environment
Azure Cloud Lab Environment is aims to facilitate educators using Azure in their teaching. Using Azure, educators can create the tailor-made lab environment for every student, and it is very important during the pandemic as students cannot back to school and they do not have a good PC at home. On the other hand, students need to work on some complicate deployment projects to learn Azure across the semester. Two main problems – the First is the project cost to continue running the project for a few months, and the second there is no check point for students. In case, a student done something wrong in middle of semester, then he must redo everything or just give up the project. As a result, it limits the scale of student lab project exercise.7.1KViews2likes0CommentsAzure Database for MySQL bindings for Azure Functions (General Availability)
We’re thrilled to announce the general availability (GA) of Azure Database for MySQL Input and Output bindings for Azure Functions—a powerful way to build event-driven, serverless applications that seamlessly integrate with your MySQL databases. Key Capabilities With this GA release, your applications can use: Input bindings that allow your function to retrieve data from a MySQL database without writing any connection or query logic. Output bindings that allow your function to insert or update data in a MySQL table without writing explicit SQL commands. In addition you can use both the input and output bindings in the same function to read-modify-write data patterns. For example, retrieve a record, update a field, and write it back—all without managing connections or writing SQL. These bindings are fully supported for both in-process and isolated worker models, giving you flexibility in how you build and deploy your Azure Functions. How It Works Azure Functions bindings abstract away the boilerplate code required to connect to external services. With the MySQL Input and Output bindings, you can now declaratively connect your serverless functions to your Azure Database for MySQL database with minimal configuration. You can configure these bindings using attributes in C#, decorators in Python, or annotations in JavaScript/Java. The bindings use the MySql.Data.MySqlClient library under the hood and support Azure Database for MySQL Flexible Server. Getting Started To use the bindings, install the appropriate NuGet or npm package: # For isolated worker model (C#) dotnet add package Microsoft.Azure.Functions.Worker.Extensions.MySql # For in-process model (C#) dotnet add package Microsoft.Azure.WebJobs.Extensions.MySql Then, configure your function with a connection string and binding metadata. Full samples for all the supported programming frameworks are available in our github repository. Here is a sample C# in-process function example where you want to retrieve a user by ID, increment their login count, and save the updated record back to the MySQL database for lightweight data transformations, modifying status fields or updating counters and timestamps. public class User { public int Id { get; set; } public string Name { get; set; } public int LoginCount { get; set; } } public static class UpdateLoginCountFunction { [FunctionName("UpdateLoginCount")] public static async Task<IActionResult> Run( [HttpTrigger(AuthorizationLevel.Function, "post", Route = "user/{id}/login")] HttpRequest req, [MySql("SELECT * FROM users WHERE id = @id", CommandType = System.Data.CommandType.Text, Parameters = "@id={id}", ConnectionStringSetting = "MySqlConnectionString")] User user, [MySql("users", ConnectionStringSetting = "MySqlConnectionString")] IAsyncCollector<User> userCollector, ILogger log) { if (user == null) { return new NotFoundObjectResult("User not found."); } // Modify the user object user.LoginCount += 1; // Write the updated user back to the database await userCollector.AddAsync(user); return new OkObjectResult($"Login count updated to {user.LoginCount} for user {user. Name}."); } } Learn More Azure Functions MySQL Bindings Azure Functions Conclusion With input and output bindings for Azure Database for MySQL now generally available, building serverless apps on Azure with MySQL has never been simpler or more efficient. By eliminating the need for manual connection management and boilerplate code, these bindings empower you to focus on what matters most: building scalable, event-driven applications with clean, maintainable code. Whether you're building real-time dashboards, automating workflows, or syncing data across systems, these bindings unlock new levels of productivity and performance. We can’t wait to see what you’ll build with them. If you have any feedback or questions about the information provided above, please leave a comment below or email us at AskAzureDBforMySQL@service.microsoft.com. Thank you!Automatic Grading with Azure OpenAI Services ChatGPT Virtual Assistant
Don’t waste your time grading assignments by hand. Let AI do it for you! Learn how our AI virtual assistant can help students and teachers with their assignments in a fair, effective, and eco-friendly way. Plus, discover the secrets of choosing the best model, parameter, and prompt design for your tasks. ChatGPT 4 is not always the best option!7.9KViews1like0CommentsAzure Hybrid Cloud Lab Environment is an Serverless Azure IoT Application
Azure Hybrid Cloud Lab Environment is an Serverless Azure IoT Application to establish private remote channel to let students use the physical lab computer at home. The physical lab is consistent with same hardware, authorized software, and full support to running virtualization software. It builds on top of Azure Cloud Lab Environment project and manages the lab computer private remote channel according to the class schedule.6.5KViews1like2CommentsFaking DDNS with Azure Services
I want to access my “on-prem lab” environment from anywhere but my ISP cycles my IP address regularly. I could always use a service like noip.com or dyndns but I already have a DNS zone managed in Azure DNS and I thought it would be fun to figure out how to use it for my needs. You can leverage multiple Azure services and configuration to address on-prem issues efficiently.7.7KViews1like3CommentsSet-PnPUserProfileProperty with Application Permission in Azure Function
When using Set-PnPUserProfileProperty in Azure Function with Power Shell and the permissions has been defined using the Application Permission. Once connected to the admin site URL using client id, tenant and cert and try to update the User Profile Property, it throws the below error Access denied. You do not have permission to perform this action or access this resource. Attached the screenshot for the reference Below are the permissions given for the application in Azure API Permissions Hope someone already have a solution!3.9KViews1like3Comments