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

Azure VM Agent does not work with Custom Managed Image with Unmanaged disk

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • _unsorted
    • None
    • Jenkins version 2.133
      VM agent 0.7.4

      vm template:

      Name: commons-jenkins-centos75-slave

      Description: <not set>

      Agent Workspace: <not set> 

      Labels: <not set>

      Region: Brazil South

      Virtual Machine Size: Standard_DS3_v2

      Storage Account Type: Standard_LRS

      Storage Account Type:

          Create new radio button set

          <random storage account name>

      Choose disks type: Unmanaged Disk

      Retention Strategy: Azure VM Idle Retention Strategy

         Retention Time In Minute

         60

      Shutdown Only (Do Not Delete) After Retention Time * <not set>*
      Usage: Use this node as much as possible
      Use Advanced Image Configurations radio button set
         Custom Managed Image
         **    Image ID: * /subscriptions/...*
      OS Type: Linux
      Launch Method: SSH**

       

      error:

      WARNING: Unexpected exception encountered while provisioning agent commons-jenkins-centos75-slave

      com.microsoft.azure.vmagent.exceptions.AzureCloudException: AzureVMCloud: createProvisionedAgent: Deployment Failed: Microsoft.Compute/virtualMachines:commons-jenkins-centos75-slavee80d81 - BadRequest - {error={code=InvalidTemplate, message=Unable to process template language expressions for resource '/subscriptions/b9b7f3a9-452a-4ff6-8b03-ef02f98b1d30/resourceGroups/Shared/providers/Microsoft.Compute/virtualMachines/commons-jenkins-centos75-slavee80d81' at line '1' and column '2136'. 'The template variable 'imagePublisher' is not found. Please see https://aka.ms/arm-template/#variables for usage details.'}}

      at com.microsoft.azure.vmagent.exceptions.AzureCloudException.create(AzureCloudException.java:37)

      at com.microsoft.azure.vmagent.AzureVMCloud.createProvisionedAgent(AzureVMCloud.java:597)

      at com.microsoft.azure.vmagent.AzureVMCloud$4.call(AzureVMCloud.java:843)

      at com.microsoft.azure.vmagent.AzureVMCloud$4.call(AzureVMCloud.java:821)

      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:1142)

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

      at java.lang.Thread.run(Thread.java:748)

            jieshe Jie Shen
            jieshe Jie Shen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: