With Workload Orchestration Actions, you can manage Workload Orchestration resources through GitHub Actions.
Deploy a Solution Template to a Workload Orchestration Target. This action deploys a solution templates version on the specified target.
| Input | Description | Required |
|---|---|---|
solution-template-version-id |
Full Azure resource ID of the Solution Template Version | Yes |
target-id |
Full Azure resource ID of the Target | Yes |
- The runner must be authenticated with Azure CLI (
azure/login). jqmust be available on the runner.
name: Deploy Solution Template
on:
workflow_dispatch:
permissions:
id-token: write
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Azure Login
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Deploy to Target
uses: Azure/workload-orchestration-actions/deploy@v1
with:
solution-template-version-id: ${{ vars.SOLUTION_TEMPLATE_VERSION_ID }}
target-id: ${{ vars.TARGET_ID }}| Input | Format | Example |
|---|---|---|
solution-template-version-id |
/subscriptions/{sub}/resourceGroups/{rg}/providers/Microsoft.Edge/solutionTemplates/{name}/versions/{version} |
/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRg/providers/Microsoft.Edge/solutionTemplates/mySolution/versions/1.0.0 |
target-id |
/subscriptions/{sub}/resourceGroups/{rg}/providers/Microsoft.Edge/targets/{target} |
/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRg/providers/Microsoft.Edge/targets/myTarget |