When I try to create a DACPAC file for my source database the SQL user permissions present in the source database is not getting included. Whenever I deploy the source database DACPAC file to target database the entire schema is getting created properly on my target database except the user permissions present in the source database. I have tried checking my source database DACPAC file by unpacking it and the user permissions are not included in the model file.
The script I am using to generate a DACPAC file from my source database is below :
sqlpackage /a:extract /of:true /ssn:tcp:test.database.windows.net,1433 /sdn:source_db /su:admin /sp:password /tf:"C:\SQL Server Management Studio\DAC Packages\source.dacpac";
The script I am using to deploy the source database DACPAC file to target database is below :
sqlpackage /a:publish /sf:"C:\SQL Server Management Studio\DAC Packages\source.dacpac" /tsn:tcp:test.windows.net,1433 /tdn:target_db /tu:admin /tp:password
Should I include some property in this ?