Skip to content

Commit 826c27e

Browse files
Fix online deployment registry issue (Azure#37857)
* fix service client subscription id
1 parent fe58315 commit 826c27e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sdk/ml/azure-ai-ml/azure/ai/ml/_ml_client.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,11 @@ def __init__(
372372

373373
self._service_client_07_2024_preview = ServiceClient072024Preview(
374374
credential=self._credential,
375-
subscription_id=self._operation_scope._subscription_id,
375+
subscription_id=(
376+
self._ws_operation_scope._subscription_id
377+
if registry_reference
378+
else self._operation_scope._subscription_id
379+
),
376380
base_url=base_url,
377381
**kwargs,
378382
)

0 commit comments

Comments
 (0)