Skip to content

[bug] E2E Terraform Test Failure in reference_architectures/foundry_basic_privateΒ #127

@github-actions

Description

@github-actions

Note

This issue was automatically created by the GitHub Actions workflow.

An error occurred during the tests for reference_architectures/foundry_basic_private ❌

Workflow Run: 18114490720

πŸ”’ Terraform Version and Platform: 1.13.3/linux_amd64

πŸ–Œ Terraform Format and Style: success βœ…

βš™οΈ Terraform Initialization: success βœ…

πŸ€– Terraform Validation: success βœ…

Show Output
Success! The configuration is valid.


Show Error

🩺 Terraform Plan Exit Code: 2

Show Output
module.application_insights.data.modtm_module_source.telemetry[0]: Reading...
module.application_insights.data.modtm_module_source.telemetry[0]: Read complete after 0s
module.ai_foundry.data.azurerm_private_dns_zone.openai[0]: Reading...
module.ai_foundry.data.azurerm_client_config.current: Reading...
module.ai_foundry.data.azurerm_private_dns_zone.cognitive[0]: Reading...
module.ai_foundry.data.azurerm_private_dns_zone.ai_services[0]: Reading...
module.ai_foundry.data.azurerm_client_config.current: Read complete after 0s [id=Y2xpZW50Q29uZmlncy9jbGllbnRJZD02NzRlNzc3MS1iYmNlLTQwMGMtOWM2OS1lMThhMTZlNDNlZDY7b2JqZWN0SWQ9ZDhlNDQyYzUtM2YzNy00MjU5LThlZWItYzQxMzhlZjg1NjM1O3N1YnNjcmlwdGlvbklkPTdhZWMzNjBiLTM1NGUtNGMzYS1iMmU2LWE2NDYyYTc0OTBiZjt0ZW5hbnRJZD0yOTdmMDg1Ny1mZWQ0LTRmNjUtOTAzOS01MWJiMDdlM2ZiMDQ=]
module.application_insights.data.azurerm_client_config.telemetry[0]: Reading...
module.application_insights.data.azurerm_client_config.telemetry[0]: Read complete after 0s [id=Y2xpZW50Q29uZmlncy9jbGllbnRJZD02NzRlNzc3MS1iYmNlLTQwMGMtOWM2OS1lMThhMTZlNDNlZDY7b2JqZWN0SWQ9ZDhlNDQyYzUtM2YzNy00MjU5LThlZWItYzQxMzhlZjg1NjM1O3N1YnNjcmlwdGlvbklkPTdhZWMzNjBiLTM1NGUtNGMzYS1iMmU2LWE2NDYyYTc0OTBiZjt0ZW5hbnRJZD0yOTdmMDg1Ny1mZWQ0LTRmNjUtOTAzOS01MWJiMDdlM2ZiMDQ=]
module.ai_foundry.data.azurerm_private_dns_zone.ai_services[0]: Read complete after 1s [id=/subscriptions/7aec360b-354e-4c3a-b2e6-a6462a7490bf/resourceGroups/rg-privateenv-hp9ss/providers/Microsoft.Network/privateDnsZones/privatelink.services.ai.azure.com]
module.ai_foundry.data.azurerm_private_dns_zone.cognitive[0]: Read complete after 1s [id=/subscriptions/7aec360b-354e-4c3a-b2e6-a6462a7490bf/resourceGroups/rg-privateenv-hp9ss/providers/Microsoft.Network/privateDnsZones/privatelink.cognitiveservices.azure.com]
module.ai_foundry.data.azurerm_private_dns_zone.openai[0]: Read complete after 1s [id=/subscriptions/7aec360b-354e-4c3a-b2e6-a6462a7490bf/resourceGroups/rg-privateenv-hp9ss/providers/Microsoft.Network/privateDnsZones/privatelink.openai.azure.com]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # azurerm_log_analytics_workspace.this will be created
  + resource "azurerm_log_analytics_workspace" "this" {
      + allow_resource_only_permissions = true
      + daily_quota_gb                  = -1
      + id                              = (known after apply)
      + internet_ingestion_enabled      = true
      + internet_query_enabled          = true
      + local_authentication_disabled   = (known after apply)
      + local_authentication_enabled    = (known after apply)
      + location                        = "swedencentral"
      + name                            = (known after apply)
      + primary_shared_key              = (sensitive value)
      + resource_group_name             = (known after apply)
      + retention_in_days               = 30
      + secondary_shared_key            = (sensitive value)
      + sku                             = "PerGB2018"
      + workspace_id                    = (known after apply)
    }

  # azurerm_resource_group.this[0] will be created
  + resource "azurerm_resource_group" "this" {
      + id       = (known after apply)
      + location = "swedencentral"
      + name     = (known after apply)
    }

  # module.ai_foundry.azapi_resource.ai_foundry will be created
  + resource "azapi_resource" "ai_foundry" {
      + body                      = {
          + identity   = {
              + type = "SystemAssigned"
            }
          + kind       = "AIServices"
          + properties = {
              + allowProjectManagement = true
              + customSubDomainName    = (known after apply)
              + disableLocalAuth       = true
              + networkAcls            = {
                  + defaultAction = "Allow"
                }
              + networkInjections      = null
              + publicNetworkAccess    = "Disabled"
            }
          + sku        = {
              + name = "S0"
            }
        }
      + id                        = (known after apply)
      + ignore_casing             = false
      + ignore_missing_property   = true
      + ignore_null_property      = false
      + location                  = "swedencentral"
      + name                      = (known after apply)
      + output                    = (known after apply)
      + parent_id                 = (known after apply)
      + schema_validation_enabled = false
      + sensitive_body            = (write-only attribute)
      + tags                      = (known after apply)
      + type                      = "Microsoft.CognitiveServices/accounts@2025-06-01"
    }

  # module.ai_foundry.azapi_resource.ai_foundry_project will be created
  + resource "azapi_resource" "ai_foundry_project" {
      + body                      = {
          + identity   = {
              + type = "SystemAssigned"
            }
          + properties = {
              + description = "Default Project description"
              + displayName = "Default Project"
            }
          + sku        = {
              + name = "S0"
            }
        }
      + id                        = (known after apply)
      + ignore_casing             = false
      + ignore_missing_property   = true
      + ignore_null_property      = false
      + location                  = "swedencentral"
      + name                      = "default-project"
      + output                    = (known after apply)
      + parent_id                 = (known after apply)
      + response_export_values    = [
          + "identity.principalId",
          + "properties.internalId",
        ]
      + schema_validation_enabled = false
      + sensitive_body            = (write-only attribute)
      + type                      = "Microsoft.CognitiveServices/accounts/projects@2025-06-01"
    }

  # module.ai_foundry.azapi_resource.appinsights_connection[0] will be created
  + resource "azapi_resource" "appinsights_connection" {
      + body                      = {
          + name       = (sensitive value)
          + properties = {
              + authType      = "ApiKey"
              + category      = "AppInsights"
              + credentials   = {
                  + key = (sensitive value)
                }
              + isSharedToAll = false
              + metadata      = {
                  + ApiType    = "Azure"
                  + ResourceId = (sensitive value)
                }
              + target        = (sensitive value)
            }
        }
      + id                        = (known after apply)
      + ignore_casing             = false
      + ignore_missing_property   = true
      + ignore_null_property      = false
      + location                  = (known after apply)
      + name                      = (sensitive value)
      + output                    = (known after apply)
      + parent_id                 = (known after apply)
      + schema_validation_enabled = false
      + sensitive_body            = (write-only attribute)
      + tags                      = (known after apply)
      + type                      = "Microsoft.CognitiveServices/accounts/projects/connections@2025-06-01"
    }

  # module.ai_foundry.azapi_resource_action.purge_ai_foundry will be created
  + resource "azapi_resource_action" "purge_ai_foundry" {
      + id               = (known after apply)
      + method           = "DELETE"
      + output           = (known after apply)
      + resource_id      = (known after apply)
      + sensitive_output = (sensitive value)
      + type             = "Microsoft.Resources/resourceGroups/deletedAccounts@2021-04-30"
      + when             = "destroy"
    }

  # module.ai_foundry.azurerm_cognitive_deployment.model_deployments["gpt-4.1"] will be created
  + resource "azurerm_cognitive_deployment" "model_deployments" {
      + cognitive_account_id   = (known after apply)
      + id                     = (known after apply)
      + name                   = "gpt-4.1"
      + version_upgrade_option = "OnceNewDefaultVersionAvailable"

      + model {
          + format  = "OpenAI"
          + name    = "gpt-4.1"
          + version = "2025-04-14"
        }

      + sku {
          + capacity = 1
          + name     = "GlobalStandard"
        }
    }

  # module.ai_foundry.azurerm_cognitive_deployment.model_deployments["o4-mini"] will be created
  + resource "azurerm_cognitive_deployment" "model_deployments" {
      + cognitive_account_id   = (known after apply)
      + id                     = (known after apply)
      + name                   = "o4-mini"
      + version_upgrade_option = "OnceNewDefaultVersionAvailable"

      + model {
          + format  = "OpenAI"
          + name    = "o4-mini"
          + version = "2025-04-16"
        }

      + sku {
          + capacity = 1
          + name     = "GlobalStandard"
        }
    }

  # module.ai_foundry.azurerm_cognitive_deployment.model_deployments["text-embedding-3-large"] will be created
  + resource "azurerm_cognitive_deployment" "model_deployments" {
      + cognitive_account_id   = (known after apply)
      + id                     = (known after apply)
      + name                   = "text-embedding-3-large"
      + version_upgrade_option = "OnceNewDefaultVersionAvailable"

      + model {
          + format  = "OpenAI"
          + name    = "text-embedding-3-large"
          + version = "1"
        }

      + sku {
          + capacity = 1
          + name     = "GlobalStandard"
        }
    }

  # module.ai_foundry.azurerm_private_endpoint.ai_foundry_pe[0] will be created
  + resource "azurerm_private_endpoint" "ai_foundry_pe" {
      + custom_dns_configs       = (known after apply)
      + id                       = (known after apply)
      + location                 = "swedencentral"
      + name                     = (known after apply)
      + network_interface        = (known after apply)
      + private_dns_zone_configs = (known after apply)
      + resource_group_name      = (known after apply)
      + subnet_id                = "/subscriptions/7aec360b-354e-4c3a-b2e6-a6462a7490bf/resourceGroups/rg-privateenv-hp9ss/providers/Microsoft.Network/virtualNetworks/vnet-privateenv-hp9ss/subnets/connections"

      + private_dns_zone_group {
          + id                   = (known after apply)
          + name                 = "default"
          + private_dns_zone_ids = [
              + "/subscriptions/7aec360b-354e-4c3a-b2e6-a6462a7490bf/resourceGroups/rg-privateenv-hp9ss/providers/Microsoft.Network/privateDnsZones/privatelink.cognitiveservices.azure.com",
              + "/subscriptions/7aec360b-354e-4c3a-b2e6-a6462a7490bf/resourceGroups/rg-privateenv-hp9ss/providers/Microsoft.Network/privateDnsZones/privatelink.services.ai.azure.com",
              + "/subscriptions/7aec360b-354e-4c3a-b2e6-a6462a7490bf/resourceGroups/rg-privateenv-hp9ss/providers/Microsoft.Network/privateDnsZones/privatelink.openai.azure.com",
            ]
        }

      + private_service_connection {
          + is_manual_connection           = false
          + name                           = (known after apply)
          + private_connection_resource_id = (known after apply)
          + private_ip_address             = (known after apply)
          + subresource_names              = [
              + "account",
            ]
        }
    }

  # module.ai_foundry.time_sleep.ai_search_connection_destroy_delay will be created
  + resource "time_sleep" "ai_search_connection_destroy_delay" {
      + destroy_duration = "60s"
      + id               = (known after apply)
    }

  # module.ai_foundry.time_sleep.wait_before_purge will be created
  + resource "time_sleep" "wait_before_purge" {
      + destroy_duration = "60s"
      + id               = (known after apply)
    }

  # module.ai_foundry.time_sleep.wait_project_identities will be created
  + resource "time_sleep" "wait_project_identities" {
      + create_duration = "10s"
      + id              = (known after apply)
    }

  # module.application_insights.azurerm_application_insights.this will be created
  + resource "azurerm_application_insights" "this" {
      + app_id                                = (known after apply)
      + application_type                      = "other"
      + connection_string                     = (sensitive value)
      + daily_data_cap_in_gb                  = 100
      + daily_data_cap_notifications_disabled = false
      + disable_ip_masking                    = false
      + force_customer_storage_for_profiler   = false
      + id                                    = (known after apply)
      + instrumentation_key                   = (sensitive value)
      + internet_ingestion_enabled            = true
      + internet_query_enabled                = true
      + local_authentication_disabled         = false
      + location                              = "swedencentral"
      + name                                  = (known after apply)
      + resource_group_name                   = (known after apply)
      + retention_in_days                     = 90
      + sampling_percentage                   = 100
      + workspace_id                          = (known after apply)
    }

  # module.application_insights.modtm_telemetry.telemetry[0] will be created
  + resource "modtm_telemetry" "telemetry" {
      + ephemeral_number = (known after apply)
      + id               = (known after apply)
      + nonce            = (known after apply)
      + tags             = {
          + "location"        = "swedencentral"
          + "module_source"   = "registry.terraform.io/Azure/avm-res-insights-component/azurerm"
          + "module_version"  = "0.2.0"
          + "random_id"       = (known after apply)
          + "subscription_id" = "7aec360b-354e-4c3a-b2e6-a6462a7490bf"
          + "tenant_id"       = "297f0857-fed4-4f65-9039-51bb07e3fb04"
        }
    }

  # module.application_insights.random_uuid.telemetry[0] will be created
  + resource "random_uuid" "telemetry" {
      + id     = (known after apply)
      + result = (known after apply)
    }

  # module.naming.random_string.first_letter will be created
  + resource "random_string" "first_letter" {
      + id          = (known after apply)
      + length      = 1
      + lower       = true
      + min_lower   = 0
      + min_numeric = 0
      + min_special = 0
      + min_upper   = 0
      + number      = false
      + numeric     = false
      + result      = (known after apply)
      + special     = false
      + upper       = false
    }

  # module.naming.random_string.main will be created
  + resource "random_string" "main" {
      + id          = (known after apply)
      + length      = 60
      + lower       = true
      + min_lower   = 0
      + min_numeric = 0
      + min_special = 0
      + min_upper   = 0
      + number      = true
      + numeric     = true
      + result      = (known after apply)
      + special     = false
      + upper       = false
    }

