Blog

Blog posts on .NET, Azure, and more.

Introducing Azure Load Testing

April 17, 2022 by Anuraj

Azure LoadTesting Performance

This post is about Azure Load Testing - Azure Load Testing is a fully managed Azure service that enables developers and testers to generate high-scale load with custom Apache JMeter scripts and gain actionable insights to catch and fix performance bottlenecks at scale. In this post I will explain how to get create an Azure Load Testing resource and execute it with Azure portal. Azure Load Testing helps us to execute Apache JMeter Tests - I already created one using Apache JMeter - You can checkout this blog post on how to create one.

How to secure Azure Functions with Azure Active Directory B2C

April 16, 2022 by Anuraj

Azure Functions Serverless

This post is about securing Azure Functions with Azure Active Directory B2C. First we need to create an application in Azure B2C. We can do this opening Azure B2C tenant and click on the Applications menu. Next click on the New Registration button. And in the screen provide name, select the Account type as Accounts in any identity provider or organizational directory (for authenticating users with user flows), configure the redirect URL as https://jwt.ms/ - it is because I will be getting the token from this website and using the token I am accessing the azure function, keep the check on Grant admin consent to openid and offline_access permissions option under permissions.

Block Azure B2C Users with Microsoft Graph and ASP.NET Core

April 04, 2022 by Anuraj

Azure AspNetCore

This post is about blocking Azure B2C users with Microsoft Graph and ASP.NET Core. We can use Azure B2C as an identity provider. We got a requirement like application administrators need an option to block the users from signing in to the application via Azure B2C. Here is the solution we found. Since we are storing the user’s object Id in the database along with some properties we are showing the list of users from the database. And we are calling the Graph API from our controller. To do this first we need to create an Azure B2C application. We need to note the ClientId and TenantId details.

Consuming a GraphQL API with Angular

March 10, 2022 by Anuraj

Azure AspNetCore Angular GraphQL

This post is about consuming a GraphQL API with an Angular application. For this post I am using a Azure Function with GraphQL - I already wrote a blog post - Create Azure Functions with GraphQL Support.

Working with Feature Flags in ASP.NET Core MVC application

March 08, 2022 by Anuraj

Azure AspNetCore DotNetCore DevOps

This post is about Adding feature flags to an ASP.NET Core app. In this blog post we will discuss about various extension points of Feature Management package. In the last post we implemented the feature management in controller code. But that might not be the scenario always - we might like to control the feature visibility in views or in middleware. We will be able to use IFeatureManager instance, but FeatureManagement package offers more extension points like Views, Filters and Middleware out of the box.

Copyright © 2024 Anuraj. Blog content licensed under the Creative Commons CC BY 2.5 | Unless otherwise stated or granted, code samples licensed under the MIT license. This is a personal blog. The opinions expressed here represent my own and not those of my employer. Powered by Jekyll. Hosted with ❤ by GitHub