Azure Service Principal Expiry Notification

What is Azure App Registration ?

Azure App Registration is a service provided by Microsoft Azure that enables developers to register their web or mobile applications, and obtain the necessary credentials for authentication and authorization.

What is Azure Service Principal ?

In Azure, a service principal is a security identity that is used by applications, services, and automation tools to access Azure resources. A service principal is an instance of an Azure Active Directory (Azure AD) application, and it is typically used to authenticate and authorize access to Azure resources without the need for human interaction.

  • Granting permissions to applications: Service principals can be assigned roles, permissions, and access policies to authorize access to specific Azure resources. This enables applications to interact with Azure resources in a secure and controlled manner.
  • Integrating with external services: Service principals can be used to integrate Azure with other services or platforms that support OAuth2 authentication. This allows for seamless authentication and authorization between the services.

Challenges with maintaining the secrets

Expiry Alert

How it works ?

Soon expiring SP’s

Install-Module -Name AzAppRegistrationExpiry
Import-Module -Name AzAppRegistrationExpiry

Syntax:
Get-ExpiringSPN -TimeFrameInDays <NumberDaystoExpire> -expiry

Example:
$data = (Get-ExpiringSPN -TimeFrameInDays 30 -expiry)
Install-Module -Name AzAppRegistrationExpiry
Import-Module -Name AzAppRegistrationExpiry

Syntax:
Get-ExpiringSPN -TimeFrameInDays <NumberDaystoExpire> -expiry

Example:
$data = (Get-ExpiringSPN -TimeFrameInDays 600 -InvalidExpiry)

--

--

DevFinOps Engineer with 12 years of experience in managing cloud infrastructure and system administration, integrating Azure cloud-based infra components

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Aammir Mirza

DevFinOps Engineer with 12 years of experience in managing cloud infrastructure and system administration, integrating Azure cloud-based infra components