ADF Pipeline - Get the resource group using Management API doesn't work

Ramamoorthy, Kesavan 61 Reputation points

Hi Experts,

Inside ADF(V2) pipeline, I am trying to get the resource group by calling the management API with Web activity as below but it is not listing the resource groups available under my subscription; the output "value" is blank array as shown in pic below. Am I doing something wrong here ?

Is there any other easy way of getting the resource group attached to this ADF inside the pipeline activity similar to what we have for system variables like pipeline().DataFactory...I need to capture the resource group of my ADF inside the pipeline SetVariable activity<mysubscriptionid>/resourcegroups?api-version=2020-06-01


Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,120 questions
{count} votes