Reading your article, after I created a Service Principal and the Resource Group, I did the packer build for the elasticsearch6-node.packer.json, however, it immediately fails.
`azure-arm output will be in this color.
==> azure-arm: Running builder ...
==> azure-arm: Getting tokens using client secret
azure-arm: Creating Azure Resource Manager (ARM) client ...
==> azure-arm: ERROR: -> ResourceNotFound : The Resource 'Microsoft.Compute/images/elasticsearch6-2019-01-31T115715' under resource group 'packer-elasticsearch-images' 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.`
Reading your article, after I created a Service Principal and the Resource Group, I did the packer build for the elasticsearch6-node.packer.json, however, it immediately fails.
`azure-arm output will be in this color.
==> azure-arm: Running builder ... ==> azure-arm: Getting tokens using client secret azure-arm: Creating Azure Resource Manager (ARM) client ... ==> azure-arm: ERROR: -> ResourceNotFound : The Resource 'Microsoft.Compute/images/elasticsearch6-2019-01-31T115715' under resource group 'packer-elasticsearch-images' 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.`