Tuesday, February 18, 2020

Hosting an Azure Function in API Manager

Azure API Management Service offers great support for hosting APIs. One of the greatest ways it support is by hosting different internal Azure artifacts. Once you go to the portal API Management Service and select APIs menu, it serves you with multiple options to add an API.  

Saturday, January 25, 2020

Products basics for API Management

Products are the means for exposing APIs for the developers. In order to add a product, go to Products tab on the API menu.
You can see already two products there. They basically show up the possibility of limiting the quotas to be used by the developers. Unlimited one does not has any restrictions applied, but the Starter has a rate limit and a quota limit policies applied under its policies.

Thursday, January 16, 2020

API Management Service Overview

Azure provides comprehensive set of options for managing APIs. API Management Service is one of such that let you control the access granted to outside. Getting started with API Management Service is easy. The new API Management Service wizard will open up like this.

Once all the required fields are filled and validated, you can access the API Management Service (APIM) through the portal. In this article I will explain an overview of what are the sections available and what each section does as I am intending to write detailed specifics in some sections in coming articles. 

Wednesday, January 15, 2020

Setting Budget Alerts on Azure Resource Group

You can set cost alerts for Azure in order to be alerted if the spending is going out of control. This is an easy way to make sure your budgets are within the limit and not exceeded.

First, go to resource groups and select the resource group you need to set the alerts.

Sunday, January 12, 2020

How awesome is Azure Key Vault

Earlier I wrote an article on having Azure Key Vault and App Configuration together. I have been using it for a while. But in this article I will write specifics on the Azure Key Vault. Azure Key Vault is the central hub for storing secrets, keys and certificates. 

Imagine a scenario where you have a bunch of configuration keys need to go with your application. You do not need the developers to know about these key values that runs on production. Well you can simply have a Key Vault setup to do that. 

Tuesday, December 31, 2019

What is a Proximity Placement Group?

When you have a larger Virtual Machine architecture it is important to ensure they are located as close as possible. This will ensure the effective communication between resources by reducing the latency between the two VMs.

You can simply start creating a Proximity Placement Group on Azure via the portal.

Currently only India Central does not have support for creating Proximity Placement Groups.

Once the Proximity Placement Group is created, you can add Virtual Machines to it. When you go to the Advance tab of your new VM creation wizard, you can see an option for selecting the Proximity Placement Group.

Tuesday, December 24, 2019

.NET Code for Obtaining an Azure AD Bearer Token

Source: Azure Blog
Azure AD provides great ways to connect applications and worker roles so that they can be secured to outside while easily communicated with inside. Service principles are a great way to ensure the applications within the same subscription are communicating security. But you can claim a security token and communicate with the other applications that are hosted internally.

For example, imagine you have a publicly exposed API that gets you some data output. Now you need to secure the API such that only applications authorized via Azure AD is granted with data access.

You can simply secure this with the [Authorize] tag at either controller or the output HTTP method level. Also on the Api end, at the Startup.cs file's ConfigureService method you need to add Azure AD authorization with the following code.