Access Azure RateCardAPI using ADAL without login prompt

91 views Asked by At

We need to build a simple windows service to fetch the data from Azure Rate Card API and store the data in local database. To do so, i started to follow this sample however, it prompts for user credentials to AcquireToken for subsequent calls. providing this capability inside a windows service, it would be ideal if we could just configure a username / pwd to fetch the data from rate card API.

I have tried to look around quite a bit but have not found a way to AcquireToken without the prompt. Is there a way to achieve the desired objective ?

1

There are 1 answers

0
Vikram On

Well, finally found the solution for this. It basically guides you through the process of providing user credentials within the code to acquire the token and then make the API calls accordingly.

This article and the related source code