Hello,
In Azure Data Factory (ADF), we have Development (DEV), Staging (Stage), and Production (PROD) workspaces. Similarly, Azure Machine Learning (Azure ML) also has corresponding DEV, Stage, and PROD workspaces.
In ADF DEV, I have an Azure Machine Learning (Azure ML) activity that connects using an Azure ML linked service. Currently, the ML linked service contains hardcoded values for subscriptionId, resourceGroupName, and WorkspaceName. With this setup, I am able to connect to the Machine Learning pipeline and successfully execute it through ADF.
However, when migrating the Machine Learning linked service to a higher environment (Stage/PROD), I am encountering issues due to the hardcoded values.
- In Stage, it attempts to fetch Stage ML details.
- In PROD, it fetches PROD ML details.
To resolve this, I am passing the required values in a parameterized JSON format. The connections test successfully, but unfortunately, I am unable to fetch the Machine Learning pipeline name details.
Interestingly, if I configure the linked service with hardcoded values, I am able to fetch the ML pipeline list and execute the pipeline through ADF without issues.
below json request
{
"properties": {
"type": "AzureMLService",
"parameters": {
"subscriptionId": {
"type": "String"
},
"resourceGroupName": {
"type": "String"
},
"mlWorkspaceName": {
"type": "String"
}
},
"annotations": [],
"typeProperties": {
"subscriptionId": "@{linkedService().parameters.subscriptionId}",
"resourceGroupName": "@{linkedService().parameters.resourceGroupName}",
"WorkspaceName": "@{linkedService().parameters.WorkspaceName}",
"authentication": "MSI"
}
}
}
Could you please provide insights or recommendations on resolving this issue?
Thank you.
Best regards,
praveen