How to Fix Error The expression after '&' in a pipeline element produced an object that was not valid. It must result in a command name, a script block, or a CommandInfo object. Invoke-CloudShellTelemetry -LogLabel "CONNECTAZUREADSERVICE" -StartTi

Deepak Garg (INFOSYS LIMITED) 0 Reputation points Microsoft External Staff
2024-01-08T02:24:42.7833333+00:00

I am trying to authenticate to azure active directory using following command

Connect-AzureAD -Confirm

However i am unable to connect . I get following error message.

The expression after '&' in a pipeline element produced an object that was not valid. It must result in a command name, a script block, or a CommandInfo object.
        Invoke-CloudShellTelemetry -LogLabel "CONNECTAZUREADSERVICE" -StartTime $startTime
Windows for business | Windows Client for IT Pros | Directory services | Active Directory
Windows for business | Windows Server | User experience | PowerShell
{count} votes

1 answer

Sort by: Most helpful
  1. Rich Matheisen 47,906 Reputation points
    2024-01-08T02:59:06.1766667+00:00

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.