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
15.1: Types of Environmental Hazards
45 Day Timeline to 1031 Exchanges | 1031 Crowdfunding
Great Clips Mount Airy Nc
Tlc Africa Deaths 2021
Lifewitceee
Wordscapes Level 5130 Answers
Coffman Memorial Union | U of M Bookstores
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Www Movieswood Com
Kostenlose Games: Die besten Free to play Spiele 2024 - Update mit einem legendären Shooter
Alaska Bücher in der richtigen Reihenfolge
3656 Curlew St
Mawal Gameroom Download
zopiclon | Apotheek.nl
Pro Groom Prices – The Pet Centre
10 Free Employee Handbook Templates in Word & ClickUp
Craigslist Pets Athens Ohio
Tygodnik Polityka - Polityka.pl
Aldine Isd Pay Scale 23-24
Ally Joann
Eine Band wie ein Baum
Nearest Walgreens Or Cvs Near Me
Jc Green Obits
Getmnapp
Pawn Shop Moline Il
Gen 50 Kjv
Astro Seek Asteroid Chart
Eero Optimize For Conferencing And Gaming
What Happened To Father Anthony Mary Ewtn
24 slang words teens and Gen Zers are using in 2020, and what they really mean
Marcus Roberts 1040 Answers
Pensacola Cars Craigslist
Kelley Blue Book Recalls
Merkantilismus – Staatslexikon
Wo ein Pfand ist, ist auch Einweg
Lovely Nails Prices (2024) – Salon Rates
Brandon Spikes Career Earnings
Craigslist Antique
Mybiglots Net Associates
Honkai Star Rail Aha Stuffed Toy
Spreading Unverified Info Crossword Clue
This Doctor Was Vilified After Contracting Ebola. Now He Sees History Repeating Itself With Coronavirus
Dobratz Hantge Funeral Chapel Obituaries
City Of Irving Tx Jail In-Custody List
Craigslist Psl
Raley Scrubs - Midtown
Strange World Showtimes Near Century Federal Way
Craigslist Yard Sales In Murrells Inlet
Lorcin 380 10 Round Clip
Acellus Grading Scale
Comenity/Banter
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.