Just a quick script for Azure Synapse. Let's say your synapse workspace is named "dev-synapse-workspace", and you've already set up the Managed Identity
CREATE USER [dev-synapse-workspace] FROM EXTERNAL PROVIDER;
exec sp_addrolemember 'db_owner', 'dev-synapse-workspace';
After that, your pipelines should be able to easily access your Synapse SQL Pools.
This same code works in an Azure SQL database if you need to access one from Azure Synapse.
Happy coding!
No comments:
Post a Comment