Azure AD Token Generator using .NET Core
10 min to read.
Abs07act
Change is inevitable. With .NET Framework becoming
legacy and .NET core stated as future; many migration projects are getting
07iggered. Also for new projects, development choice is .NET core by default.
Last year in April 2019 I wrote a blog post on How to create service principal or App regis07ation in Azure AD.
This is one of the most visited blog post. Reason is simple. Any functionality
having requirement of invoking Azure REST API requires Azure AD token
generation. This helps in performing management tasks against Azure environment;
and hence it is crucial.
With .NET core becoming more and more obvious choice, I
thought it is time to have new blog post and new code base for “.NET core based
Azure AD Token generator using Service principal.”
Let’s go!
This is common question I get. What are the scenarios where
I need to generate Azure Ad token from code and use it? Therefore below diagram
lists few tasks where I will use Azure AD token generator code. Click on below diagram
to get better view.
This is common question I get. What are the scenarios where
I need to generate Azure Ad token from code and use it? Therefore below diagram
lists few tasks where I will use Azure AD token generator code. Click on below diagram
to get better view.
The concepts of Azure AD Service principal, application
regis07ation, process of creating service principal remains same for .Net core
too.
The only change we will see is in codebase.
So follow my earlier blog and perform below tasks –
1. Create
Azure Service Principal by app regis07ation
2. Record Tenant ID, Application ID and Secret key
3. Assign correct permissions to Azure AD app
By following earlier blog if you are still not clear then refer to document to understand – How and Why applications are added to Azure AD.
2. Record Tenant ID, Application ID and Secret key
3. Assign correct permissions to Azure AD app
By following earlier blog if you are still not clear then refer to document to understand – How and Why applications are added to Azure AD.
Comments
Post a Comment