Mar 09 2021 12:20 PM
Trying to script the creation or migration of meeting rooms to Teams. This would include assigning Lineuri for each room.
I can assign them in the GUI just fine.
(below is example with real data removed)
Set-CsMeetingRoom -Identity confrm1@contoso.com -lineuri tel:+12225551234 -locationID XXXXXXXX
Unable to set "LineURI". This parameter is restricted within Remote Tenant PowerShell.
+ CategoryInfo : InvalidArgument: (:) [Set-CsMeetingRoom], ManagementException
+ FullyQualifiedErrorId : LineURI,Microsoft.Rtc.Management.AD.Cmdlets.SetOcsMeetingRoomCmdlet
+ PSComputerName : api.interfaces.records.teams.microsoft.com
running the set-csuser with the room identity gives the same error.
Aug 01 2021 11:56 PM
Sep 13 2021 06:38 AM
We are having same issue. Teams Room was fine with LineURI assigned, however as part of Skype on-premises servers decomssion, we need to remove OnPrem LineURI and re-assign in Teams. All users' LineURIs assigned, however Teams Rooms LineURI getting error.