Hi @Guoxiong , welcome to Microsoft Q&A forum.
Please try adding /p:AllowIncompatiblePlatform=true at the end and run the command again as below:
SqlPackage.exe /SourceFile:"DIRECTORY_PATH\XYZ.dacpac" /Action:Publish /TargetServerName:"azure_sql_server_name" /TargetDatabaseName:"XYZ" /TargetUser:"sql_admin_user" /TargetPassword:"sql_admin_user_passwrord" /p:AllowIncompatiblePlatform=true
You might see the same message as a warning, you can ignore it.
Please let us know if you see any issue and we can discuss further.
----------
Please don't forgot to click on accept it as answer button wherever the information provided helps you. This can be beneficial to other community members as well.