From d158c129e9cacce0bb64acc43ef89daf2db71671 Mon Sep 17 00:00:00 2001 From: Pratibha Shrivastav <164305667+PratibhaShrivastav18@users.noreply.github.com> Date: Mon, 6 Jan 2025 13:13:13 +0530 Subject: [PATCH] fix registry model mdc wrong resource group bug (#39022) --- sdk/ml/azure-ai-ml/azure/ai/ml/_ml_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/ml/azure-ai-ml/azure/ai/ml/_ml_client.py b/sdk/ml/azure-ai-ml/azure/ai/ml/_ml_client.py index ad78640d7078..76dcf6a06765 100644 --- a/sdk/ml/azure-ai-ml/azure/ai/ml/_ml_client.py +++ b/sdk/ml/azure-ai-ml/azure/ai/ml/_ml_client.py @@ -655,7 +655,7 @@ def __init__( self._operation_container.add(AzureMLResourceType.ONLINE_DEPLOYMENT, self._online_deployments) self._operation_container.add(AzureMLResourceType.BATCH_DEPLOYMENT, self._batch_deployments) self._data = DataOperations( - self._operation_scope, + self._ws_operation_scope if registry_reference else self._operation_scope, self._operation_config, (self._service_client_10_2021_dataplanepreview if registry_name else self._service_client_04_2023_preview), self._service_client_01_2024_preview,