Hello Barrow, Adam,
Thank you for posting in Q&A forum.
Here are some steps and insights that might help you troubleshoot the problem:
- Ensure that the Microsoft.Graph modules you are using are compatible with the PowerShell 5.1 environment. There have been known issues with the module's compatibility with PowerShell 5.1 due to the large number of API paths.
- If possible, consider switching to a PowerShell 7+ environment for your Azure Automation accounts. This can help resolve issues related to the module's compatibility and capacity limitations.
- Double-check the configuration of your Azure Automation accounts to ensure that all necessary modules are correctly imported and configured. Sometimes, re-importing the modules or updating the account settings can resolve such issues.
Reference:
Azure Automation Account adding Microsoft.Graph module failed - Microsoft Q&A
I hope the information above is helpful.
If you have any questions or concerns, please feel free to let us know.
Best Regards,
Daisy Zhou
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.