I tried few steps:
- Connected to azure cloud using service connection ( based on service principal), SPN has contributor level access at scope subscription and rg
- Authenticated to Azure synapse analytics workspace using Get-AzSynapseWorkspace -Name $workspaceName
- Get list of sql scripts using $scripts = Get-AzSynapseSqlScript -workspaceName $workspaceName
- Now I am unable to find the command which can run the sql file in $scripts.
Note: Built-in SQL pool is there i.e. server less
I tried below command:
az synapse sql-script invoke --resource-group $resourceGroupName
--workspace-name $workspaceName --name $scriptName
--output table
I am unable to find correct command for my use-case