Bicep CLI Silent Install (How-To Guide)

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)

  1. Navigate to:
  2. Download the bicep-setup-win-x64.exe to a folder created at (C:\Downloads)
  3. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  4. Navigate to the C:\Downloads folder
  5. Enter the following command: bicep-setup-win-x64.exe /VERYSILENT /NORESTART
  6. 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
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:
PowerShell Script:
Detection Script:

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:

Bicep CLI Install and Uninstall (PowerShell)
Bicep CLI Silent Uninstall (PowerShell)
  1. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  2. 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.

Recent Posts