Bicep is a Domain Specific Language (DSL) for deploying Azure resources declaratively. It aims to drastically simplify the authoring experience with a cleaner syntax, improved type safety, and better support for modularity and code re-use. This article will serve as an informative guide and give you a clear understanding of how to perform a silent installation of Bicep CLI from the command line using the EXE installer.
How to Install Bicep CLI Silently
Bicep CLI Silent Install (EXE)
- Navigate to: https://github.com/Azure/bicep/releases/latest/download/bicep-setup-win-x64.exe
- Download the bicep-setup-win-x64.exe to a folder created at (C:\Downloads)
- Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
- Navigate to the C:\Downloads folder
- Enter the following command: bicep-setup-win-x64.exe /VERYSILENT /NORESTART
- Press Enter
After a few moments you will find Bicep CLI entries in the Installation Directory and Programs and Features in the Control Panel.
Software Title: | Bicep CLI |
Vendor: | Microsoft Corporation |
Architecture: | x64 |
Installer Type: | EXE |
Silent Install Switch: | bicep-setup-win-x64.exe /VERYSILENT /NORESTART |
Silent Uninstall Switch: | "%LocalAppData%\Programs\Bicep CLI\unins000.exe" /VERYSILENT /NORESTART |
Download Link: | https://github.com/Azure/bicep/releases/latest/download/bicep-setup-win-x64.exe |
PowerShell Script: | https://silentinstallhq.com/bicep-cli-install-and-uninstall-powershell/ |
Detection Script: | https://silentinstallhq.com/create-a-custom-detection-script-for-bicep-cli-powershell/ |
The information above provides a quick overview of the software title, vendor, silent install, and silent uninstall switches. The download links provided take you directly to the vendors website. Continue reading if you are interested in additional details and configurations.
Additional Configurations
Create a Bicep CLI Installation Log File
The Bicep CLI installer offers the option to generate a log file during installation to assist with troubleshooting should any problems arise. You can use the following command to create a verbose log file with details about the installation.
Bicep CLI Silent Install (EXE) with Logging
bicep-setup-win-x64.exe /VERYSILENT /NORESTART /LOG="%WINDIR%\Temp\BicepCLI-Install.log" |
How to Uninstall Bicep CLI Silently
Check out the following posts for a scripted solution:
- Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
- Enter the following command:
Bicep CLI Silent Uninstall (EXE)
"%LocalAppData%\Programs\Bicep CLI\unins000.exe" /VERYSILENT /NORESTART |
Always make sure to test everything in a development environment prior to implementing anything into production. The information in this article is provided “As Is” without warranty of any kind.