script to create M365 Entra Apps.
Needs an "permission.json" like the exmaples and creates an "auth_credentials.json" with ID´s and the ClientSecret.
Also has some features to get the IDs needed.
.\create-entra-app.ps1 [-PermissionFilePath .\permissions-emailrelay.json] [-CredentialOutputPath .\auth_credentials.json]
Get permission ID(s), if multiple seperated by comma (",")
.\create-entra-app.ps1 -GetEntraPermissionID "SMTP.SendAsApp,POP.AccessAsApp" -ResourceID 00000002-0000-0ff1-ce00-000000000000
Get resource ID
.\create-entra-app.ps1 -GetEntraPermissionID SMTP.SendAsApp -ResourceID 00000002-0000-0ff1-ce00-000000000000
Get both resource and permission ID(s), if multiple seperated by comma (",")
.\create-entra-app.ps1 -GetEntraPermissionID "SMTP.SendAsApp,POP.AccessAsApp" -GetEntraResourceID "Office 365 Exchange Online"