@Siddharth Joshi Thankyou for using Microsoft Q&A platform and thanks for posting your question here. I understand you want to override ADLS endpoints for higher environment while deploying serverless sql resources using dacpac. You can try using SQLCMD variables to change the ADLS endpoint before publishing to UAT via DACPAC.
- In your SQL script, replace the ADLS endpoint with a SQLCMD variable. For example, replace
https://devadls.blob.core.windows.net
with$(adls_endpoint)
. - In your Azure DevOps pipeline, define a SQLCMD variable named
adls_endpoint
with the value of your UAT ADLS endpoint. - In your DACPAC deployment task, add the
/v:adls_endpoint=$(adls_endpoint)
argument to theAdditional SqlPackage.exe arguments
field.
You can find more relevant information in below resources:
Deploying a dacpac to a serverless SQL pool
sqlcmd - Use with scripting variables
Use SQLCMD Variables for User Name in DACPAC
Hope it helps. Kindly accept the answer if it helped. Thankyou