Error: building account

Good Day All,

I am busy starting the Terraform journey and have a very basic code to run in Azure. I am running VS Code and using Terraform locally from my laptop.
I am able to open Microsoft Edge (normal and InPrivate) and log into my Azure account with no issues.
Running terraform plan I get the following issue:

Error: building account: getting authenticated object ID: parsing json result from the Azure CLI: waiting for the Azure CLI: exit status 1: ERROR: AADSTS53001: Device is not in required device state: domain_joined. Conditional Access policy requires a domain joined device, and the device is not domain joined.

Interactive authentication is needed. Please run:
│ az login --scope https://graph.microsoft.com//.default

│ with provider[“Terraform Registry”],
│ on main.tf line 9, in provider “azurerm”:
│ 9: provider “azurerm” {

I am unable to proceed, and can’t find much information relating to that issue. My laptop is domain-joined, and I can definitely log into Azure via my browser.
I am stuck and would appreciate any assistance (bearing in mind this is my very first attempt to run a small code operation).

Thanks in advance!