Consuming Azure REST API from Azure Batch Tasks

Soni 291 Reputation points Microsoft Employee

Hello Team,

We have REST WEB API hosted on Azure(OAuth in place). If I have to call the REST API from Azure Batch Tasks, I guess I need to pass access token so API can authenticate the call from batch service. Need inputs on how to implement, please note we are using BATCH .NET SDK(not Batch management library).

We would be using client credentials for service to service authentication.


Azure Batch
Azure Batch
An Azure service that provides cloud-scale job scheduling and compute management.
308 questions
{count} votes

1 answer

Sort by: Most helpful
  1. prmanhas-MSFT 17,891 Reputation points Microsoft Employee

    @Soni Apologies for the delay in response and all the inconvenience caused because of the issue.

    Passing secrets to VMs is probably best done via Batch’s KeyVault integration. You can read more about it here:

    Hope it helps!!!

    Please "Accept as Answer" if it helped so it can help others in community looking for help on similar topics

    0 comments No comments