@Adam Porter
Could you please try with the below approach and update if that works?
Invoke-WebRequest -Uri $uri -Method Post -Infile $zippath -ContentType 'application/octet-stream'
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Does anybody know how to upload an indoor map using powershell?
I would expect it to look something like this, but the documentation is a bit sparse:
$zippath = 'D:\SomeFolder\SomeBuildingDrawing.zip'
$uri = "https://us.atlas.microsoft.com/mapData/upload?api-version=1.0&dataFormat=zip&subscription-key={mysubscriptionkey}"
$body = <<something that points back to the zip file>>
$header = <<something belongs here>>
$response = Invoke-WebRequest -Method Post -Uri $uri -Body $body -Headers $header
@Adam Porter
Could you please try with the below approach and update if that works?
Invoke-WebRequest -Uri $uri -Method Post -Infile $zippath -ContentType 'application/octet-stream'