From (
https://www.packer.io/docs/builders/azure.html)
The json file validated fine.
When I run packer build, I am getting an authorization error.
Unfortunately I do not have enough experience to know where to go with this.
Any tips for troubleshooting?
Has anyone else gotten this to work?
C:\utilities>packer build azureexample.json
azure-arm output will be in this color.
==> azure-arm: Running builder ...
azure-arm: Creating Azure Resource Manager (ARM) client ...
Build 'azure-arm' errored: azure.BearerAuthorizer#WithAuthorization: Failed to refresh the Token for request to https://management.azure.com/subscriptions/xxxxx/resource Groups/PTL-Packer-002-D_azureExample/providers/Microsoft.Storage/storageAccounts/ptlpackerstor002d/listKeys?api-version=2016-12-01: StatusCode=0 -- Original Error: adal: Refresh request failed. Status Code = '401'
==> Some builds didn't complete successfully and had errors:
==> Builds finished but no artifacts were created.
C:\utilities>
- Jack