SqlPackage /Action:Publish /SourceFile:"./xxx.dacpac" \
/TargetDatabaseName:xxx /TargetServerName:xxx.database.windows.net \
/tu:xx /tp:'xxx' /TargetTrustServerCertificate:True
Error message:
Publishing to database 'xxx' on server 'xxxx.database.windows.net'.
Initializing deployment (Start)
Initializing deployment (Failed)
*** An error occurred during deployment plan generation. Deployment cannot continue.
A project which specifies SQL Server 2022 or Azure SQL Database Managed Instance as the target platform cannot be published to Microsoft Azure SQL Database v12.
Time elapsed 0:00:03.82
Docker Image: mcr.microsoft.com/mssql/server:2022-latest. (Linux amd64 )
sqlpackage version 16.1.8980.0
Mac os version: 13.2.1. ( M1 Max)
Thanks, I tested the issue still exist. And I have solved the issue by Azure Data Studio on Mac... My answer is use Azure Data Studio on Mac....