Giving versions: Microsoft SQL Server Management Studio 14.0.17277.0 (17.8.1) and Microsoft Data Access Components (MDAC) 6.1.7601.17514
SqlPackage.exe should report 14.0.3917.1 (it is located in C:\Program Files\Microsoft SQL Server\140\DAC\bin)
https://github.com/yochananrachamim/AzureSQL/blob/master/MasterKeyIssue/RemoveMasterKeyGT4GB.ps1
https://github.com/yochananrachamim/AzureSQL/blob/master/MasterKeyIssue/RemoveMasterKeyLT4GB.ps1
Ps Set-executionpolicy unrestricted
https://www.mssqltips.com/sqlservertip/2702/setting-the-powershell-execution-policy/
Open a command prompt in
C:\Program Files\Microsoft SQL Server\140\DAC\
run
sqlpackage.exe /Action:Export /ssn:**url**.database.windows.net /su:**user** /sp:**Pasword**. /sdn:**databasename** /tf:"B:\backupfolder\backupfilename.bacpac" /p:Storage=File
run at the PS command prompt:
Ps c:\YourChosenPowerShellScriptFolder\RemoveMasterKey.ps1 -bacpacPath "B\backupfolder\backupfilename.bacpac.bacpac"
After some time you should get
Completed update to the model.xml and Origin.xml in file B\backupfolder\backupfilename-patched.bacpac
Open a command prompt in
C:\Program Files\Microsoft SQL Server\140\DAC\ and run
sqlpackage.exe /Action:Import /tsn:.\serverInstance /tdn:NewDatabaseName /sf:" \backupfolder\backupfilename" /p:Storage=File