Closed GarethOates closed 5 years ago
This was a permissions problem at my end. My service principal only had access to work within Packer resource group so I had to remove the 'location' parameter and instead set the 'build_resource_group_name' to be Packer.
This was a permissions problem at my end. My service principal only had access to work within Packer resource group so I had to remove the 'location' parameter and instead set the 'build_resource_group_name' to be Packer.
Thank you so much for your follow-up answer. I was very much stuck trying to figure it out.
I have a packer json file and a Packer build task defined in Azure DevOps, to use this file, but for some reason, the managed_image_name I'm trying to create, isn't being created because the task is saying it can't be found. Which is true, because I'm trying to build it.
I've tested my script locally and it works, however when running via the task in Azure DevOps, it won't get very far at all.
Here is my packer-test.json file, which is the template I'm trying to use.
And the yaml in my azure pipelines yml file is as follows. The Packer service definition for Azure has access to the 'Packer' resource group, which is already present.
I saw the 403 status code so I went and double checked that the Service Endpoints were still working and ended up creating new ones just to be extra sure.
Any idea why it's not working? Like I say, I can run the template locally without error.