Thank you for your detailed post!
Error Message:
-
Connect-MgGraph: Device code terminal timed-out after 120 seconds. Please try again.
I understand that you're trying to Configure federation between Google Workspace and Azure AD but when running the PowerShell script located in the Configure Azure AD as a Service Provider section, you're running into the above error message when using Azure Cloud Shell.
Findings:
When working through the documentation within my environment, I also ran into this error when using Azure Cloud Shell. However, after reading through both documents that you shared, I noticed that they mentioned using PowerShell / a PowerShell session.
After installing Azure PowerShell, I was able to install/import the Microsoft.Graph
module as referenced in the PS script, and login when prompted to authenticate to Azure AD, using the credentials of my Global Admin account.
Additional Links:
- How to install Azure PowerShell
- Install Azure Active Directory PowerShell for Graph
- Connect with the Azure Active Directory PowerShell for Graph module
I hope this helps!
If you have any other questions, please let me know. Thank you for your time and patience throughout this issue.
If the information helped address your question, please Accept the answer. This will help us and also improve searchability for others in the community who might be researching similar information.