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 workspaceInstantiate Workspace
object used to connect to your AML assets.
For convenience store your workspace metadata in a config.json
.
#
Helpful methodsws.write_config(path, file_name)
: Write theconfig.json
on your behalf. Thepath
defaults to '.azureml/' in the current working directory andfile_name
defaults 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 AssetsThe workspace provides a handle to your Azure ML assets:
#
Compute TargetsGet all compute targets attached to the workspace.
#
DatastoresGet all datastores registered to the workspace.
Get the workspace's default datastore.
#
KeyvaultGet workspace's default Keyvault.
#
EnvironmentsGet environments registered to the workspace.
#
MLFlowGet MLFlow tracking uri.