Closed slarionoff closed 4 months ago
Hi @Matteo-T ! Any news on this issue? Thank you!
I may have finally figure out what was wrong.
...
Read-SqlTableData -ServerInstance "$($ServerName).database.windows.net" -Database $databaseName -AccessToken $access_token -SchemaName SalesLT -TableName Customer -TopN 1 | Format-Table
is now spitting out this, which I like A LOT:
CustomerID NameStyle Title FirstName MiddleName LastName Suffix CompanyName SalesPerson EmailAddress
---------- --------- ----- --------- ---------- -------- ------ ----------- ----------- ------------
1 False Mr. Orlando N. Gee A Bike Store adventure-works\pamela0 orlando0@adventur…
Now I need to wire up the whole thing, run some more tests and... push it out!
The fix for this issue should roll out in v22.3.
Fixed in v22.3.0
Great, will try to test an report. Thank you!
Dear colleagues, seems that I have an issue, similar to this. The difference is in a setup (possibly) and an error message. I have an Azure PS1 function with Managed Identity, that tries to read data from my Azure SQL DB. User was created there, read access was given as well.
In a function I have an initialization section where some variables are set, also I have a
Import-Module SqlServer
statement there. Then I have two lines of code, representing two different commands but with almost exactly the same parameters (as far as it is possible):The first command runs just fine, the second one tells me:
Also in my case if I don't provide
.Token
after aGet-AzAccessToken
command, the 1st line doesn't work either but with another errors. I can add them later if needed.