Skip to content

Commit

Permalink
Fix online deployment registry issue (#37857)
Browse files Browse the repository at this point in the history
* fix service client subscription id
  • Loading branch information
PratibhaShrivastav18 authored and kshitij-microsoft committed Oct 21, 2024
1 parent 82983c4 commit f41ddc6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sdk/ml/azure-ai-ml/azure/ai/ml/_ml_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,11 @@ def __init__(

self._service_client_07_2024_preview = ServiceClient072024Preview(
credential=self._credential,
subscription_id=self._operation_scope._subscription_id,
subscription_id=(
self._ws_operation_scope._subscription_id
if registry_reference
else self._operation_scope._subscription_id
),
base_url=base_url,
**kwargs,
)
Expand Down

0 comments on commit f41ddc6

Please sign in to comment.