Forum Discussion

avinson1's avatar
avinson1
Copper Contributor
Feb 27, 2024
Solved

Script - failed to authenticate and create a new session

We have a script created by someone else that we utilize for our onboarding processes. The powershell script runs automatically as a file is dropped in a particular folder but recently, we've begun to receive an this error 

 

Any guidance would be appreciated. 

  • avinson1's avatar
    avinson1
    Mar 05, 2024

    Harm_Veenstra Thank you for your quick response. We've determined the issue is related to MFA authentication and we're looking at the script to re-write. 

2 Replies

  • It's probably using an expired app registration, but without knowing how the script connects... It's guessing 😉 We need a bit more information than this. Could you share the authentication part and, please, strip any tenant details and app id's/secrets from that and replace them with x-'s
    • avinson1's avatar
      avinson1
      Copper Contributor

      Harm_Veenstra Thank you for your quick response. We've determined the issue is related to MFA authentication and we're looking at the script to re-write. 

Resources