Workspace
Workspaces are a foundational object used throughout Azure ML and are used in the
constructors of many other classes. Throughout this documentation we frequently
omit the workspace object instantiation and simply refer to ws.
See Installation for instructions on creating a new workspace.
Get workspace#
Instantiate Workspace object used to connect to your AML assets.
For convenience store your workspace metadata in a config.json.
Helpful methods#
ws.write_config(path, file_name): Write theconfig.jsonon your behalf. Thepathdefaults to '.azureml/' in the current working directory andfile_namedefaults to 'config.json'.Workspace.from_config(path, _file_name): Read the workspace configuration from config. The parameter defaults to starting the search in the current directory.
info
It is recommended to store these in a directory .azureml/ as this path is searched by default
in the Workspace.from_config method.
Get Workspace Assets#
The workspace provides a handle to your Azure ML assets:
Compute Targets#
Get all compute targets attached to the workspace.
Datastores#
Get all datastores registered to the workspace.
Get the workspace's default datastore.
Keyvault#
Get workspace's default Keyvault.
Environments#
Get environments registered to the workspace.
MLFlow#
Get MLFlow tracking uri.