Azure Pipeline connect to SQL DB using service principal
问题 After my azure pipeline has create an azure sql db I'd like execute some sql. The sql in question must be executed by an AAD authenticated user. The service connection for the pipeline is an AAD authenticated user of the database. If Im willing for the script to consume the service principals secret, then I can construct an OAuth call to retrieve a bearer token and use that to connect to the database. However since the powershell script is running in the context of the service principal I