jenkinsci / azure-vm-agents-plugin

This repo is for azure vm agents plugin for jenkins. Azure devops CICD is the team which owns it for now
https://plugins.jenkins.io/azure-vm-agents/
46 stars 102 forks source link

Plan Information option does not appear when using "custom user image" or "gallery image" #584

Closed raavendanp closed 1 hour ago

raavendanp commented 3 hours ago

Jenkins and plugins versions report

Environment: Gov Virginia Cloud ```text When try to use custom user image or gallery image option, there is no field to add Plan Information. This generate the error "Creating a virtual machine from Marketplace image or a custom image sourced from a Marketplace image requires Plan information in the request. " ``` ![Image](https://github.com/user-attachments/assets/c74ee5a3-b3a1-4eef-9c34-a510bc753ebd)

What Operating System are you using (both controller, and any agents involved in the problem)?

Linux

Reproduction steps

  1. Create agent template
  2. Use custom user image

Expected Results

Have a plan information field to add to the request

Actual Results

Error "Creating a virtual machine from Marketplace image or a custom image sourced from a Marketplace image requires Plan information in the request. "

Anything else?

No response

Are you interested in contributing a fix?

No response

timja commented 3 hours ago

Thanks,

Looking at https://github.com/jenkinsci/azure-vm-agents-plugin/pull/452 it was just for gallery image but the person who created it thought it worked for the others.

Is there any chance you can try it in an image gallery?

raavendanp commented 3 hours ago

With image gallery I have the same problem, there is no plan information field. Image

timja commented 2 hours ago

The plan information should be on the image tags from what I understand:

These are:

If those tags are present then they will be copied and provided in the request, I've checked and the same should work for custom image as well as gallery image

raavendanp commented 2 hours ago

Okay I still having the problem. My image comes from a virtual machine with this as blank Image

So I add the tags this way

Image

Even leaving as blank I still having the proble, is there something I am missing?

timja commented 1 hour ago

Its not the tags in Jenkins its the tags on the image, are you able to add those tags to the image?

raavendanp commented 1 hour ago

Thank you for the clarification! I can keep working with this now