`template-uri` input not supported?
- Dominant language
- TypeScript
- Stars
- 64
- Forks
- 20
- Avg merge
- 15h 37m
- Merged PRs (30d)
- 4
Description
Hi,
The documentation mentions that we can specify `template-uri` as input for a deployment. However I can not get this to work. When referencing a publicly available ARM template with `template-uri`, running the workflow fails with
> Error: Template file is required
Example workflow definition:
```
- name: Run preflight validation
uses: azure/bicep-deploy@v2
with:
type: deployment
operation: validate
name: ArcBox_${{ github.run_number }}
scope: resourceGroup
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID_HYBRID }}
resource-group-name: ArcBox
template-uri: https://raw.githubusercontent.com/Azure/arc_jumpstart_levelup/refs/heads/main/azure_arc_servers_jumpstart/ARM/azuredeploy.json
parameters-file: azuredeploy.parameters.json
```
`template-uri` does not seem to be recognized in the action config and looking at the source in this repo I did not find any reference to this option either. Is using `template-uri` supported in bicep-deploy v2 or am I missing something?
```
2025-02-26T14:01:03.1467815Z Azure CLI login succeeds by using OIDC.
2025-02-26T14:01:03.1678660Z ##[group]Run azure/bicep-deploy@v2
2025-02-26T14:01:03.1679138Z with:
2025-02-26T14:01:03.1679752Z type: deployment
2025-02-26T14:01:03.1680153Z operation: validate
2025-02-26T14:01:03.1680545Z name: ArcBox_10
2025-02-26T14:01:03.1680915Z scope: resourceGroup
2025-02-26T14:01:03.1681683Z subscription-id: ***
2025-02-26T14:01:03.1682104Z resource-group-name: ArcBox
2025-02-26T14:01:03.1683159Z template-uri: https://raw.githubusercontent.com/Azure/arc_jumpstart_levelup/refs/heads/main/azure_arc_servers_jumpstart/ARM/azuredeploy.json
2025-02-26T14:01:03.1684339Z parameters-file: azuredeploy.parameters.json
2025-02-26T14:01:03.1684826Z env:
2025-02-26T14:01:03.1685800Z ARM_TEMPLATE_PATH: https://raw.githubusercontent.com/Azure/arc_jumpstart_levelup/refs/heads/main/azure_arc_servers_jumpstart/ARM/azuredeploy.json
2025-02-26T14:01:03.1686936Z RESOURCEGROUPNAME: ArcBox
2025-02-26T14:01:03.1687427Z RESOURCEGROUPLOCATION: swedencentral
2025-02-26T14:01:03.1687998Z ##[endgroup]
2025-02-26T14:01:03.3547456Z [34mAction config: {[0m
2025-02-26T14:01:03.3556971Z [34m "type": "deployment",[0m
2025-02-26T14:01:03.3557587Z [34m "name": "ArcBox_10",[0m
2025-02-26T14:01:03.3558816Z [34m "parametersFile": "/home/runner/work/azure-lab-core/azure-lab-core/azuredeploy.parameters.json",[0m
2025-02-26T14:01:03.3560170Z [34m "parameters": {},[0m
2025-02-26T14:01:03.3560673Z [34m "tags": {},[0m
2025-02-26T14:01:03.3561174Z [34m "maskedOutputs": [],[0m
2025-02-26T14:01:03.3561740Z [34m "environment": "azureCloud",[0m
2025-02-26T14:01:03.3562271Z [34m "operation": "validate",[0m
2025-02-26T14:01:03.3562750Z [34m "scope": {[0m
2025-02-26T14:01:03.3563224Z [34m "type": "resourceGroup",[0m
2025-02-26T14:01:03.3564096Z [34m "subscriptionId": "***",[0m
2025-02-26T14:01:03.3564674Z [34m "resourceGroup": "ArcBox"[0m
2025-02-26T14:01:03.3565184Z [34m },[0m
2025-02-26T14:01:03.3565587Z [34m "whatIf": {[0m
2025-02-26T14:01:03.3566101Z [34m "excludeChangeTypes": [][0m
2025-02-26T14:01:03.3566604Z [34m }[0m
2025-02-26T14:01:03.3567002Z [34m}[0m
2025-02-26T14:01:03.3621630Z ##[error]Template file is required
```
Thank you!
Contributor guide
Assessment
This issue has not been assessed yet.