Manually trigger an Azure Machine Learning job #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Manually trigger an Azure Machine Learning job | |
on: | |
workflow_dispatch: | |
jobs: | |
train: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@main | |
- name: Install az ml extension | |
run: az extension add -n ml -y | |
- name: Azure login | |
uses: azure/login@v1 | |
with: | |
creds: ${{secrets.AZURE_CREDENTIALS}} | |
- name: Trigger Azure ML Training Job | |
run: az ml job create --file src/job.yml --workspace-name MS-Mlops --resource-group cloud-shell-storage-centralindia | |