Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-52407

using marketplace image gives 'Creating a virtual machine from Marketplace image requires Plan information in the request' error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • _unsorted
    • None
    • Jenkins: 2.130

      azure-vm-agents: 0.6.2, 0.7.1
    • This issue has been fixed in version 0.7.2

      We are trying to use a custom agent based on Kali Linux with this plugin, but on provisioning we get the below error.

      We've tried both custom image (based on Kali using a blob URL) and also the base Kali image, providing the publisher, sku, offer, and version.  Both give us the same error.

      Programmatic access is also enabled for this image in the subscription.

       

      com.microsoft.azure.vmagent.exceptions.AzureCloudException: AzureVMCloud: createProvisionedAgent: Deployment Failed: Microsoft.Compute/virtualMachines:kali-jenkins-builders956e30 - Conflict - {status=Failed, error={code=ResourceDeploymentFailure, message=The resource operation completed with terminal provisioning state 'Failed'., details=[{code=VMMarketplaceInvalidInput, message=Creating a virtual machine from Marketplace image requires Plan information in the request. VM: '/subscriptions/bf308a5c-0624-4334-8ff8-8dca9fd43783/resourceGroups/mgmt-vmimg-store-timwdev/providers/Microsoft.Compute/virtualMachines/kali-jenkins-builders956e30'.}]}}com.microsoft.azure.vmagent.exceptions.AzureCloudException: AzureVMCloud: createProvisionedAgent: Deployment Failed: Microsoft.Compute/virtualMachines:kali-jenkins-builders956e30 - Conflict - {status=Failed, error={code=ResourceDeploymentFailure, message=The resource operation completed with terminal provisioning state 'Failed'., details=[{code=VMMarketplaceInvalidInput, message=Creating a virtual machine from Marketplace image requires Plan information in the request. VM: '/subscriptions/bf308a5c-0624-4334-8ff8-8dca9fd43783/resourceGroups/mgmt-vmimg-store-timwdev/providers/Microsoft.Compute/virtualMachines/kali-jenkins-builders956e30'.}]}} at com.microsoft.azure.vmagent.exceptions.AzureCloudException.create(AzureCloudException.java:37) at com.microsoft.azure.vmagent.AzureVMCloud.createProvisionedAgent(AzureVMCloud.java:609) at com.microsoft.azure.vmagent.AzureVMCloud$4.call(AzureVMCloud.java:833) at com.microsoft.azure.vmagent.AzureVMCloud$4.call(AzureVMCloud.java:810) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) 

       

            jieshe Jie Shen
            timwebster9 Tim Webster
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: