An Azure service that is used to automate, configure, and install updates across hybrid environments.
Resource completions in Bicep come from the Bicep language server that is part of the Bicep extension in Visual Studio Code or Visual Studio. The CLI (bicep command) is not required for IntelliSense, but the extension itself must be correctly installed and active for .bicep files.
Based on the context:
- Verify that the Bicep extension is installed and enabled in the correct editor:
- For Visual Studio Code, install the Bicep extension from the marketplace as described in the Bicep tools installation guidance. After installation, open a file with the
.bicepextension and confirm that the language mode in the lower-right corner shows Bicep. - For Visual Studio (the full IDE), install the Bicep extension for Visual Studio from the Visual Studio Marketplace. Then open a
.bicepfile in a supported project.
- For Visual Studio Code, install the Bicep extension from the marketplace as described in the Bicep tools installation guidance. After installation, open a file with the
- Confirm that the file is recognized as Bicep:
- Open
main.bicep. - Check the status bar language mode. It must be Bicep. If it is not, change it to Bicep so that the extension’s language server is used and completions can load.
- Open
- Check Bicep extension settings:
- In Visual Studio Code:
File→Preferences→Settings→Extensions→Bicep. - Ensure the extension is not disabled and that features such as completions are not turned off.
- In Visual Studio Code:
- If the extension still does not provide completions, reinstall or repair it:
- Disable and re-enable the Bicep extension.
- If needed, uninstall and reinstall it from the marketplace.
- The
bicepCLI error in the terminal (bicep : The term 'bicep' is not recognized) only indicates that the standalone Bicep CLI is not installed on the machine. To use the CLI, install Bicep as documented in the Bicep tools installation article. This is optional for IntelliSense but required if runningbicepcommands directly from the terminal.
After these steps, opening a .bicep file in an editor where the Bicep extension is active should show resource type completions when defining a resource.
References: