没有可用的提供程序 "azure" 插件与此 Terraform 版本兼容。 Azurerm -1.28 地形 -
No available provider "azure" plugins are compatible with this Terraform version. Azurerm -1.28 Terraform -
我的环境在 OSX 上看起来像下面这样。
NJ033-10126375:旧示例 10126375$ terraform 版本
地形 v0.12.10
+ provider.azurerm v1.28.0
+ provider.random v2.2.1
编辑: 当我 运行 terraform providers
我得到以下
.
├── provider.azure
├── provider.azurerm ~>1.35
└── provider.random
我在 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.
以下是我的vars.auto.tfvars(更改版本或省略版本都无济于事)
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"
}
更有趣的是,这段代码在几天前工作,我尝试再次 运行 它,没有任何更改,但它已损坏。然后我使用 brew upgrade terraform 然后其他正在运行的项目不再运行。
我几乎无法通过 terraform init。
问题已解决 这是由于使用 azure_public_ip 而不是 [=43 的拼写错误=].
我认为 AzureRM Terraform 提供程序不支持 0。12.x 直到 1.29。将您的提供商版本限制更改为:
version = "~>1.35"
这将为您提供最新版本,并且还可以从那里升级。这是 AzureRM 提供程序更改日志的link。
https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/CHANGELOG.md
我的环境在 OSX 上看起来像下面这样。
NJ033-10126375:旧示例 10126375$ terraform 版本 地形 v0.12.10 + provider.azurerm v1.28.0 + provider.random v2.2.1
编辑: 当我 运行 terraform providers
我得到以下
.
├── provider.azure
├── provider.azurerm ~>1.35
└── provider.random
我在 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.
以下是我的vars.auto.tfvars(更改版本或省略版本都无济于事)
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"
}
更有趣的是,这段代码在几天前工作,我尝试再次 运行 它,没有任何更改,但它已损坏。然后我使用 brew upgrade terraform 然后其他正在运行的项目不再运行。
我几乎无法通过 terraform init。
问题已解决 这是由于使用 azure_public_ip 而不是 [=43 的拼写错误=].
我认为 AzureRM Terraform 提供程序不支持 0。12.x 直到 1.29。将您的提供商版本限制更改为:
version = "~>1.35"
这将为您提供最新版本,并且还可以从那里升级。这是 AzureRM 提供程序更改日志的link。
https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/CHANGELOG.md