Hi Samedi
I haven’t worked with Terraform towards Azure for a while, but I had a quick read through the AzureRM provider, and it looks like there was a change at some point where Azure CLI now needs to be in your path:
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/guides/azure_cli