On-premise AD user info from Azure

Oleg Kyba 1 Reputation point
2022-08-03T13:28:31.343+00:00

HI all

Is there a way to retrieve the on-premise AD user info from Azure with powershell?
Azure AD is already synced with on-premise in my case, but I need to retrieve the data from on-prem, e.g. user account expiration date, password etc

I have a powershell script for that and it works fine on on-prem side, but I want to use some Azure automation to run that script

Appreciate your help!

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,908 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,383 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Pierre Audonnet - MSFT 10,166 Reputation points Microsoft Employee
    2022-08-09T14:27:04.213+00:00

    You can use an Azure Automation account with an Hybrid Worker Group: https://learn.microsoft.com/en-us/azure/automation/automation-hybrid-runbook-worker

    For some of the data, you can also chose to sync them to Azure AD and they will be available there to be read.

    0 comments No comments