Disclaimer The sample scripts are not supported under any Microsoft standard support program or service. The sample scripts are provided AS IS without warranty of any kind. Microsoft further dis...
Zogler2235 I got mine to work, excluding expired apps. I created a new variable called expirydate and also added a new action called current time
Then in the "foreach - passwordCreds" & "foreach - keyCreds" loops, I Parse JSON "Body endDateTime"
And finally added a new Parameter into the "Future time is greater than endDate - passwordCreds" & "Future time is greater than endDate - keyCreds" parallel branch, current time is less or equal to expirydate
There is probably a better/cleaner way of doing this, but this is my solution.
Hi RickyG-86 thank you for sharing, but could you explain in more details what you did for this step "Then in the "foreach - passwordCreds" & "foreach - keyCreds" loops, I Parse JSON "Body endDateTime" " when I ran mt test it was running for hours. Thanks
bril1598 In the "foreach - apps" loop there are 2 variables, "Set variable - passwordCredentials" & "Set variable - keyCredentials" which are needed in the "foreach - passwordCreds" & "foreach - keyCreds" loops.
This is the code of the "Set variable - passwordCredentials" eg. for every AzureAD Application populate the variable