Azure-docs: Issue with hub-nva-nic & subnet_route_table_association

Created on 29 May 2019  Â·  4Comments  Â·  Source: MicrosoftDocs/azure-docs

Seem to be running into errors of "InvalidResourceReference" with regards to the hub-nva-nic.

Also getting an error around associating the Route Table for the GatewaySubnet.

I change nothing about the code, save for the locations to "CanadaCentral" for everything.

2 errors occurred:
* azurerm_network_interface.hub-nva-nic: 1 error occurred:
* azurerm_network_interface.hub-nva-nic: network.InterfacesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidResourceReference" Message="Resource /subscriptions/9d67c9ef-deeb-4f5b-86d9-a9c9486c4741/resourceGroups/hub-vnet-rg/providers/Microsoft.Network/virtualNetworks/hub-vnet/subnets/dmz referenced by resource /subscriptions/9d67c9ef-deeb-4f5b-86d9-a9c9486c4741/resourceGroups/hub-nva-rg/providers/Microsoft.Network/networkInterfaces/hub-nva-nic was not found. Please make sure that the referenced resource exists, and that both
resources are in the same region." Details=[]

    * azurerm_subnet_route_table_association.hub-gateway-rt-hub-vnet-gateway-subnet: 1 error occurred:
    * azurerm_subnet_route_table_association.hub-gateway-rt-hub-vnet-gateway-subnet: Error updating Route Table Association for Subnet "GatewaySubnet" (Virtual Network "hub-vnet" / Resource Group "hub-vnet-rg"): network.SubnetsClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidResourceReference" Message="Resource /subscriptions/9d67c9ef-deeb-4f5b-86d9-a9c9486c4741/resourceGroups/HUB-NVA-RG/providers/Microsoft.Network/routeTables/HUB-GATEWAY-RT referenced by resource /subscriptions/9d67c9ef-deeb-4f5b-86d9-a9c9486c4741/resourceGroups/hub-vnet-rg/providers/Microsoft.Network/virtualNetworks/hub-vnet/subnets/GatewaySubnet was not found. Please make sure that the referenced resource exists, and that both resources are in the same region." Details=[{"code":"NotFound","message":"Resource /subscriptions/9d67c9ef-deeb-4f5b-86d9-a9c9486c4741/resourceGroups/HUB-NVA-RG/providers/Microsoft.Network/routeTables/HUB-GATEWAY-RT not found."}]

Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

azursvc cxp product-question resolved-by-customer triaged

All 4 comments

2 errors occurred:
* azurerm_network_interface.hub-nva-nic: 1 error occurred:
* azurerm_network_interface.hub-nva-nic: network.InterfacesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidResourceReference" Message="Resource /subscriptions/9d67c9ef-deeb-4f5b-86d9-a9c9486c4741/resourceGroups/hub-vnet-rg/providers/Microsoft.Network/virtualNetworks/hub-vnet/subnets/dmz referenced by resource /subscriptions/9d67c9ef-deeb-4f5b-86d9-a9c9486c4741/resourceGroups/hub-nva-rg/providers/Microsoft.Network/networkInterfaces/hub-nva-nic was not found. Please make sure that the referenced resource exists, and that both
resources are in the same region."

    * azurerm_subnet_route_table_association.hub-gateway-rt-hub-vnet-gateway-subnet: 1 error occurred:
    * azurerm_subnet_route_table_association.hub-gateway-rt-hub-vnet-gateway-subnet: Error updating Route Table Association for Subnet "GatewaySubnet" (Virtual Network "hub-vnet" / Resource Group "hub-vnet-rg"): network.SubnetsClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidResourceReference" Message="Resource /subscriptions/9d67c9ef-deeb-4f5b-86d9-a9c9486c4741/resourceGroups/HUB-NVA-RG/providers/Microsoft.Network/routeTables/HUB-GATEWAY-RT referenced by resource /subscriptions/9d67c9ef-deeb-4f5b-86d9-a9c9486c4741/resourceGroups/hub-vnet-rg/providers/Microsoft.Network/virtualNetworks/hub-vnet/subnets/GatewaySubnet was not found. Please make sure that the referenced resource exists, and that both resources are in the same region." Details=[{"code":"NotFound","message":"Resource /subscriptions/9d67c9ef-deeb-4f5b-86d9-a9c9486c4741/resourceGroups/HUB-NVA-RG/providers/Microsoft.Network/routeTables/HUB-GATEWAY-RT not found."}]

@paddyhitch Thanks for taking time to report this issue. Can you please provide the repro steps and whether you followed all the mentioned sub articles in the right order.

@VaijanathB - thanks for responding. I was able to figure out what went wrong. Somehow I fat-fingered a location. All fixed, tested & confirmed. Cheers!

Can close this issue.

@paddyhitch Glad to know that the issue is self resolved. Closing this issue for now. If there are further questions regarding this matter, please reply and we will gladly continue the discussion.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Ponant picture Ponant  Â·  3Comments

ianpowell2017 picture ianpowell2017  Â·  3Comments

DeepPuddles picture DeepPuddles  Â·  3Comments

Favna picture Favna  Â·  3Comments

JamesDLD picture JamesDLD  Â·  3Comments