I am using managed identity to login to Azure database. Most connections are done through Nhibernate. When i call the following
FluentConfiguration fluent;
fluent = Fluently.Configure()
.Database(
MsSqlConfiguration.MsSql2005
.ConnectionString(c => c
.Is(connstring))
)
The connString is
string ConnectionString = @"Server=demo-
server.database.windows.net,1433;Authentication=Active Directory Default;
Encrypt=True;Database=DEMO";
It gives an error:
FluentConfigurationException: An invalid or incomplete configuration was used while creating a SessionFactory.
Invalid Value for key 'authentication'
Any ideas on how to fix this ?