Skip to content

Commit

Permalink
Install latest Bicep CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
eriqua committed Oct 14, 2023
1 parent 71057e6 commit 71a3c0b
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions avm/utilities/pipelines/sharedScripts/Set-EnvironmentOnAgent.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -164,21 +164,22 @@ function Set-EnvironmentOnAgent {

# Bicep CLI is pre-installed on GitHub hosted runners.
# https://github.com/actions/virtual-environments#available-environments
# Adding a step to explicitly install the latest Bicep CLI because there is
# always a delay in updating Bicep CLI in the job runner environments.

Write-Verbose 'Bicep CLI version:' -Verbose
Write-Verbose 'Preinstalled Bicep CLI version:' -Verbose
bicep --version
<#
Write-Verbose ("Install bicep start") -Verbose

Write-Verbose ("Install latest Bicep CLI") -Verbose
# Fetch the latest Bicep CLI binary
curl -Lo bicep 'https://github.com/Azure/bicep/releases/latest/download/bicep-linux-x64'
# Mark it as executable
chmod +x ./bicep
# Add bicep to your PATH (requires admin)
# Add Bicep to your PATH (requires admin)
sudo mv ./bicep /usr/local/bin/bicep
Write-Verbose ("Install bicep end") -Verbose
#>

Write-Verbose 'Bicep CLI version after install:' -Verbose
bicep --version

###############################
## Install Extensions CLI #
Expand Down

0 comments on commit 71a3c0b

Please sign in to comment.