Closed
Description
Connect-MgGraph fails silently/ without error when called with a nonexisting tenantid / verified domain.
PS C:\Windows\System32> Microsoft.Graph.Authentication\Connect-MgGraph -TenantId 'thisdomaindoesnotexist.com' -Scopes 'User.Read.All'
PS C:\Windows\System32>
Modules versions
ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Script 1.2.0 Microsoft.Graph.Authentication {Add-MgEnvironment, Connect-MgGraph, Disconnect-MgGraph, Get-MgContext}
Script 1.2.0 Microsoft.Graph.Users {Get-MgUser, Get-MgUserCreatedObject, Get-MgUserCreatedObjectByRef, Get-MgUserDirectReport}
Script 0.9.1 Microsoft.Graph.Users.Calendar {Get-MgUserCalendar, Get-MgUserCalendarEvent, Get-MgUserCalendarEventAttachment, Get-MgUserCalendarEventCalendar}
Manifest 7.0.0.0 Microsoft.PowerShell.Management {Add-Content, Clear-Content, Clear-Item, Clear-ItemProperty}
Manifest 7.0.0.0 Microsoft.PowerShell.Utility {Add-Member, Add-Type, Clear-Variable, Compare-Object}
Script 2.1.0 PSReadLine {Get-PSReadLineKeyHandler, Get-PSReadLineOption, Remove-PSReadLineKeyHandler, Set-PSReadLineKeyHandler}