We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb072e6 commit 1010508Copy full SHA for 1010508
sdk/ai/azure-ai-resources/azure/ai/resources/client/_ai_client.py
@@ -92,6 +92,10 @@ def __init__(
92
workspace_name=project_name,
93
**kwargs,
94
)
95
+
96
+ if project_name:
97
+ ai_resource_name = ai_resource_name or self._ml_client.workspaces.get(project_name).workspace_hub.split("/")[-1]
98
99
# Client scoped to the AI Resource for operations that need AI resource-scoping
100
# instead of project scoping.
101
self._ai_resource_ml_client = MLClient(
0 commit comments