New-DistributionGroup is not recognized as a name of a cmdlet, function, script file, or executable program.
1 min
This issue occurred because Office365 Exchange Server Resource was not configured correctly. It was missing a PSCredentials parameter that is required to manage distribution lists in the cloud.
A parameter cannot be found that matches parameter name 'Type'.: [New-DistributionGroup
System.Exception: 'A parameter cannot be found that matches parameter name 'SkipLoadingCmdletHelp'.: [Connect-ExchangeOnline -Credential 'System.Management.Automation.PSCredential' -SkipLoadingFormatData 'True' -SkipLoadingCmdletHelp 'True' ]'
This was because my PSCredentials user didn't have Exchange Administrator granted via admin.microsoft.com