I have installed az-cli using azure link and terraform apt-get. Getting below error while
Error: Error running plan: 1 error(s) occurred:
- provider.azurerm: Error building AzureRM Client: Azure CLI Authorization Profile was not found. Please ensure the Azure CLI is installed and then log-in with
az login
.
Tried to uninstall and reinstall, but no luck.
In my case this issue because Terraform was out of date when installed with apt-get. Instead I downloaded latest version from here and then it worked seemlessly.