Hi, we're trying to run through the packer samples to use Packer on azure.
>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:
--> azure-arm: azure.BearerAuthorizer#WithAuthorization: Failed to refresh
the Token for request to
https://management.azure.com/subscriptions/xxxxx/resourceGroups/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'
==> Builds finished but no artifacts were created.
C:\utilities>
- Jack
--
This mailing list is governed under the HashiCorp Community Guidelines -
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of
those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/packer-tool/e5f3b16a-038b-459d-9fec-2b30e909c0fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.