Part 2: Terraform with Azure – How to install Azure CLI

Reading Time: 2 minutes

Following on from a previous post where I installed and configured Terraform, see How to Install Terraform, in this post I will continue my journey learning Terraform by going through the process of installing a useful tool known Azure command-line interface (Azure CLI).

The Azure command-line interface (Azure CLI) is a set of commands used to create and manage Azure resources. The Azure CLI is available across Azure services and is designed to get you working quickly with Azure, with an emphasis on automation. It’s a useful tool to have installed on my machine so let’s get started.

  1. Visit the Azure CLI web page Download Azure CLI
  2. Click Install – Windows

3. Click Current release of Azure CLI. The download was approx 45MB at the time of writing this blog post

4. Run the installer

5. Accept the licence agreement when ready to do so and click install

The install can take up to 10 minutes to complete

6. Launch Powershell and type az login and press enter

7. If successful, you’ll be presented with the Microsoft login screen

In part 3, I go through the process of installing Visual Studio Code, click the following link to continue on my journey, Part 3: Terraform with Azure – How to Install Visual Studio Code

HDD performance running at 100%

Reading Time: 2 minutes

I thought it would be useful to share this post in the event anyone experiences this issue.

A friend contacted me recently and mentioned that he was experiencing performance issues with his laptop. Upon investigating I launched task manager and clicked the performance tab. As shown below, I found that his HDD was running at 100%

After some investigation, I found that there was a disk defrag scheduled to run daily which was causing the disk to run at 100%

Disabling this task allowed for the HDD performance to stabilise.

Here is the result after disabling the defrag schedule.

If you’re experiencing this issue, it’s worth checking if there is a defrag schedule configured.

Click start > search and click Defragment and Optimize drives

Could not acquire a developer license

Reading Time: < 1 minute

Issue
When you execute a Powershell script, you receive the error below and the script fails. I have seen this occur on a Windows 10 device when attempting to install the Azure VPN Client via Powershell.

Error: Could not acquire a developer license

To resolve, click the start menu on your Windows 10 device and search for settings. Click Settings, Update & Security and then from the left pane, select the option For developers

Turn on Developer Mode

Retry running the script again

When done, disable developer mode