Skip to content

Update bicep CLI supported version to v0.36.1 #5245

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/lint-bicep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Upgrade bicep
run: |
which bicep
sudo curl -o $(which bicep) -L https://github.com/Azure/bicep/releases/download/v0.35.1/bicep-linux-x64
sudo curl -o $(which bicep) -L https://github.com/Azure/bicep/releases/download/v0.36.1/bicep-linux-x64
sudo chmod +x $(which bicep)
- name: Lint .bicep files
run: $ErrorActionPreference='Continue'; eng/scripts/Test-BicepLint.ps1 -Verbose
Expand Down
2 changes: 1 addition & 1 deletion cli/azd/pkg/tools/bicep/bicep.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (

// Version is the minimum version of bicep that we require (and the one we fetch when we fetch bicep on behalf of a
// user).
var Version semver.Version = semver.MustParse("0.35.1")
var Version semver.Version = semver.MustParse("0.36.1")

// NewCli creates a new Bicep CLI. Azd manages its own copy of the bicep CLI, stored in `$AZD_CONFIG_DIR/bin`. If
// bicep is not present at this location, or if it is present but is older than the minimum supported version, it is
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ module containerAppsEnvironment 'container-apps-environment.bicep' = {
}
}

var containerRegistryRG = empty(containerRegistryResourceGroupName) ? resourceGroup() : resourceGroup(containerRegistryResourceGroupName)

module containerRegistry 'container-registry.bicep' = {
name: '${name}-container-registry'
scope: !empty(containerRegistryResourceGroupName) ? resourceGroup(containerRegistryResourceGroupName) : resourceGroup()
scope: containerRegistryRG
params: {
name: containerRegistryName
location: location
Expand Down