首页 > 解决方案 > terraform-azure 网络接口错误

问题描述

我需要一些有关创建网络接口 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 个错误:

标签: azurenetworkingterraform

解决方案


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

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

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


推荐阅读