Skip to content
This repository has been archived by the owner on Apr 7, 2020. It is now read-only.

Latest commit

 

History

History
60 lines (44 loc) · 3.63 KB

README.md

File metadata and controls

60 lines (44 loc) · 3.63 KB

Azure Machine Learning Workspace Action

Usage

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.

Example workflow

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 }}

Inputs

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

Parameter File

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

Outputs

Output Description
azureml/aml_arm_config.json configurations to be passed to additional steps for using the workspace