
Hi guys I'm pretty new to power automate and I'm currently trying to execute a powershell script after the flow run through a few conditions and approvals.
The logic of the flow works, now I want to implement a powershell script which will enable a user and also set a random generated password. The password should then be returned and saved into an variable, which will then be sent to a specific user.
The ps-script works when I execute it on the AD-server directly. But now I want it to be executed from the flow itself, without having to store the credentials of the admin user into an remote script.
I already thought about using an azuread script, the problem there is, that you also need some sort of credentials and that the sync from azure to the ad-server takes around 30-60 minutes, which is too much.
Would be great if anyone has an idea how to solve it or maybe another approach.
Many Thanks
nz
Hey @nz2
There is no action in cloud flow for cloud flow but you can use Azure Function and invoke it from flow... As for credentials I would recommend you use Azure key vault, you can find details here - https://kamdaryash.wordpress.com/2020/05/29/use-azure-key-vault-to-avoid-passing-credentials-in-power-automate/
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.