SOLVED

Microsoft Teams PowerShell Module V2.3 - Set-CsUser broken!

Copper Contributor

As Microsoft discontinued SkypeOnlineConnector (finally) we moved to MicrosoftTeams PowerShell Module for user management - especially for Direct Routing phone number management (-OnPremLineURI).

 

However, the current version of MicrosoftTeams PowerShell Module no longer supports -OnPremLineURI neither does it work for -EnterpriseVoiceEnabled:$true and or -HostedVoiceMail:$true 

 

We are currently inable to deploy new phone system users as the "legacy" SkypeOnlineConnector no longer functions.

24 Replies

And the New-CsOnlineSession makes a comeback!

 

The CS commands are now executing successfully.

 

Thank you guys for fixing the issue.

New-CsOnlineAudioFile 2.3.1 MicrosoftTeams
Function New-CsOnlineBulkAssignmentInput 2.3.1 MicrosoftTeams
Function New-CsOnlineDateTimeRange 2.3.1 MicrosoftTeams
Function New-CsOnlineLisCivicAddress 2.3.1 MicrosoftTeams
Function New-CsOnlineLisLocation 2.3.1 MicrosoftTeams
Function New-CsOnlineNumberPortInOrder 2.3.1 MicrosoftTeams
Function New-CsOnlinePSTNGateway 2.3.1 MicrosoftTeams
Function New-CsOnlineSchedule 2.3.1 MicrosoftTeams
Function New-CsOnlineTimeRange 2.3.1 MicrosoftTeams
Function New-CsOnlineVoicemailPolicy 2.3.1 MicrosoftTeams
Function New-CsOnlineVoiceRoute 2.3.1 MicrosoftTeams
Function New-CsOnlineVoiceRoutingPolicy 2.3.1 MicrosoftTeams

New-CsOnlineSession not in the list.
Microsoft has released V2.3.1. Have you tested against that version?
@Tony -

The connect-microsoftteams with AadAccessToken doesn't let us access any SFBO CS-Online commands and this is same in 2.3.1 version as well. Today again, Microsoft started throwing a warning on the SFBO connector sessions that it is EOL for it. There seems to be no alternative for the backend integrated scripts to function without interactive login.

Does anyone have any workarounds for this issue?

I came across the scenario where we move the user from Online To onpremises. After few days we again try to move the user from onpremises to online. When we do this operation it works for few case but few case it get failed. After failure the number also get sync to online. 

 

Exception:System.Management.Automation.RemoteException: Can not update OnPremLineURI as the user has dirsynced onpremise LineURI.InnerException:

 

What's wrong with the command and I don't know how to troubleshoot this issue.

 

Plz help.

 

ONPREM
OnPremScript Execution:Move-CsUser -Identity "YYYYYY@XXXX.com.sg" -Target "sipfed.online.lync.com" -HostedMigrationOverrideUrl "https://admin0f.online.lync.com/HostedMigration/hostedmigrationservice.svc" -DomainController "SP-IS-AD01" -Confirm:$false -UseOAuth  -Credential $c
OnPremScript Execution:Set-CsUser -Identity "YYYYYY@XXXX.com.sg" -EnterpriseVoiceEnabled $true -LineURI "tel:+6569167308;ext=7308"
OnPremScript Execution:Grant-CsVoicePolicy -Identity "YYYYYY@XXXX.com.sg" -PolicyName $null
OnPremScript Execution:Grant-CsVoiceRoutingPolicy -Identity "YYYYYY@XXXX.com.sg" -PolicyName $null
OnPremScript Execution:Grant-CsDialPlan -Identity "YYYYYY@XXXX.com.sg" -PolicyName $null
ONLINE
OnLine Execution Script:Grant-CsTenantDialPlan -identity "YYYYYY@XXXX.com.sg" -policyname "AA-DialPlan-Teams"
OnLine Execution Script:Grant-CsOnlineVoiceRoutingPolicy -Identity "YYYYYY@XXXX.com.sg" -PolicyName "VP-AA-Teams-Local"
OnLine Execution Script:Grant-CsTeamsUpgradePolicy -Identity "YYYYYY@XXXX.com.sg" -PolicyName UpgradeToTeams
OnLine Execution Script:Set-CsUser -Identity "YYYYYY@XXXX.com.sg" -EnterpriseVoiceEnabled $true -OnPremLineURI "tel:+65XXXX7308;ext=7308" -HostedVoiceMail $true
PowerShellErrorCheck: Powershell Invoke Error: Exception:System.Management.Automation.RemoteException:  Can not update OnPremLineURI as the user has dirsynced onpremise LineURI.InnerException: