在门户网站.azure.com,i 为地形建立了新的评估登记,并建立了证书和办公室;秘密。 该表由云层申请管理员发挥作用。 我正试图利用这一工具来管理我的梯式文字。
我有以下地形法:
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = ">=3.53.0"
}
azapi = {
source = "azure/azapi"
}
}
}
provider "azurerm" {
features {}
subscription_id = "<subscription_id>"
client_id = "<client_id>"
client_secret = "<client_secret>"
tenant_id = "<tenant_id>"
}
provider "azapi" {
subscription_id = "<subscription_id>"
client_id = "<client_id>"
client_secret = "<client_secret>"
tenant_id = "<tenant_id>"
use_cli = true
}
然后是terraform plan
,即正在形成的
│ Error: building account: could not acquire access token to parse claims: clientCredentialsToken: cannot request token: Post "https://login.microsoftonline.com/8e7e5486-6e11-48bf-9cca-ef5fd4205af3/oauth2/v2.0/token": POST https://login.microsoftonline.com/8e7e5486-6e11-48bf-9cca-ef5fd4205af3/oauth2/v2.0/token giving up after 5 attempt(s): Post "https://login.microsoftonline.com/8e7e5486-6e11-48bf-9cca-ef5fd4205af3/oauth2/v2.0/token": dial tcp: lookup login.microsoftonline.com on 127.0.0.11:53: server misbehaving
│
│ with provider["registry.terraform.io/hashicorp/azurerm"],
│ on providers.tf line 13, in provider "azurerm":
│ 13: provider "azurerm" {
我不清楚这个问题是什么。 我在座右边是VSCode(我的环境被cker弄)。