SOLVED

AzureAD cmdlets return error 'Too Many Requests'

%3CLINGO-SUB%20id%3D%22lingo-sub-2975361%22%20slang%3D%22en-US%22%3EAzureAD%20cmdlets%20return%20error%20'Too%20Many%20Requests'%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2975361%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20everyone%2C%3CBR%20%2F%3E%3CBR%20%2F%3EWe%20are%20having%20some%20unusual%20experiences%20lately%20with%20different%20cmdlets%20used%20in%20Azure%20%26amp%3B%20%2F%20O365%2C%20in%20different%20scripts%20or%20just%20in%20basic%20admin%20tasks.%3CBR%20%2F%3E%3CBR%20%2F%3EWe%20keep%20receiving%20throttling%20errors%20and%20I%20can't%20comprehend%20what%20is%20happening%20as%20this%20was%20not%20the%20case%20in%20the%20past.%3CBR%20%2F%3E%3CBR%20%2F%3EIs%20anyone%20going%20through%20this%20or%20are%20you%20aware%20of%20any%20changes%20that%20could%20influence%20the%20behavior%3F%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ramonabadea_0-1637159319348.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F327610iC61A2B68951C26CD%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ramonabadea_0-1637159319348.png%22%20alt%3D%22ramonabadea_0-1637159319348.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2975361%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2975666%22%20slang%3D%22en-US%22%3ERe%3A%20AzureAD%20cmdlets%20return%20error%20'Too%20Many%20Requests'%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2975666%22%20slang%3D%22en-US%22%3EHello%20Ramona%2C%3CBR%20%2F%3EHow%20many%20requests%20until%20you%20hit%20that%20error%3F%3CBR%20%2F%3EWhat%20version%20of%20the%20AzureADPreview%20are%20you%20using%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2975693%22%20slang%3D%22en-US%22%3ERe%3A%20AzureAD%20cmdlets%20return%20error%20'Too%20Many%20Requests'%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2975693%22%20slang%3D%22en-US%22%3EHi%20Andres%2C%3CBR%20%2F%3E%3CBR%20%2F%3EThank%20you%20for%20your%20reply.%3CBR%20%2F%3EI%20don't%20know%20precisely%20how%20many%20requests%20until%20I%20hit%20the%20error.%20It%20seemed%20to%20be%20sporradic%20to%20me%2C%20I%20did%20not%20really%20count.%20I%20have%20some%20thousands%20of%20users%20in%20the%20tenant%20tho%20and%20the%20cmdlet%20should%20iterate%20through%20all%20of%20them..%3CBR%20%2F%3E%3CBR%20%2F%3EAzureADPreview%20version%20is%202.0.2.138.%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2976464%22%20slang%3D%22en-US%22%3ERe%3A%20AzureAD%20cmdlets%20return%20error%20'Too%20Many%20Requests'%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2976464%22%20slang%3D%22en-US%22%3EHi%20Ramona%2C%3CBR%20%2F%3E%3CBR%20%2F%3EIt%20seems%20this%20is%20also%20submitted%20against%20the%20Graph%20SDK%20PowerShell%20repo%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoftgraph%2Fmsgraph-sdk-powershell%2Fissues%2F281%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fmicrosoftgraph%2Fmsgraph-sdk-powershell%2Fissues%2F281%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EThat%20means%20you%20are%20not%20the%20only%20one%20facing%20this%20and%20in%20the%20best%20scenario%20someone%20is%20working%20on%20this%20(hopefully)%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hello everyone,

We are having some unusual experiences lately with different cmdlets used in Azure & / O365, in different scripts or just in basic admin tasks.

We keep receiving throttling errors and I can't comprehend what is happening as this was not the case in the past.

Is anyone going through this or are you aware of any changes that could influence the behavior?

ramonabadea_0-1637159458319.png

 

 

5 Replies
Hello Ramona,
How many requests until you hit that error?
What version of the AzureADPreview are you using?
Hi Andres,

Thank you for your reply.
I don't know precisely how many requests until I hit the error. It seemed to be sporradic to me, I did not really count. I have some thousands of users in the tenant tho and the cmdlet should iterate through all of them..

AzureADPreview version is 2.0.2.138.
best response confirmed by ramonabadea (Occasional Contributor)
Solution
Hi Ramona,

It seems this is also submitted against the Graph SDK PowerShell repo

https://github.com/microsoftgraph/msgraph-sdk-powershell/issues/281

That means you are not the only one facing this and in the best scenario someone is working on this (hopefully)

Hello Ramona,
Tried to reproduce but couldn't, maybe because I do not have that quantity of users in my lab tenant, did you have a chance to see the link I shared?
Dear Andres,

Sorry for the very late reply!
Yes, indeed, I checked the link you shared and I am following the topic.
As it doesn't happen in all moments, I will wait for some well desired updates on the github issue.