Using Managed Identity with Azure SQL using a managed Identity Delegate #2069
Unanswered
superuhrich
asked this question in
General
Replies: 1 comment 4 replies
-
@superuhrich were you able to make it working ? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I love Quartz.Net. I am trying to make use of the managed identity in Azure SQL for my API where Quartz lives. I have made my own IDb Provider, however whenever I try to fire up my solution, I get the error of "Quartz.JobPersistenceException: COuldnt recover jobs: Must declare teh scalar variable "@". I am unsure what I am doing wrong here. Here is my process so far.
Starting with what works, Then I will show what I have built to try and get the Managed Identity to work and see where it fails.
Here is my configuration that works, this is just straight into a local DB.
This works fine. Then, the next logical step is to try and use my own driverDelegate, but connect to the same database (no managed identity in this case) SO I have changed the settings to this
Where this is the managedIdentityDelegate, again, this time just trying to connect to the local database.
using System.Data;
using System.Data.Common;
using Azure.Core;
using Azure.Identity;
using System.Data.SqlClient;
using Microsoft.Data.SqlClient;
using Quartz.Impl.AdoJobStore.Common;
using TraxIntegrationHub.Utilities.IOC;
namespace TraxIntegrationHub.Utilities.Quartz;
[TransientRegistration]
[RegisterAsConcrete]
public class AzureManagedIdentityDelegate : IDbProvider
{
}
`
So I dont know where my settings are wrong, or what is happening. But really looking for some advice here, been pounding my head through the wall on this one.
Beta Was this translation helpful? Give feedback.
All reactions