Calling Azure Batch service via Azure Data Factory Web activity

Miguel Buenestado 41 Reputation points
2022-11-15T08:48:44.433+00:00

Hi,

I am trying to perform a Web activity in Azure Data Factory. My goal is to wake up (and, later, shut down) a node within an Azure Batch pool.
Both batch account and pool are already set up.

I am following instructions indicated in https://video2.skills-academy.com/en-us/rest/api/batchservice/pool/resize?tabs=HTTP, but seems to be insufficient, as I am receiving the following error:

Error code 2403
Failure type User configuration issue
Details
Get access token from MSI failed for Datafactory XXXXXXXXXX, region we. Please verify resource url is valid and retry. Details: Failed to get MI access token. The error message is: Acquire MI token from AAD failed. ErrorCode: invalid_resource, Message: AADSTS500011: The resource principal named https://login.microsoftonline.com/common/oauth2/authorize was not found in the tenant named XXXXXXXXXXXXXXXXXXXXXXXXXX. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have sent your authentication request to the wrong tenant.

I am clear on setting up the "URL", "Method" and "Body" parameters, but not sure how better configure the Authentication, Resource and Headers settings. See image below:

260417-image.png

May you be able to assist me please?

Azure Batch
Azure Batch
An Azure service that provides cloud-scale job scheduling and compute management.
330 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,681 questions
0 comments No comments
{count} votes

Accepted answer
  1. PRADEEPCHEEKATLA-MSFT 89,466 Reputation points Microsoft Employee
    2022-11-16T10:52:52.997+00:00

    Hello @Miguel Buenestado ,

    Thanks for the question and using MS Q&A platform.

    Make sure to use the Azure Batch resource endpoint to acquire a token for authenticating requests to the Batch service: https://batch.core.windows.net/

    260870-image.png

    For more details, refer to Authenticate Batch service solutions with Active Directory.

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. 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
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is jhow you can be part of Q&A Volunteer Moderators
    0 comments No comments

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.