Forum Discussion
ELIN Not Showing in PIDF/LO passed to SBC
Ahhh yes, that makes sense. This is because when you create a civic address, a default location is also created and tied to that Civic Address. If you do Get-CsOnlineCivicAddress you should see a field called "Default Location ID", grab that ID and then do Get-CsOnlineLisLocation with that Location ID and you'll see the same values. Update that location using:
Set-CsOnlineLisLocation -LocationId <locationId> -Elin "new elin"
This should save you having to create new civic addresses and locations.
Hello,
Sorry the Set is like New, the LocationId already exists and you can't modify it.
Set-CsOnlineLisLocation -LocationId e4187ffc-6466-4871-911a-a1bde6e4c1df -Elin "ASB_FALLBACK"
Set-CsOnlineLisLocation : Location already exists with same locationId and cannot update default location for a
validated address CannotUpdateDefaultLocationLocationId=e4187ffc-6466-4871-911a-a1bde6e4c1df,
TenantId=e5a06f4a-1ec4-4d01-8f73-e7dd15f26134, IsDefault=True, Elin=
At line:1 char:1
+ Set-CsOnlineLisLocation -LocationId e4187ffc-6466-4871-911a-a1bde6e4c ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: ({ body = Micros...s.SetLocation }:<>f__AnonymousType6`1) [Set-C
sOnlineLisLocation], UndeclaredResponseException
+ FullyQualifiedErrorId : Forbidden,Microsoft.Teams.ConfigApi.Cmdlets.SetCsOnlineLisLocation
- janglissOct 04, 2022Steel Contributor
Interesting, it used to be you could modify some attributes of validated attributes, but the error you have there suggests you cannot change anything now. I'll have a test in my tenant and see. I thought ELIN was one of those changeable attributes.
You can use Set-CsOnlineLisLocation to edit existing locations, New- is limited to just creating items.