// , It looks like the Packer API has moved on a bit since the last time there were any serious updates to the Terraform module for Azure Vault:
I just started using Packer today, and ran into the following error:
$ packer build vault-consul.json
azure-arm output will be in this color.
==> azure-arm: Running builder ...
azure-arm: Creating Azure Resource Manager (ARM) client ...
==> azure-arm: ERROR: -> ResourceNotFound : The Resource 'Microsoft.Compute/images/vault-consul-ubuntu-2018-06-26-012357' under resource group 'packerresourcegroup' was not found.
==> azure-arm:
==> azure-arm: resources.GroupsClient#CheckExistence: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: error response cannot be parsed: "" error: EOF
Build 'azure-arm' errored: resources.GroupsClient#CheckExistence: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: error response cannot be parsed: "" error: EOF
==> Some builds didn't complete successfully and had errors:
--> azure-arm: resources.GroupsClient#CheckExistence: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: error response cannot be parsed: "" error: EOF
==> Builds finished but no artifacts were created.
l-sfo01ehtdd-m:vault-consul-image nbasane$ packer build vault-consul.json
azure-arm output will be in this color.
==> azure-arm: Running builder ...
azure-arm: Creating Azure Resource Manager (ARM) client ...
==> azure-arm: ERROR: -> ResourceNotFound : The Resource 'Microsoft.Compute/images/vault-consul-ubuntu-2018-06-26-014346' under resource group 'packerresourcegroup' was not found.
==> azure-arm:
==> azure-arm: resources.GroupsClient#CheckExistence: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: error response cannot be parsed: "" error: EOF
Build 'azure-arm' errored: resources.GroupsClient#CheckExistence: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: error response cannot be parsed: "" error: EOF
==> Some builds didn't complete successfully and had errors:
--> azure-arm: resources.GroupsClient#CheckExistence: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: error response cannot be parsed: "" error: EOF
==> Builds finished but no artifacts were created.
I'm trying to get the examples working from here:
But I'm wondering how I would tell whether I've run into some kind of a bug in the module, in my Azure configuration, or in Packer's Azure Builder itself.
The service provider which I'm using for this has owner permissions on the resource group with the super creative name packerresourcegroup.
Which means it's unlikely that it's a permissions issue, unless the underlying Builder is generating an incorrect Resource Name to send to the ARM endpoint.
Anyway, I wonder if anyone else has run into similar issues with Packer's Azure Builder, and if you have any ideas I can use to investigate further?