Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/clowa/az-func-expired-app-secrets

Azure Function to retrieve expired App Registration Secrets
https://github.com/clowa/az-func-expired-app-secrets

azure-functions terraform

Last synced: 7 days ago
JSON representation

Azure Function to retrieve expired App Registration Secrets

Awesome Lists containing this project

README

        

# Overview

This is an azure function to retrieve expired app registration secrets from an API and send E-Mail notifications to the owners of the app registrations.

## Prerequisites

- Azure Function App for Powershell Core
- The Managed Identity of the Function App needs the `Directory Reader` role on the Azure AD tenant

### Getting Started

#### Terraform

1. Deploy the Azure infrastructure via `terraform apply`.

#### Functions

1. Deploy the functions to your function app via `func azure functionapp publish `. The first executions will fail, because the app settings are not set yet.
2. App Setting `API_FUNCTION_KEY` with an Function Key to call `GetExpiredSecrets` function. You can create one via `openssl rand -hex 32`.