Yes, Azure only supports it newid()
, because apaprently newsequentialid()
is machine dependent. It is clear how I feel, but what a pain!
You can get around this with this procedure:
- Rename the BACPAC file to a zip file.
- Open the model.xml file inside zip
- Replace instances
newsequentialid()
withnewid()
- Save the modified file and copy it back to zip.
You basically do this, except for the checksum in Origin.xml, which will fail because you are monkey with the contents of the file.
You need to recalculate the checksum; I did it using PowerShell
Get-FileHash '.\model.xml' -Algorithm SHA256
Then open Origin.xml and replace the hash in the checksum section.
Copy the modified Origin.xml back to zip and rename the file back to .bacpac. Now it will be possible to import without problems.