Closed Ayanmullick closed 1 year ago
Thanks @Ayanmullick - it's a good suggestion. I had a few other similar requests to sprinkle the "-AccessToken" parameter all over (when applicable), so your request here aligns well with that.
This is going to be fixed in v22 GA, which I expect to roll out in the next few days (or hours).
Currently, one cannot use an Azure context to read tables from an Azure SQL database. Using
Microsoft.Data.SqlClient.SqlConnection
doesn't work with SMO.If
Read-SQLTableData
was AzureAD access token aware, one could read tables from AzSQLdb natively using PowerShell.