# Keycloak support with azure sql database with MSI (Managed Service Identity)

**URL:** <https://forum.keycloak.org/t/keycloak-support-with-azure-sql-database-with-msi-managed-service-identity/1404>\
**Category:** Miscellanaeous\
**Created:** [February 26, 2020, 9:37am UTC](https://forum.keycloak.org/t/keycloak-support-with-azure-sql-database-with-msi-managed-service-identity/1404 "2020-02-26T09:37:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajaiswal595](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/ajaiswal595/32/6789_2.png) [@ajaiswal595](https://forum.keycloak.org/u/ajaiswal595)\
**Post date:** [February 26, 2020, 9:37am UTC](https://forum.keycloak.org/t/keycloak-support-with-azure-sql-database-with-msi-managed-service-identity/1404/1 "2020-02-26T09:37:03Z")

</div>

Hi i’m trying to connect with azure sql using MSI.

Where no username and password is required.

Where connection url will be

String connectionUrl = “jdbc:sqlserver://SOMEHOSTNAME:1433;database=DBEXAMPLE;Authentication=ActiveDirectoryMsi;encrypt=true;trustServerCertificate=false;hostNameInCertificate=\*.database.windows.net;loginTimeout=30;”;

I’m able to access the azure sql database using above connection URL if I’m writing a separate program.

But using customized keycloak i’m not able to access.

Can some body help me out.
