BigDataBoutique / elasticsearch-cloud-deploy

Deploy Elasticsearch on the cloud easily
https://bigdataboutique.com/services/elasticsearch-consulting
Apache License 2.0
330 stars 146 forks source link

Immediate packer build fail #63

Closed michaelseto closed 5 years ago

michaelseto commented 5 years ago

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.`

michaelseto commented 5 years ago

FIXED - Service Principal was not a 'Contributor' on the subscription