cmty_blog_detail (2024)

cmty_blog_detail (1)

When we switched to use OAuth2 authentication, we now need to create Azure AD App Registration with expiration date. The client secret expiration date can only be set to maximum of 24 months. We cannot set a client secret that will never expire due to security reason. Unfortunately, Azure currently does not natively provide a way to notify expired client secret. An expired secret can cause a lot of damage on the business process.

There are ways to get the reminder, such as using the Power Shell script by Stefano Demiliani. However, I prefer to use the Logic App solution by Russ Rimmerman.

I made a slight modification to the Logic App solution and here is the link to the my GitHub repository. This logic app will run once everyday, check the expiry date on App Registrations listed on storage account, and send a reminder email.

Besides the logic app, we also need to use three other resources:
– Key Vault with Managed Identity to store the App Registration Client Id, Client Secret, and Client TenantId.
– Storage Account to store Azure AD App Registration that we want to monitor.
– Office365 connection to send reminder email.

I will not going to talk about much about these three resources, but the ARM Template will need the three resources and its API Connection.

cmty_blog_detail (2)

To use the Logic App, we first need to use App Registration that has permission to Microsoft Graph – Application.Read.All. This will be used to read secret expiration date. Here I am using a different App Registration than the one for Business Cental OAuth.

cmty_blog_detail (3)

We will put the App Registration Client Id, Client Secret, and Client TenantId inside the Key Vault.

cmty_blog_detail (4)

Inside the Storage Account, create a table called AppRegistrationMonitoring.

cmty_blog_detail (5)

Fill in all the Azure AD App Registration that we want to monitor. The PartitionKey is the Application Client Id. We can use the RowKey as additional information.

cmty_blog_detail (6)

Let’s deploy the template. Go to Azure and create using “Template deployment(deploy using custom templates)” in theMarketplace.

cmty_blog_detail (7)

Click “Build your own template in the editor”, paste the armTemplate.json content in it, and process to create and deploy the logic app. Make sure to change the email address.

cmty_blog_detail (8)

Because we are using Managed Identity, don’t forget to add new logic app under the Key Vault access policy. We can then test run the logic app.

cmty_blog_detail (9)


We will get the email only if there is any client secret expired within 30 days. Any client secret expired within 5 days will be in red. We can configure this in the Logic App parameters.

cmty_blog_detail (10)

The logic app works for both Secret and Certificates.

The post Azure : Using Logic Apps to Monitor Azure App Registration Expiration appeared first on That NAV Guy.

cmty_blog_detail (2024)
Top Articles
FAFSA Income Limits 2024: Are You Eligible For Student Aid?
8 Prayers for Times of Financial Stress | Positive Encouraging K-LOVE
Algebra Calculator Mathway
Google Sites Classroom 6X
Byrn Funeral Home Mayfield Kentucky Obituaries
Chalupp's Pizza Taos Menu
United Dual Complete Providers
Zachary Zulock Linkedin
Ohiohealth Esource Employee Login
Sotyktu Pronounce
Healing Guide Dragonflight 10.2.7 Wow Warring Dueling Guide
Nyuonsite
Define Percosivism
Simpsons Tapped Out Road To Riches
NBA 2k23 MyTEAM guide: Every Trophy Case Agenda for all 30 teams
My Homework Lesson 11 Volume Of Composite Figures Answer Key
I Saysopensesame
A Person That Creates Movie Basis Figgerits
Talkstreamlive
Breckiehill Shower Cucumber
Jayme's Upscale Resale Abilene Photos
Preggophili
TMO GRC Fortworth TX | T-Mobile Community
Login.castlebranch.com
Penn State Service Management
Craigslist Boerne Tx
Housing Intranet Unt
Otis Inmate Locator
Nurtsug
Indiana Jones 5 Showtimes Near Jamaica Multiplex Cinemas
How to Draw a Bubble Letter M in 5 Easy Steps
What Time Does Walmart Auto Center Open
The Pretty Kitty Tanglewood
Diana Lolalytics
What Time Is First Light Tomorrow Morning
New Gold Lee
Mohave County Jobs Craigslist
Is The Nun Based On a True Story?
Immobiliare di Felice| Appartamento | Appartamento in vendita Porto San
QVC hosts Carolyn Gracie, Dan Hughes among 400 laid off by network's parent company
Todd Gutner Salary
Craigslist Com St Cloud Mn
4k Movie, Streaming, Blu-Ray Disc, and Home Theater Product Reviews & News
Matt Brickman Wikipedia
Zeeks Pizza Calories
Bank Of America Appointments Near Me
Dayton Overdrive
Craigslist Marshfield Mo
Makemkv Key April 2023
A Snowy Day In Oakland Showtimes Near Maya Pittsburg Cinemas
Jasgotgass2
Bob Wright Yukon Accident
Latest Posts
Article information

Author: Virgilio Hermann JD

Last Updated:

Views: 5846

Rating: 4 / 5 (61 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Virgilio Hermann JD

Birthday: 1997-12-21

Address: 6946 Schoen Cove, Sipesshire, MO 55944

Phone: +3763365785260

Job: Accounting Engineer

Hobby: Web surfing, Rafting, Dowsing, Stand-up comedy, Ghost hunting, Swimming, Amateur radio

Introduction: My name is Virgilio Hermann JD, I am a fine, gifted, beautiful, encouraging, kind, talented, zealous person who loves writing and wants to share my knowledge and understanding with you.