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}"}]


This is my json file

"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"

    
  }],

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/37d48c3e-feb0-4714-bbbd-6f89ff9088a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to