Azure / Azure/deployment-stacks

az stack --template-uri doesn't work for bicep template

Open
#186 3 comments 0 reactions 1 assignee Assigned to @aperezmicrosoft View on GitHub
feature request needs upvote
Dominant language
Bicep
Stars
101
Forks
13
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
--template-uri parameter on deployment stack command only allow to use json arm file.

**To Reproduce**
Steps to reproduce the behavior:
1. Try to deploy any bicep file from remote uri using az cli stack commands for resource group, subscription and mg:
```azcli
az stack group validate \
--name stack-armor \
--resource-group rg-experiments-01 \
--action-on-unmanage deleteResources \
--deny-settings-mode none \
--template-uri https://raw.githubusercontent.com/alefred/armor-greave/ft/stacks/demo-1/deploygroup.bicep
```

2. Error received:
> Failed to parse 'https://raw.githubusercontent.com/alefred/armor-greave/ft/stacks/demo-1/deploygroup.bicep', please check whether it is a valid JSON format

**Expected behavior**
Template uri support bicep file deployment as ARM json file deployment

**Screenshots**
![image](https://github.com/user-attachments/assets/88e07491-af13-4485-8eb7-2628f35cff1a)

**Repro Environment**
Host OS: Ubuntu 22.04.3 LTS, Linux 5.15.153.1-microsoft-standard-WSL2
Azure-cli version: 2.63.0

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.