Forum Discussion
Sql database in Fabric
- 1 year ago
Thank you for the response.
I followed all the suggested steps:
- Confirmed DNS and network connectivity (nslookup, Test-NetConnection).
- Verified I have ODBC Driver 18 and pyodbc installed.
- Ran my Python script with ActiveDirectoryInteractive and also tried other auth methods.
- Checked my Azure tenant and found I have no valid subscription assigned or active.
It turns out my subscription status is causing the issue. I don’t have any active Azure subscription in my tenant.
Hi Mr Levy
This is the error code from trying the above code, after editing for my server and db.
If I run the AZ login and select my tenant from the VS Code terminal, but am not logged into the corporate domain should it work?
Thanks
Oliver
pyodbc.Error: ('FA004', "[FA004] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Failed to authenticate the user '' in Entra ID (Authentication option is 'ActiveDirectoryInteractive').\r\nError code 0x534; state 11\r\n(null) (0) (SQLDriverConnect); [FA004] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Failed to authenticate the user '' in Entra ID (Authentication option is 'ActiveDirectoryInteractive').\r\nError code 0x534; state 11\r\n(null) (0)")
- dlevy1 year agoMicrosoft Employee
Hi OliverO - You have to be logged in for integrated auth to work. Running az login will get you a logged in session. If you open a new command window, run az login then run your python script in the same window I'd expect it to just work. That is actually how I do testing against our various test tenants.
- OliverO1 year agoHelper III
Thanks!
Hmm, same issue using CMD session...
- OliverO1 year agoHelper III
Should I open a support case?
- dlevy1 year agoMicrosoft Employee
Yes, creating a support case will be fastest/safest.