azdevad1
azdevad1

Reputation: 1

Azure Terraform initial setup

I worked with Terraform for AWS before successfully. Now I am trying to work with Azure and facing a few challenges. I have successfully authenticated to my azure account using Azure CLI. When I run the basic terraform provider arm .tf and do a terraform init it just works. But when I put in any additional code like container creation or blob creation .tfs, the init is not working and is giving me the below message :

No available provider "azure" plugins are compatible with this Terraform version.

Error: no available version is compatible with this version of Terraform

Terraform version :

bash-3.2$ terraform -v
Terraform v0.12.19
+ provider.azurerm v1.38.0

I used version 1.38.0 and tried many others but it still continues to give me error.

Upvotes: 0

Views: 434

Answers (1)

Charles Xu
Charles Xu

Reputation: 31414

They are the two providers for the different Azure models.

Azure Service Management Provider model is the classic model in Azure and is not recommended to use now. It provides the resources with format azure_xxx.

Azure Resource Manager Provider model is the Resource Manager model which calls ARM and is recommended to use and supported well. It provides the resources with format azurerm_xxx.

You can also learn more about the ASM and ARM model in document Azure Resource Manager vs. classic deployment: Understand deployment models and the state of your resources.

Upvotes: 1

Related Questions