Plan: 18 to add, 0 to change, 0 to destroy.

Changes to Outputs:
  + ai_foundry_id                            = (known after apply)
  + ai_foundry_model_deployments_ids         = [
      + (known after apply),
      + (known after apply),
      + (known after apply),
    ]
  + ai_foundry_name                          = (known after apply)
  + ai_foundry_project_id                    = (known after apply)
  + ai_foundry_project_identity_principal_id = (known after apply)
  + ai_foundry_project_name                  = "default-project"
  + application_insights_id                  = (known after apply)
  + log_analytics_workspace_id               = (known after apply)
  + resource_group_id                        = (known after apply)
  + resource_group_name                      = (known after apply)

Show Error

πŸ“– Terraform Plan: success βœ…

Show Output

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+   create

Terraform will perform the following actions:

  # azurerm_log_analytics_workspace.this will be created
+   resource "azurerm_log_analytics_workspace" "this" {
+       allow_resource_only_permissions = true
+       daily_quota_gb                  = -1
+       id                              = (known after apply)
+       internet_ingestion_enabled      = true
+       internet_query_enabled          = true
+       local_authentication_disabled   = (known after apply)
+       local_authentication_enabled    = (known after apply)
+       location                        = "swedencentral"
+       name                            = (known after apply)
+       primary_shared_key              = (sensitive value)
+       resource_group_name             = (known after apply)
+       retention_in_days               = 30
+       secondary_shared_key            = (sensitive value)
+       sku                             = "PerGB2018"
+       workspace_id                    = (known after apply)
    }

  # azurerm_resource_group.this[0] will be created
