Skip to content

Commit

Permalink
Final touches to post
Browse files Browse the repository at this point in the history
  • Loading branch information
logphile committed Dec 21, 2023
1 parent 50385e6 commit b8bc321
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions _posts/2023-12-19-install-bicep.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,17 @@ Azure Bicep was announced at Ignite 2020. Bicep is Microsoft's (DSL) Domain-Spec
## Difficulty Level
- [X] [ ] [ ] [ ] [ ]

1. Install the Bicep Extension for VSCode
## Install the Bicep Extension for VSCode

Open VSCode and open Extensions. Search for *bicep*.

<img src="https://i.imgur.com/LmTfVCT.png" alt="VSCode bicep extension search results" width="100%" />
_VSCode Bicep Extension search results_



Next, click Install.

<img src="https://i.imgur.com/TvlaCXl.png" alt="VSCode bicep extension install" width="100%" />
_VSCode Bicep Extension install button_

Done.

Expand All @@ -47,47 +46,48 @@ Done.
- [ ] Install Azure CLI
- [ ] Verify bicep developer environment requirements met

2. Next, we need to install the Azure CLI.*
## Install Azure CLI*

<info>In the past, the Bicep CLI was separate from the Azure CLI. Microsoft has made things easier. Per the documentation, "Azure CLI automatically installs the Bicep CLI when a command is executed that needs it."</info>
>In the past, the Bicep CLI was separate from the Azure CLI. Microsoft has made things easier. Per the documentation, "Azure CLI automatically installs the Bicep CLI when a command is executed that needs it."
{: .prompt-info}

Open the link to the MSI for the latest version of the Azure CLI:

https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-windows?tabs=azure-cli
(https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-windows?tabs=azure-cli)

Choose the release for your system, most likely the 64-bit option.

<img src="https://i.imgur.com/H1Mbrwf.png" alt="Azure CLI MSI Installer" width="100%" />
_Azure CLI MSI Installer_

Once the installer is downloaded, open and click through (Next, Accept EULA, Install, Finish) the installation.

Done.

## Tasks

- [x] Install Bicep extension for Visual Studio Code
- [x] Install Azure CLI
- [ ] Verify bicep developer environment requirements met

3. Lastly, verify everything needed to author Bicep files from VSCode.
## Lastly, verify everything needed to author Bicep files from VSCode.

Verify the Azure CLI was installed correctly. Open Powershell and run the *az --version* command.

<img src="https://i.imgur.com/JXV5Rrk.png" alt="Check Azure CLI version" width="100%" />
_Checking the Azure CLI version_

Now, if we try and verify our Bicep version, we get something like this...

<img src="https://i.imgur.com/3DPFB2u.png" alt="Check Bicep CLI version error" width="100%" />
_Azure Bicep CLI version error_

Remember, the "Azure CLI automatically installs the Bicep CLI when a command is executed that needs it." We haven't run any commands that would automatically install the Bicep CLI. The prompt says to run *az bicep install*. Okay.

<img src="https://i.imgur.com/COYxyJ6.png" alt="Check Bicep CLI version error" width="100%" />
<img src="https://i.imgur.com/COYxyJ6.png" alt="Azure Bicep CLI install" width="100%" />
_Running Azure Bicep CLI install_

<img src="https://i.imgur.com/jk83EmD.png" alt="Check Bicep CLI version error" width="100%" />
<img src="https://i.imgur.com/jk83EmD.png" alt="Azure Bicep CLI install finished" width="100%" />
_Azure Bicep CLI install finished_

And running *az bicep version* is successful this time.

<img src="https://i.imgur.com/L1JFlh9.png" alt="Check Bicep CLI version error" width="100%" />
<img src="https://i.imgur.com/L1JFlh9.png" alt="Check Bicep CLI version again" width="100%" />
_Checking Azure Bicep version again_

<tip>To make sure you have the latest Bicep version you can use the *az bicep upgrade* command.</tip>

Expand All @@ -97,7 +97,7 @@ And running *az bicep version* is successful this time.
- [x] Install Azure CLI
- [X] Verify bicep developer environment requirements met

And that's it, we have successfully verified all the requirements are met.
And that's it, all Bicep development environment requirements have been met!


### <a id="resources"></a>Resources used in this post ###
Expand Down

0 comments on commit b8bc321

Please sign in to comment.