From 61289bec0e736348863beebc415a9814c634f4d8 Mon Sep 17 00:00:00 2001 From: Kinnaird McQuade Date: Sat, 26 Aug 2017 16:26:25 -0400 Subject: [PATCH 1/2] Update windows_custom_image.json object_id is not present in the file. Added it Required, as per the docs: https://www.packer.io/docs/builders/azure.html#object_id The other windows example shows this properly: https://github.com/hashicorp/packer/blob/master/examples/azure/windows.json Similar to: https://github.com/hashicorp/packer/issues/4803 --- examples/azure/windows_custom_image.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/azure/windows_custom_image.json b/examples/azure/windows_custom_image.json index b411555a7..7ae8761d5 100644 --- a/examples/azure/windows_custom_image.json +++ b/examples/azure/windows_custom_image.json @@ -5,6 +5,7 @@ "resource_group": "{{env `ARM_RESOURCE_GROUP`}}", "storage_account": "{{env `ARM_STORAGE_ACCOUNT`}}", "subscription_id": "{{env `ARM_SUBSCRIPTION_ID`}}" + "object_id": "{{env `ARM_OJBECT_ID`}}" }, "builders": [ { @@ -15,6 +16,7 @@ "resource_group_name": "{{user `resource_group`}}", "storage_account": "{{user `storage_account`}}", "subscription_id": "{{user `subscription_id`}}", + "object_id": "{{user `object_id`}}", "capture_container_name": "images", "capture_name_prefix": "packer", From b6a4c35e1a2b7128e60aae811e16d19486f62c26 Mon Sep 17 00:00:00 2001 From: Christopher Boumenot Date: Sun, 27 Aug 2017 14:39:23 -0700 Subject: [PATCH 2/2] Update windows_custom_image.json Add missing comma. --- examples/azure/windows_custom_image.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/azure/windows_custom_image.json b/examples/azure/windows_custom_image.json index 7ae8761d5..018ba34d1 100644 --- a/examples/azure/windows_custom_image.json +++ b/examples/azure/windows_custom_image.json @@ -4,7 +4,7 @@ "client_secret": "{{env `ARM_CLIENT_SECRET`}}", "resource_group": "{{env `ARM_RESOURCE_GROUP`}}", "storage_account": "{{env `ARM_STORAGE_ACCOUNT`}}", - "subscription_id": "{{env `ARM_SUBSCRIPTION_ID`}}" + "subscription_id": "{{env `ARM_SUBSCRIPTION_ID`}}", "object_id": "{{env `ARM_OJBECT_ID`}}" }, "builders": [