Import Azure DB into local MSSQL Server

Importing Azure database into a local MSSQL instance gives the error.

Could not import package.
Warning SQL72012: The object [xxx_Data] exists in the target, but it will not be dropped even though you selected the 'Generate drop statements for objects that are in the target database but that are not in the source' check box.
  • Rename the .bacpac file to a zip
  • Extract the zip
  • Edit the model.xml and remove sections labeled SQLExternalDataSource, save the file
  • Regenerate the checksum for the file (see powershell script)
  • Update origin.xml with the new checksum for the model.xml file
  • Zip everything back up and rename .bacpac
  • $modelXmlPath = Read-Host "model.xml file path"
    $hasher = [System.Security.Cryptography.HashAlgorithm]::Create("System.Security.Cryptography.SHA256CryptoServiceProvider")
    $fileStream = new-object System.IO.FileStream ` -ArgumentList @($modelXmlPath, [System.IO.FileMode]::Open)
    $hash = $hasher.ComputeHash($fileStream)
    $hashString = ""
    Foreach ($b in $hash) { $hashString += $b.ToString("X2") }
    $fileStream.Close()
    $hashString

    https://techcommunity.microsoft.com/t5/azure-database-support-blog/editing-a-bacpac-file/ba-p/368931