I am using Azure ML python SDK v2 to submit the job. The code parameter at "command" is pointed to the local "./source" path.
train_func = command(
environment="AzureML-sklearn-1.0-ubuntu20.04-py38-cpu:33",
command='python myfunc.py ...',
code='./source',
...
)
How to use remote location as code path in the above example? I read the reference azure-ai-ml and it shows the code can be a remote location:
code Optional[Union[str, PathLike]] The source code to run the job. Can be a local path or "http:", "https:", or "azureml:" url pointing to a remote location.
I tried use the pathtext-like "azureml://" from AzureDataStore URI but not working.
I have uploaded the source code using below code snippet:
Once uploaded, I have used
Storage URIas the remote code path.With this, the job is executed successfully.