Having issues deploying a packer windows image with my virtual network info. This is the error i am getting
==> Some builds didn't complete successfully and had errors:
--> azure-arm: Code="DeploymentFailed" Message="At least one resource deployment operation failed. Please list deployment operations for details. Please see
https://aka.ms/arm-debug for usage details." Detail
s=[{"code":"BadRequest","message":"{\r\n \"error\": {\r\n \"code\": \"InvalidResourceReference\",\r\n \"message\": \"Resource /subscriptions/Sub ID/resourceGroups/rg-netwo
rks/providers/Microsoft.Network/virtualNetworks/VN-Dev-Test/subnets/ referenced by resource /subscriptions/Sub ID/resourceGroups/packer-Resource-Group-40lku14404/providers/Micros
oft.Network/networkInterfaces/pkrni40lku14404 was not found. Please make sure that the referenced resource exists, and that both resources are in the same region.\",\r\n \"details\": []\r\n }\r\n}"}]
"builders": [{
"type": "azure-arm",
"client_id": "",
"client_secret": "",
"tenant_id": "",
"subscription_id": "",
"managed_image_resource_group_name": "rg-packer",
"managed_image_name": "myPackerImage2",
"os_type": "Windows",
"image_publisher": "MicrosoftWindowsServer",
"image_offer": "WindowsServer",
"image_sku": "2016-Datacenter",
"communicator": "winrm",
"winrm_use_ssl": true,
"winrm_insecure": true,
"winrm_timeout": "3m",
"winrm_username": "packer",
"azure_tags": {
"dept": "Engineering",
"task": "Image deployment"
},
"location": "Central US",
"vm_size": "Standard_DS2_v2",
"virtual_network_name": "Dev-VNET",
"virtual_network_resource_group_name": "rg-networks",
"virtual_network_subnet_name": "App_subnet"
}],