Closed jok0 closed 1 year ago
You aren't using my setup and it doesn't work? That looks to be the problem, I'm afraid. I have created 3 new VM's today, the current version of my repo works...
Some things to look at:
create-managedimage.ps1
.OsDiskUri
value is done in PowerShell, by reading the output of the packer command: https://github.com/YannickRe/azuredevops-buildagents/blob/b940b59ed2533d61c8453a4ad0952608aeefc209/scripts/build-image.ps1#L63
Again, since you do not have a VHD, most likely the packer command isn't outputting this valueThat's all I can help with when you aren't using the runner-images repository, as this whole setup is based on that.
Hi, i am having trouble on the Managed Image Generation job.
The machine builds successfully but it looks like the OsVhdUri is not being outputted so the variable isn't being passed into the create-managedimage.ps1 script.
I am building this with an Azure Hosted VM and trying to build 2022-Datacenter.
Error in question is:
Any assistance on this would be super. I have tried to debug this for a good couple of days now but ran out of ideas. Thanks
Oh, also, i don't know if it's worth mentioning but i am not importing the runner-images. I am using Azures image. Could this be the problem? This is my packer build file.