christophetd / Adaz

:wrench: Deploy customizable Active Directory labs in Azure - automatically.
https://blog.christophetd.fr/automating-the-provisioning-of-active-directory-labs-in-azure/
410 stars 84 forks source link

More errors while trying to create. Created a lab, didn't work properly so deleted and tried again. #22

Closed rusticrajp closed 4 years ago

rusticrajp commented 4 years ago
azurerm_virtual_machine.workstation[0]: Refreshing state... [id=/subscriptions/2f8c4cef-a6a5-473a-8535-ce9d5100f158/resourceGroups/ad-hunting-lab/providers/Microsoft.Compute/virtualMachines/XTOF-WKS]
azurerm_virtual_machine.workstation[1]: Refreshing state... [id=/subscriptions/2f8c4cef-a6a5-473a-8535-ce9d5100f158/resourceGroups/ad-hunting-lab/providers/Microsoft.Compute/virtualMachines/DANY-WKS]
azurerm_virtual_machine.es_kibana: Refreshing state... [id=/subscriptions/2f8c4cef-a6a5-473a-8535-ce9d5100f158/resourceGroups/ad-hunting-lab/providers/Microsoft.Compute/virtualMachines/es-kibana]
azurerm_virtual_machine.dc: Refreshing state... [id=/subscriptions/2f8c4cef-a6a5-473a-8535-ce9d5100f158/resourceGroups/ad-hunting-lab/providers/Microsoft.Compute/virtualMachines/domain-controller]

Error: Network Interface "ad-lab-nic" (Resource Group "ad-hunting-lab") was not found!

Error: Network Interface "es-kibana-nic" (Resource Group "ad-hunting-lab") was not found!

Error: Network Interface "ad-lab-wks-1-nic" (Resource Group "ad-hunting-lab") was not found!

Error: Network Interface "ad-lab-wks-0-nic" (Resource Group "ad-hunting-lab") was not found!

Error: Invalid index

  on data.tf line 9, in data "azurerm_public_ip" "workstation":
   9:   name = azurerm_public_ip.workstation[count.index].name
    |----------------
    | azurerm_public_ip.workstation is empty tuple
    | count.index is 0

The given key does not identify an element in this collection value.

Error: Invalid index

  on data.tf line 9, in data "azurerm_public_ip" "workstation":
   9:   name = azurerm_public_ip.workstation[count.index].name
    |----------------
    | azurerm_public_ip.workstation is empty tuple
    | count.index is 1

The given key does not identify an element in this collection value.

Error: Invalid index

  on outputs.tf line 23, in output "what_next":
  23: xfreerdp /v:${azurerm_public_ip.workstation[0].ip_address} /u:${local.domain.default_local_admin.username} '/p:${local.domain.default_local_admin.password}' +clipboard /cert-ignore
    |----------------
    | azurerm_public_ip.workstation is empty tuple

The given key does not identify an element in this collection value.

prajganesh@DESKTOP-I8M1347:~/Adaz/terraform$
christophetd commented 4 years ago

To delete the lab, make sure to follow what's indicated in the Destroying the lab documentation before recreating it