Skip to content

AADScenario greenfield - pe-filedns-zone, hub vnet, and infra vnet are not being created #804

@MSMikeP

Description

@MSMikeP

Is there an existing issue for this?

  • I have searched the existing issues

Greenfield/Brownfield provisioning

greenfield

Terraform Version

1.7.0

Module Version

Not sure what you mean - I'm using avdaccelerator cloned from commit f8e0ac6 if that helps

AzureRM Provider Version

3.117.1

Affected Resource(s)/Data Source(s)

module.network.data.azurerm_virtual_network.identity, module.network.data.azurerm_virtual_network.remote, data.azurerm_private_dns_zone.pe-vaultdns-zone, data.azurerm_virtual_network.remote, data.azurerm_private_dns_zone.pe-filedns-zone,

Terraform Configuration Files

* Renamed `\avdaccelerator\workload\terraform\greenfield\AADscenario\terraform.tfvars.sample` to `terraform.auto.tfvars`

tfvars variables values

* `\avdaccelerator\workload\terraform\greenfield\AADscenario\terraform.auto.tfvars` `aad_group_name` set to "MikeP_AVDTest_Grp" (I created the group manually in the test tenants)
* `spoke_subscription_id`, `hub_subscription_id`, `identity_subscription_id`, and `avdshared_subscription_id` were all changed to the GUID for the test subscriptions I used

Debug Output/Panic Output

│ Error: Private Dns Zone (Subscription: "subscription-guid-here"
│ Resource Group Name: "rg-privatedns"
│ Private Dns Zone Name: "privatelink.file.core.windows.net") was not found
│
│   with data.azurerm_private_dns_zone.pe-filedns-zone,
│   on afstorage.tf line 58, in data "azurerm_private_dns_zone" "pe-filedns-zone":
│   58: data "azurerm_private_dns_zone" "pe-filedns-zone" {
│
╵
╷
│ Error: Virtual Network (Subscription: "subscription-guid-here"
│ Resource Group Name: "vnethub-eastus"
│ Virtual Network Name: "hub-eastus") was not found
│
│   with data.azurerm_virtual_network.remote,
│   on data.tf line 5, in data "azurerm_virtual_network" "remote":
│    5: data "azurerm_virtual_network" "remote" {
│
╵
╷
│ Error: Private Dns Zone (Subscription: "subscription-guid-here"
│ Resource Group Name: "rg-privatedns"
│ Private Dns Zone Name: "privatelink.vaultcore.azure.net") was not found
│
│   with data.azurerm_private_dns_zone.pe-vaultdns-zone,
│   on data.tf line 52, in data "azurerm_private_dns_zone" "pe-vaultdns-zone":
│   52: data "azurerm_private_dns_zone" "pe-vaultdns-zone" {
│
╵
╷
│ Error: Virtual Network (Subscription: "subscription-guid-here"
│ Resource Group Name: "vnethub-eastus"
│ Virtual Network Name: "hub-eastus") was not found
│
│   with module.network.data.azurerm_virtual_network.remote,
│   on ..\..\modules\network\data.tf line 5, in data "azurerm_virtual_network" "remote":
│    5: data "azurerm_virtual_network" "remote" {
│
╵
╷
│ Error: Virtual Network (Subscription: "subscription-guid-here"
│ Resource Group Name: "infra-rg"
│ Virtual Network Name: "infra-network") was not found
│
│   with module.network.data.azurerm_virtual_network.identity,
│   on ..\..\modules\network\data.tf line 11, in data "azurerm_virtual_network" "identity":
│   11: data "azurerm_virtual_network" "identity" {
│

Expected Behaviour

AVD Accelerator should create the network resources and use them to complete the deployment

Actual Behaviour

The error is thrown as above

Steps to Reproduce

  1. Run az login --tenant tenant-guid-goes-here (occurs in both an MSDN benefit tenant and BAMI Field-Facing tenant)
  2. Authenticate via normal interactive prompts
  3. Select the test subscription where I have Owner rights (in both test cases, it's an empty and unused subscription)
  4. Clone the avdaccelerator repo
  5. Rename the tfvars file as stated and populate the aad_group_name and subscription_id variables as stated
  6. Run terraform init
  7. Run terraform plan

Important Factoids

No response

References

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions