The Azure Machine Learning Workspace action will allow you to connect to a remote workspace so you can later run your Machine Learning experiments remotely, create production endpoints etc. If the workspace exists, it will connect to it, otherwise the action will create a new workspace. You will need to have azure credentials that allow you to create and/or connect to a workspace. The action will output a config file that needs to be passed to the next AML actions if you are looking to chain more than one AML action together.
name: My Workflow
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Run action
# AML Workspace Action
- uses: azure/AMLWorkspace@master
# required inputs as secrets
with:
azureCredentials: ${{ secrets.AZURE_CREDENTIALS }}
Input | Description |
---|---|
AZURE_CREDENTIALS |
Output of az ad sp create-for-rbac --name <your-sp-name> --role contributor --scopes /subscriptions/<your-subscriptionId>/resourceGroups/<your-rg> --sdk-auth . This should be stored in your secrets |
A sample file can be found in this repository in the folder .aml
. The action expects a similar parameter file in your repository in the .aml folder
.
Parameter Name | Required | Allowed Values | Description |
---|---|---|---|
createWorkspace | x | bool: true, false | Create Workspace if it could not be loaded |
name | x | str | For more details please read here |
friendlyName | str | ||
createResourceGroup | bool: true, false | ||
location | str: supported region | ||
sku | str: "basic", "enterprise" | ||
storageAccount | str: Azure resource ID format | ||
keyVault | str: Azure resource ID format | ||
appInsights | str: Azure resource ID format | ||
containerRegistry | str: Azure resource ID format | ||
cmkKeyVault | str: Azure resource ID format | ||
resourceCmkUri | str: URI of the customer managed key | ||
hbiWorkspace | bool: true, false |
Output | Description |
---|---|
azureml/aml_arm_config.json |
configurations to be passed to additional steps for using the workspace |