+   resource "azurerm_resource_group" "this" {
+       id       = (known after apply)
+       location = "swedencentral"
+       name     = (known after apply)
    }

  # module.ai_foundry.azapi_resource.ai_foundry will be created
+   resource "azapi_resource" "ai_foundry" {
+       body                      = {
+           identity   = {
+               type = "SystemAssigned"
            }
+           kind       = "AIServices"
+           properties = {
+               allowProjectManagement = true
+               customSubDomainName    = (known after apply)
+               disableLocalAuth       = true
+               networkAcls            = {
+                   defaultAction = "Allow"
                }
+               networkInjections      = null
+               publicNetworkAccess    = "Disabled"
            }
+           sku        = {
+               name = "S0"
            }
        }
+       id                        = (known after apply)
+       ignore_casing             = false
+       ignore_missing_property   = true
+       ignore_null_property      = false
+       location                  = "swedencentral"
+       name                      = (known after apply)
+       output                    = (known after apply)
+       parent_id                 = (known after apply)
+       schema_validation_enabled = false
+       sensitive_body            = (write-only attribute)
+       tags                      = (known after apply)
+       type                      = "Microsoft.CognitiveServices/accounts@2025-06-01"
    }

  # module.ai_foundry.azapi_resource.ai_foundry_project will be created
