【问题标题】:terraform-azure network interfaces errorterraform-azure 网络接口错误
【发布时间】:2018-12-15 10:55:58
【问题描述】:

我需要一些有关创建网络接口 azure terraform 的帮助。我在配置它们时遇到错误。如果我做错了什么,请帮助我。

错误: azurerm_network_interface.revproxy-1:network.InterfacesClient#CreateOrUpdate:发送请求失败:StatusCode=400 -- 原始错误:Code="IpConfigDeleteNotSupported" Message="IP Configuration dataname-1-configuration cannot be deleted. Delete and rename of primary IP Configuration不支持”详细信息=[] * azurerm_network_interface.core-1:发生 1 个错误:

【问题讨论】:

  • 资源 "azurerm_network_interface" "revproxy-1" { name = "${var.rg_name}-interface" location = "${var.rg_region}" resource_group_name = "${var.rg_name}" ip_configuration { name = "revproxy-1-configuration" subnet_id = "${azurerm_subnet.reverse_proxy.id}" private_ip_address_allocation = "dynamic" } }
  • 编辑您的问题以包含任何其他相关信息,而不是将其发布在 cmets 中。

标签: azure networking terraform


【解决方案1】:

如果我们有以下形式的其他信息会有所帮助:

  1. 用于部署基础架构的完整 Terraform 脚本(不仅仅是网络接口部分,因为它依赖于先前创建但不存在于 cmets 中提供的脚本中的资源)。
  2. 导致此错误的步骤。

听起来有一个多步骤过程导致了这个错误。引用“dataname-1-configuration”但脚本中不存在该名称的错误导致人们相信该错误存在于多步骤过程中。但是,我们肯定是错的,以上信息将有助于理解这一点。

【讨论】:

    猜你喜欢
    • 2018-07-11
    • 1970-01-01
    • 2020-05-13
    • 2012-05-01
    • 2021-05-15
    • 1970-01-01
    • 2021-08-17
    • 2021-03-21
    • 1970-01-01
    相关资源
    最近更新 更多