How to connect to Azure Analysis Services from java or other languages and execute DMV queries without using SSMS or MSMDPUMP.dll

Sibi Narayanaswamy 41 Reputation points
2021-01-16T11:31:26.75+00:00

My requirement is to connect to Azure analysis services and retrieve tabular model's metadata. I am able to connect to this service from SSMS (Sql server management studio) and execute DMV queries. I would like to do this programmatically. What options I have to execute these queries from my application? example a java client using ODBC/JDBC connectivity or is it exposed through XMLA ?

Azure Analysis Services
Azure Analysis Services
An Azure service that provides an enterprise-grade analytics engine.
456 questions
{count} votes

Accepted answer
  1. HarithaMaddi-MSFT 10,136 Reputation points
    2021-01-20T07:04:51.493+00:00

    Hi @Sibi Narayanaswamy ,

    Thanks for your patience. I got update from product team that AAS doesn’t support Java natively and can use .NET Core to wrap around it, or can use an custom JSON proxy wrapper that can be integrated with Java. Sample code for the wrapper is found here.

    The sample provides a REST-like interface to an XMLA endpoint, passing through the client’s authentication using either a Bearer token, UPN/Password pair, or a Service Principal and Client Secret, and returning data as JSON.

    Main changes:

    1) Support for Power BI Premium XML\A Endpoints
    2) Migrated the project to .NET 5, enabling cross-platform deployment
    3) Added a SwaggerUI and additional REST endpoints to list model tables and dump a single table
    4) Added a README with instructions on getting started

    Please let us know for further queries and we will be glad to assist.

    --

    • Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification.
    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.