I'm working on bringing an existing Azure V12 database into an SSDT project so we can start using source control and CI pipelines.
The problem I'm struggling with is that there is a reference to "sys.fn_get_audit_file" in some of the code and it gives an "unresolved reference" error. I don't want any errors to be ignored while building the project so have been trying to resolve this properly. Adding a database reference to master does not resolve the issue and it seems that the master.dacpac file that comes with SSDT does not have the definition (in model.xml) of that sys function in it. I checked all versions of master.dacpac files available in the VS folders and even tried VS 2019 preview to see if a newer version of master.dacpac would come with it.
Digging around online I realised that other people had similar problems with objects missing in master.dacpac and the suggested solution was to edit model.xml, re-pack and correct the checksum. I would rather not go down that route so I tried using SqlPackage to extract a DACPAC from a master DB in Azure but the extracted model has almost no object definitions in it.
Any suggestions?