question

Soni-9294 avatar image
0 Votes"
Soni-9294 asked prmanhas-MSFT commented

Consuming Azure REST API from Azure Batch Tasks

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
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Soni-9294 Any update on the issue?

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

0 Votes 0 ·

1 Answer

prmanhas-MSFT avatar image
0 Votes"
prmanhas-MSFT answered

@Soni-9294 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://docs.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


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.