It appears the New-JournalRule cmdlet is not available in ExchangeOnline(EXO) V2 module. When trying to use this cmdlet I get the error,'The term 'New-JournalRule' is not recognized...'
I get the error after importing the V2 module and connecting. Also, I get the same error when trying to use the cmdlet in PS implicit remoting.
Import-Module "ExchangeOnlineManagement.psd1" -Verbose Connect-ExchangeOnline (Invoke-Command -Session (Get-PSSession) -ScriptBlock {New-JournalRule})
With EXO V1, I am getting the cmdlet.
Has anyone seen this issue and have an pointers or workaround for this in EXO v2?
Edit: New-JournalRule cmdlet does appear when I connect using the cmdlet:
Connect-ExchangeOnline -UserPrincipalName myusername -ShowProgress:$true
However, when I connect using the cmdlet below, I don't get find the cmdlet and get the error
Connect-ExchangeOnline -AppId 'appid' -CertificateFilePath "Cert.pfx" -Organization 'xyz.onmicrosoft.com' -CertificatePassword (ConvertTo-SecureString 'myapss' -AsPlainText -Force) -LogLevel Default -Verbose