Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/clowa/az-func-expired-app-secrets
- Owner: clowa
- Created: 2023-11-02T20:00:38.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-10T06:48:34.000Z (5 months ago)
- Last Synced: 2025-01-09T06:22:31.665Z (7 days ago)
- Topics: azure-functions, terraform
- Language: HCL
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`.