Azure Active Directory simple maintenance automation

lk 21 Reputation points
2022-09-24T20:33:51.97+00:00

In Azure Active Directory I have a security group which I use to assign access to resources for users. I want membership of this group to depend on AAD user properties, but don't have the P1 licence. I do however have a powershell script that gets all the users from AAD, check which users match the criteria, then adds them to the group.

Currently, I can execute this script manually. What are my options to make this script run on a daily schedule? Both Azure Functions and Azure Automation seem like a bit of an overkill, is there any simpler option?

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Dillon Silzer 57,831 Reputation points Volunteer Moderator
    2022-09-24T20:38:54.817+00:00

    Hi @lk

    You could schedule it on your machine or on a local server (if you have one) using Task Scheduler.

    244485-image.png

    https://blog.netwrix.com/2018/07/03/how-to-automate-powershell-scripts-with-task-scheduler/

    ------------------------------------

    If this is helpful please accept answer.

    0 comments No comments

  2. lk 21 Reputation points
    2022-09-26T10:02:13.89+00:00

    Many thanks for the response, @Dillon Silzer ,

    That could indeed be helpful, but I expect our MFA requirement will stop this from being fully automated. I think I probably need to setup something server-side.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.