Forum Discussion
bhough
Aug 26, 2022Copper Contributor
Emergency Addresses Bulk Add
Is there a way to bulk add Emergency Addresses in Teams admin portal? Is there a way to bulk add Emergency Addresses in Powershell Teams CLI? Is there a way to bulk add Emergency Addresses with "pl...
- Aug 30, 2022Great to hear. And yes, the column headers in your csv need to match exactly in the script or you'll get an error for the parameter not found.
youthinkityoudoit
Brass Contributor
Hey Brad, you'll want to use New-CsOnlineLisLocation. For example:
New-CsOnlineLisLocation -CivicAddressId b39ff77d-db51-4ce5-8d50-9e9c778e1617 -Location "Office 101, 1st Floor"
You'll want to run Get-CsOnlineCivicAddress to get the civic address ID you want to associate it to.
But you'll want to create a csv file with the headers of the parameters above for all your locations. And then run a command similar to
Import-CSV C:\subnets.csv | foreach {New-CsOnlineLisLocation -CivicAddressID $_.ID –Location $_.Location
youthinkityoudoit
Aug 30, 2022Brass Contributor
bhough were you able to this figured out?
- bhoughAug 30, 2022Copper ContributorYes, with your advice. Successful. To confirm, the column header must match exactly the $_.ID and be ID or contain ID, i.e. CivicAddressID?
- youthinkityoudoitAug 30, 2022Brass ContributorGreat to hear. And yes, the column headers in your csv need to match exactly in the script or you'll get an error for the parameter not found.