Consuming Azure REST API from Azure Batch Tasks

Soni 291 Reputation points Microsoft Employee
2021-08-03T09:17:39.157+00:00

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.

Regards,
SONI

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

1 answer

Sort by: Most helpful
  1. prmanhas-MSFT 17,901 Reputation points Microsoft Employee
    2021-08-04T16:09:34.483+00:00

    @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:

    https://learn.microsoft.com/en-us/azure/batch/credential-access-key-vault

    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