Recently I was doing some testing with a background PowerShell and encountered a weird error. “Identity client runtime library (IDCRL) did not get a response from the login server”. The error that you might encounter while working with PowerShell. This error is very misleading when it comes to identifying what could go wrong.
After doing quite a good amount of research below are the probable causes for the error.
- Invalid Credentials
- MFA (Multi-Factor Authentication)
- Manage security defaults.
Solutions
Invalid Credentials
Check if your credentials are wrong. Especially if you are using variables.
MFA (Multi-Factor Authentication)
Check if MFA is enabled on the account which you are using. These only affect you badly if you are developing PowerShell for a background Job.
- Go to Microsoft 365 admin center
- Users -> Active users -> Select the user -> Manage multifactor authentication -> Select the user -> Disable multi-factor authentication.
Manage security defaults.
If your tenant was created on or after October 22, 2019, security defaults may be enabled in your tenant. To protect all our users, security defaults are being rolled out to all new tenants at creation.
To disable security defaults in your directory:
- Sign in to the Azure portal as a security administrator, Conditional Access administrator, or global administrator.
- Browse to Azure Active Directory > Properties.
- Select Manage security defaults.
- Set Security defaults to Disabled.
- Select Save.
Hope this helps!
Keyur Pandya
Thanks for you help, my problem is fixed with the disable security defaults
ReplyDeleteThank you for your comments
Delete