+   resource "azapi_resource" "ai_foundry_project" {
+       body                      = {
+           identity   = {
+               type = "SystemAssigned"
            }
+           properties = {
+               description = "Default Project description"
+               displayName = "Default Project"
            }
+           sku        = {
+               name = "S0"
            }
        }
+       id                        = (known after apply)
+       ignore_casing             = false
+       ignore_missing_property   = true
+       ignore_null_property      = false
+       location                  = "swedencentral"
+       name                      = "default-project"
+       output                    = (known after apply)
+       parent_id                 = (known after apply)
+       response_export_values    = [
+           "identity.principalId",
+           "properties.internalId",
        ]
+       schema_validation_enabled = false
+       sensitive_body            = (write-only attribute)
+       type                      = "Microsoft.CognitiveServices/accounts/projects@2025-06-01"
    }

  # module.ai_foundry.azapi_resource.appinsights_connection[0] will be created
+   resource "azapi_resource" "appinsights_connection" {
+       body                      = {
+           name       = (sensitive value)
+           properties = {
+               authType      = "ApiKey"
+               category      = "AppInsights"
+               credentials   = {
+                   key = (sensitive value)
                }
+               isSharedToAll = false
+               metadata      = {
+                   ApiType    = "Azure"
+                   ResourceId = (sensitive value)
                }
+               target        = (sensitive value)
            }
        }
+       id                        = (known after apply)
+       ignore_casing             = false
+       ignore_missing_property   = true
+       ignore_null_property      = false
+       location                  = (known after apply)
+       name                      = (sensitive value)
+       output                    = (known after apply)
+       parent_id                 = (known after apply)
+       schema_validation_enabled = false
+       sensitive_body            = (write-only attribute)
+       tags                      = (known after apply)
+       type                      = "Microsoft.CognitiveServices/accounts/projects/connections@2025-06-01"
    }

  # module.ai_foundry.azapi_resource_action.purge_ai_foundry will be created
+   resource "azapi_resource_action" "purge_ai_foundry" {
+       id               = (known after apply)
+       method           = "DELETE"
+       output           = (known after apply)
+       resource_id      = (known after apply)
+       sensitive_output = (sensitive value)
+       type             = "Microsoft.Resources/resourceGroups/deletedAccounts@2021-04-30"
+       when             = "destroy"
    }

  # module.ai_foundry.azurerm_cognitive_deployment.model_deployments["gpt-4.1"] will be created
+   resource "azurerm_cognitive_deployment" "model_deployments" {
+       cognitive_account_id   = (known after apply)
+       id                     = (known after apply)
+       name                   = "gpt-4.1"
+       version_upgrade_option = "OnceNewDefaultVersionAvailable"

+       model {
+           format  = "OpenAI"
+           name    = "gpt-4.1"
+           version = "2025-04-14"
        }

+       sku {
+           capacity = 1
+           name     = "GlobalStandard"
        }
    }

  # module.ai_foundry.azurerm_cognitive_deployment.model_deployments["o4-mini"] will be created
+   resource "azurerm_cognitive_deployment" "model_deployments" {
+       cognitive_account_id   = (known after apply)
+       id                     = (known after apply)
+       name                   = "o4-mini"
+       version_upgrade_option = "OnceNewDefaultVersionAvailable"

+       model {
+           format  = "OpenAI"
+           name    = "o4-mini"
+           version = "2025-04-16"
        }

+       sku {
+           capacity = 1
+           name     = "GlobalStandard"
        }
    }

  # module.ai_foundry.azurerm_cognitive_deployment.model_deployments["text-embedding-3-large"] will be created
+   resource "azurerm_cognitive_deployment" "model_deployments" {
+       cognitive_account_id   = (known after apply)
+       id                     = (known after apply)
+       name                   = "text-embedding-3-large"
+       version_upgrade_option = "OnceNewDefaultVersionAvailable"

+       model {
+           format  = "OpenAI"
+           name    = "text-embedding-3-large"
+           version = "1"
        }

+       sku {
+           capacity = 1
+           name     = "GlobalStandard"
        }
    }

  # module.ai_foundry.azurerm_private_endpoint.ai_foundry_pe[0] will be created
+   resource "azurerm_private_endpoint" "ai_foundry_pe" {
+       custom_dns_configs       = (known after apply)
+       id                       = (known after apply)
+       location                 = "swedencentral"
+       name                     = (known after apply)
+       network_interface        = (known after apply)
+       private_dns_zone_configs = (known after apply)
+       resource_group_name      = (known after apply)
+       subnet_id                = "/subscriptions/7aec360b-354e-4c3a-b2e6-a6462a7490bf/resourceGroups/rg-privateenv-hp9ss/providers/Microsoft.Network/virtualNetworks/vnet-privateenv-hp9ss/subnets/connections"

+       private_dns_zone_group {
+           id                   = (known after apply)
+           name                 = "default"
+           private_dns_zone_ids = [
+               "/subscriptions/7aec360b-354e-4c3a-b2e6-a6462a7490bf/resourceGroups/rg-privateenv-hp9ss/providers/Microsoft.Network/privateDnsZones/privatelink.cognitiveservices.azure.com",
+               "/subscriptions/7aec360b-354e-4c3a-b2e6-a6462a7490bf/resourceGroups/rg-privateenv-hp9ss/providers/Microsoft.Network/privateDnsZones/privatelink.services.ai.azure.com",
+               "/subscriptions/7aec360b-354e-4c3a-b2e6-a6462a7490bf/resourceGroups/rg-privateenv-hp9ss/providers/Microsoft.Network/privateDnsZones/privatelink.openai.azure.com",
            ]
        }

+       private_service_connection {
+           is_manual_connection           = false
+           name                           = (known after apply)
+           private_connection_resource_id = (known after apply)
+           private_ip_address             = (known after apply)
+           subresource_names              = [
+               "account",
            ]
        }
    }

  # module.ai_foundry.time_sleep.ai_search_connection_destroy_delay will be created
+   resource "time_sleep" "ai_search_connection_destroy_delay" {
+       destroy_duration = "60s"
+       id               = (known after apply)
    }

  # module.ai_foundry.time_sleep.wait_before_purge will be created
+   resource "time_sleep" "wait_before_purge" {
+       destroy_duration = "60s"
+       id               = (known after apply)
    }

  # module.ai_foundry.time_sleep.wait_project_identities will be created
+   resource "time_sleep" "wait_project_identities" {
+       create_duration = "10s"
+       id              = (known after apply)
    }

  # module.application_insights.azurerm_application_insights.this will be created
+   resource "azurerm_application_insights" "this" {
+       app_id                                = (known after apply)
+       application_type                      = "other"
+       connection_string                     = (sensitive value)
+       daily_data_cap_in_gb                  = 100
+       daily_data_cap_notifications_disabled = false
+       disable_ip_masking                    = false
+       force_customer_storage_for_profiler   = false
+       id                                    = (known after apply)
+       instrumentation_key                   = (sensitive value)
+       internet_ingestion_enabled            = true
+       internet_query_enabled                = true
+       local_authentication_disabled         = false
+       location                              = "swedencentral"
+       name                                  = (known after apply)
+       resource_group_name                   = (known after apply)
+       retention_in_days                     = 90
+       sampling_percentage                   = 100
+       workspace_id                          = (known after apply)
    }

  # module.application_insights.modtm_telemetry.telemetry[0] will be created
+   resource "modtm_telemetry" "telemetry" {
+       ephemeral_number = (known after apply)
+       id               = (known after apply)
+       nonce            = (known after apply)
+       tags             = {
+           "location"        = "swedencentral"
+           "module_source"   = "registry.terraform.io/Azure/avm-res-insights-component/azurerm"
+           "module_version"  = "0.2.0"
+           "random_id"       = (known after apply)
+           "subscription_id" = "7aec360b-354e-4c3a-b2e6-a6462a7490bf"
+           "tenant_id"       = "297f0857-fed4-4f65-9039-51bb07e3fb04"
        }
    }

  # module.application_insights.random_uuid.telemetry[0] will be created
+   resource "random_uuid" "telemetry" {
+       id     = (known after apply)
+       result = (known after apply)
    }

  # module.naming.random_string.first_letter will be created
+   resource "random_string" "first_letter" {
+       id          = (known after apply)
+       length      = 1
+       lower       = true
+       min_lower   = 0
+       min_numeric = 0
+       min_special = 0
+       min_upper   = 0
+       number      = false
+       numeric     = false
+       result      = (known after apply)
+       special     = false
+       upper       = false
    }

  # module.naming.random_string.main will be created
+   resource "random_string" "main" {
+       id          = (known after apply)
+       length      = 60
+       lower       = true
+       min_lower   = 0
+       min_numeric = 0
+       min_special = 0
+       min_upper   = 0
+       number      = true
+       numeric     = true
+       result      = (known after apply)
+       special     = false
+       upper       = false
    }

Plan: 18 to add, 0 to change, 0 to destroy.

Changes to Outputs:
+   ai_foundry_id                            = (known after apply)
+   ai_foundry_model_deployments_ids         = [
+       (known after apply),
+       (known after apply),
+       (known after apply),
    ]
+   ai_foundry_name                          = (known after apply)
+   ai_foundry_project_id                    = (known after apply)
+   ai_foundry_project_identity_principal_id = (known after apply)
+   ai_foundry_project_name                  = "default-project"
+   application_insights_id                  = (known after apply)
+   log_analytics_workspace_id               = (known after apply)
+   resource_group_id                        = (known after apply)
+   resource_group_name                      = (known after apply)

🩺 Terraform Test Exit Code: 1

Show Error

Error: creating/updating Virtual Network Link (Subscription: "7aec360b-354e-4c3a-b2e6-a6462a7490bf"
Resource Group Name: "rg-fbscprv-s684h"
Private Dns Zone Name: "privatelink.services.ai.azure.com"
Virtual Network Link Name: "pdns-fbscprv-s684h-ai-services-link"): polling after CreateOrUpdate: polling failed: the Azure API returned the following error:

Status: "Unknown"
Code: "internal-error"
Message: "Couldn't parse Azure API Response into a friendly error - please see the original HTTP Response for more details (and file a bug so we can fix this!)."
Activity Id: ""

---

API Response:

----[start]----
{"error":{"code":"InternalServerError","message":""},"status":"Failed"}
-----[end]-----


  with azurerm_private_dns_zone_virtual_network_link.ai_services,
  on tests/integration/setup/main.tf line 46, in resource "azurerm_private_dns_zone_virtual_network_link" "ai_services":
  46: resource "azurerm_private_dns_zone_virtual_network_link" "ai_services" {

Terraform encountered an error destroying resources created while executing
tests/integration/test.tftest.hcl/setup.

Error: deleting Private Dns Zone (Subscription: "7aec360b-354e-4c3a-b2e6-a6462a7490bf"
Resource Group Name: "rg-fbscprv-s684h"
Private Dns Zone Name: "privatelink.services.ai.azure.com"): performing Delete: unexpected status 409 (409 Conflict) with error: CannotDeleteResource: Cannot delete resource while nested resources exist. Some existing nested resource IDs include: 'Microsoft.Network/privateDnsZones/privatelink.services.ai.azure.com/virtualNetworkLinks/pdns-fbscprv-s684h-ai-services-link'. Please delete all nested resources before deleting this resource.


Terraform left the following resources in state after executing
tests/integration/test.tftest.hcl/setup, and they need to be cleaned up
manually:
  - azurerm_private_dns_zone.ai_services
  - azurerm_resource_group.this
  - module.naming.random_string.first_letter
  - module.naming.random_string.main
task: Failed to run task "tf:test:int": exit status 1

πŸ§ͺ Terraform Test: failure πŸ›‘

Show Output
Initializing the backend...
Upgrading modules...
- ai_foundry in ../../modules/ai_foundry
Downloading registry.terraform.io/Azure/avm-res-insights-component/azurerm 0.2.0 for application_insights...
- application_insights in .terraform/modules/application_insights
- common_models in ../../modules/common_models
Downloading registry.terraform.io/Azure/naming/azurerm 0.4.2 for naming...
- naming in .terraform/modules/naming
- test.tests.integration.test.setup in tests/integration/setup
Downloading registry.terraform.io/Azure/naming/azurerm 0.4.2 for test.tests.integration.test.setup.naming...
- test.tests.integration.test.setup.naming in .terraform/modules/test.tests.integration.test.setup.naming
Initializing provider plugins...
- Finding hashicorp/azurerm versions matching ">= 3.71.0, ~> 4.40, < 5.0.0"...
- Finding azure/azapi versions matching "~> 2.4, ~> 2.6, < 3.0.0"...
- Finding hashicorp/random versions matching ">= 3.3.2, ~> 3.5, ~> 3.7"...
- Finding hashicorp/time versions matching "~> 0.13"...
- Finding azure/modtm versions matching "~> 0.3"...
- Using previously-installed hashicorp/azurerm v4.46.0
- Using previously-installed azure/azapi v2.6.1
- Using previously-installed hashicorp/random v3.7.2
- Using previously-installed hashicorp/time v0.13.1
- Using previously-installed azure/modtm v0.3.5

Terraform has been successfully initialized!
tests/integration/test.tftest.hcl... in progress
  run "setup"... fail
  run "testint_foundry_basic_private_comprehensive"... skip
tests/integration/test.tftest.hcl... tearing down
tests/integration/test.tftest.hcl... fail

Failure! 0 passed, 1 failed, 1 skipped.
::error::Terraform exited with code 1.

Pusher: @microsoft/caira-mtain, Action: schedule, Working Directory: reference_architectures/foundry_basic_private, Workflow: Terraform Test

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions