My environment looks like the following on OSX.
NJ033-10126375:old-example 10126375$ terraform version Terraform v0.12.10 + provider.azurerm v1.28.0 + provider.random v2.2.1
edit: when i run terraform providers
i get the following
.
├── provider.azure
├── provider.azurerm ~>1.35
└── provider.random
I get the following error in terraform.
No available provider "azure" plugins are compatible with this
Terraform version.
From time to time, new Terraform major releases can change the requirements for
plugins such that older plugins become incompatible.
Terraform checked all of the plugin versions matching the given constraint:
(any version)
Unfortunately, none of the suitable versions are compatible with this version
of Terraform. If you have recently upgraded Terraform, it may be necessary to
move to a newer major release of this provider. Alternatively, if you are
attempting to upgrade the provider to a new major version you may need to
also upgrade Terraform to support the new version.
Consult the documentation for this provider for more information on
compatibility between provider versions and Terraform versions.
Below is my vars.auto.tfvars (changing the version or omitting it doesn't help)
variable subscription_id {}
variable tenant_id {}
variable client_id {}
variable client_secret {}
provider "azurerm" {
subscription_id = "${var.subscription_id}"
tenant_id = "${var.tenant_id}"
client_id = "${var.client_id}"
client_secret = "${var.client_secret}"
version = "=1.28.0"
}
Here is what is even more interesting, this code was working a few days ago i try to run it again with no changes and its broken. I then use brew upgrade terraform and then other projects that were working no longer work.
テラフォームの初期化を乗り越えることはほとんどできません。
問題は、azurerm_public_ipの代わりにazure_public_ipを使用するタイプミスが原因で解決されました。
AzureRMTerraformプロバイダーが1.29まで0.12.xをサポートしているとは思いません。プロバイダーのバージョン制約を次のように変更します。
version = "~>1.35"
これにより、最新バージョンが取得され、そこから上に移動することもできます。AzureRMプロバイダーの変更ログへのリンクは次のとおりです。
https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/CHANGELOG.md
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加