Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.
This repository was archived by the owner on Nov 21, 2025. It is now read-only.

SDKv2 Runs - aml_workspace ignored, error message and documentation could be improved. #918

@ozan-oktay

Description

@ozan-oktay

Currently, the implementation allows users to pass in the arguments aml_workspace and strictly_aml_v1=False to submit_to_azure_if_needed for sdk v2 runs; however, the workspace argument is not utilised in the v2 pathway of the method. With the recent changes (0.3.1 to 0.4.1), the method solely relies on the config file path to retrieve workspace for v2 runs. This could be better documented in the function docstring, and similarly the error message could be updated to guide the user to resolve the issue. Perhaps we can indicate that aml_workspace argument is not used for v2 runs and we throw an exception early for guidance. Thanks.

ValueError: Tried all ways of identifying the MLClient, but failed. Please provide a workspace config file config.json or set the e nvironment variables HIML_RESOURCE_GROUP, HIML_SUBSCRIPTION_ID, and HIML_WORKSPACE_NAME.

Metadata

Metadata

Assignees

No one assigned

    Labels

    aml v2Issues related to the AzureML SDK v2bugSomething isn't workingdocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions