How to setup a host or VM to run on scheduled to execute a script so its going to update the user attributes in AAD/Entra ID?

Mytoast Admin 115 Reputation points
2024-04-13T08:33:48.1233333+00:00

How to setup a host or VM to run on scheduled to execute a script so its going to update the user attributes in AAD/Entra ID?

Here is our use case: I want to run a MS Graph PowerShell script on scheduled hours once or twice a month which will update user attributes in AAD/Entra ID and I wanted to achieve this in Azure cloud so how I can setup this and what all things are needed for this to be happen.

Also I am going to provide a input file with script with the user details and that input file should be picked-up by script flow and then execute it based scheduled date & time on Entra ID with given credentials.

Also I wanted this host/VM should be turned off after the script execution on scheduled date & time so we don't keep spending on it as well, as it would be only used for those specific tasks across our IT infra.

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,723 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,131 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,096 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Marcin Policht 11,785 Reputation points MVP
    2024-04-13T11:05:28.8633333+00:00

    You should consider using Azure Function instead.

    https://learn.microsoft.com/en-us/azure/azure-functions/functions-create-scheduled-function


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin