Azure / aca-landing-zone-accelerator

The Azure Container Apps landing zone accelerator is an open-source collection of architectural guidance and reference implementation to accelerate deployment of Azure Container Apps at scale.
https://aka.ms/aca-lza
MIT License
171 stars 81 forks source link

cannot create private endpoints for kv and acr in the terraform demo #140

Open victorgu-github opened 2 months ago

victorgu-github commented 2 months ago

Hi there,

I am going through the demo aca-internal using terraform at https://github.com/Azure/aca-landing-zone-accelerator/blob/main/scenarios/aca-internal/terraform/README.md

there is a critical error in 03-supporting-services. the error msg is llke below. i am working on the fix now. will check in PR asap.

│ Error: creating Private Endpoint (Subscription: "c7936011-6c67-4e5d-b9c2-a2fafe6ce3e3" │ Resource Group Name: "rg-victoraca-spoke-dev-eus" │ Private Endpoint Name: "pep-kv-victoraca-sAdxN-dev-eus"): performing CreateOrUpdate: unexpected status 400 (400 Bad Request) with error: InvalidResourceReference: Resource /subscriptions/c7936011-6c67-4e5d-b9c2-a2fafe6ce3e3/resourceGroups/RG-VICTORACA-SPOKE-DEV-EUS/providers/Microsoft.Network/virtualNetworks/VNET-VICTORACA-DEV-EUS-SPOKE referenced by resource /subscriptions/c7936011-6c67-4e5d-b9c2-a2fafe6ce3e3/resourceGroups/rg-victoraca-spoke-dev-eus/providers/Microsoft.Network/privateEndpoints/pep-kv-victoraca-sAdxN-dev-eus was not found. Please make sure that the referenced resource exists, and that both resources are in the same region. │ │ with module.keyVault.module.keyVaultPrivateEndpoints.azurerm_private_endpoint.pe, │ on ../../../../shared/terraform/modules/networking/private-endpoints/main.tf line 1, in resource "azurerm_private_endpoint" "pe": │ 1: resource "azurerm_private_endpoint" "pe" { │ ╵ ╷ │ Error: creating Private Endpoint (Subscription: "c7936011-6c67-4e5d-b9c2-a2fafe6ce3e3" │ Resource Group Name: "rg-victoraca-spoke-dev-eus" │ Private Endpoint Name: "pep-crvictoracasadxndeveus"): performing CreateOrUpdate: unexpected status 400 (400 Bad Request) with error: InvalidResourceReference: Resource /subscriptions/c7936011-6c67-4e5d-b9c2-a2fafe6ce3e3/resourceGroups/RG-VICTORACA-SPOKE-DEV-EUS/providers/Microsoft.Network/virtualNetworks/VNET-VICTORACA-DEV-EUS-SPOKE referenced by resource /subscriptions/c7936011-6c67-4e5d-b9c2-a2fafe6ce3e3/resourceGroups/rg-victoraca-spoke-dev-eus/providers/Microsoft.Network/privateEndpoints/pep-crvictoracasadxndeveus was not found. Please make sure that the referenced resource exists, and that both resources are in the same region. │ │ with module.containerRegistry.module.containerRegistryPrivateEndpoints.azurerm_private_endpoint.pe, │ on ../../../../shared/terraform/modules/networking/private-endpoints/main.tf line 1, in resource "azurerm_private_endpoint" "pe": │ 1: resource "azurerm_private_endpoint" "pe" {