Blog Post
Use Azure Logic Apps to Notify of Pending AAD Application Client Secrets and Certificate Expirations
I am experiencing issues since one week, it appears that Microsoft has changed the app registrations for Copilot app registrations.
Problem:
The owner of the app registration is another app registration, which is not having a mail address assigned.
Removing the owners would break the auto secret renewal process on the copilot app registrations but adding userPrincipalName to that registration is impossible.
I have tried adding another check with the "OR" to the "condition 5" above, to check whether the value of "userPrincipalName" is empty. But it is still failing.
I tried an integer of "0", "" and filling in nothing.
Any help is appreciated!
UPDATE:
I've added a condition to condition 3: (AND)
Expression: body('Get_Secret_Owner')?['value'][0]?['userPrincipalName']
is not equals to
Expression: null
looks like this:
NOTE: you should add this in both the secret and certificate part of the logic app.
It now works, by skipping the send-mail if the owner has no mail/userprincipalname (ie, being another app registration).
Hi @DirkhxDirkHx , Thank you, We seem to have the same problem since this week, I am not exactly sure where to add above condition, Would it be possible to get a screen grab of your flow and where this needs to be added please. Sorry I am quite new to logic app and cannot work it out. Any help greatly appreciated. This is what we see.