Connecting On-Premise AD from Azure Runbook Automation

%3CLINGO-SUB%20id%3D%22lingo-sub-1618519%22%20slang%3D%22en-US%22%3EConnecting%20On-Premise%20AD%20from%20Azure%20Runbook%20Automation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1618519%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20have%20on-premise%20Active%20Directory%20and%20trying%20to%20pull%20the%20user%20details%20and%20add%20the%20users%20to%20this%20on-premise%20active%20directory%20from%20the%20Azure%20Runbook%20Automation.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGetting%20attached%20error.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%3E%3CSTRONG%3EAdd-ADGroupMember%20%3A%20Unable%20to%20find%20a%20default%20server%20with%20Active%20Directory%20Web%20Services%20running.%20At%20line%3A10%20char%3A5%20%2B%20Add-ADGroupMember%20-Identity%20%22SPTeam%22%20-Members%20%22Username%22%20%2B%20~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%20%2B%20CategoryInfo%20%3A%20ResourceUnavailable%3A%20(SPTeam%3AADGroup)%20%5BAdd-ADGroupMember%5D%2C%20ADServerDownException%20%2B%20FullyQualifiedErrorId%20%3A%20Unable%20to%20find%20a%20default%20server%20with%20Active%20Directory%20Web%20Services%20running.%2CMicrosoft.ActiveDirectory.Management.Commands.AddADGroupMember%20%3C%2FSTRONG%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1618519%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Erunbook%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Visitor

We have on-premise Active Directory and trying to pull the user details and add the users to this on-premise active directory from the Azure Runbook Automation.

 

Getting attached error.

 

 

Add-ADGroupMember : Unable to find a default server with Active Directory Web Services running. At line:10 char:5 + Add-ADGroupMember -Identity "SPTeam" -Members "Username" + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ResourceUnavailable: (SPTeam:ADGroup) [Add-ADGroupMember], ADServerDownException + FullyQualifiedErrorId : Unable to find a default server with Active Directory Web Services running.,Microsoft.ActiveDirectory.Management.Commands.AddADGroupMember
0 Replies