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

"Region" list is empty when using JCasC to configure Azure VM agent

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      We are using Jenkins (2.176.1) with Cofiguration as a code (1.34) and Azure VM agent plugin (1.2.2).

      In jenkins.yml we have following way to define Region/locaiton:

      jenkins:

        clouds:

        - azureVM:

             ...
             vmTemplates:

              - agentLaunchMethod: "SSH"

                ...

                location: "North Europe"

                ...

       

      But in the UI the Region drop down is grey and no value is displayed. 

      Even when we try to add new Azure VM cloud configuration and template from UI (Jenkins > Manage Jenkins > Configure System), Region list is empty.

       Could you please help and support us?

       

        

        Attachments

          Activity

          Hide
          jieshe Jie Shen added a comment -

          The region options are dynamically loaded from the server side. So please verify the configuration and make sure network is available.

          Show
          jieshe Jie Shen added a comment - The region options are dynamically loaded from the server side. So please verify the configuration and make sure network is available.
          Hide
          faizan Muhammad Faizan ul haq added a comment -

          Jie Shen But there are other options like: "Virtual Machine Size" "Storage Account Name" "Resource Group Name". I assume there are also loaded from Network. It seems like, their drop down list is available but not the "Region" list. Is there any other clue ? 

          Show
          faizan Muhammad Faizan ul haq added a comment - Jie Shen But there are other options like: "Virtual Machine Size" "Storage Account Name" "Resource Group Name". I assume there are also loaded from Network. It seems like, their drop down list is available but not the "Region" list. Is there any other clue ? 
          Hide
          cyanoth Charles K added a comment - - edited

          This is an old issue, but one we recently ran into. Perhaps the information may help if someone else runs into this:

          We configure the azure dynamic vm plugin & credentials via a groovy init script. Creating the azure service principal credential sets the Azure Environment Name as null.

          This populates the region dropdown list as blank (the described issues) because of an unknown environment. To resolve this, we had to explicitly set the envName on the azure credential to "Azure". So as groovy script: azSpCredential.setAzureEnvironmentName("Azure"); (Whatever the equivalent is in casc)

           

          Show
          cyanoth Charles K added a comment - - edited This is an old issue, but one we recently ran into. Perhaps the information may help if someone else runs into this: We configure the azure dynamic vm plugin & credentials via a groovy init script. Creating the azure service principal credential sets the Azure Environment Name as null. This populates the region dropdown list as blank (the described issues) because of an unknown environment. To resolve this, we had to explicitly set the envName on the azure credential to "Azure". So as groovy script: azSpCredential.setAzureEnvironmentName("Azure"); (Whatever the equivalent is in casc)  
          Hide
          timja Tim Jacomb added a comment -

          All issues have been transferred to GitHub.

          See https://github.com/jenkinsci/azure-vm-agents-plugin/issues

          Search the issue title to find it.

          (This is a bulk comment and can't link to the specific issue)

          Show
          timja Tim Jacomb added a comment - All issues have been transferred to GitHub. See https://github.com/jenkinsci/azure-vm-agents-plugin/issues Search the issue title to find it. (This is a bulk comment and can't link to the specific issue)

            People

            Assignee:
            jieshe Jie Shen
            Reporter:
            jchr Jui Chandwaskar
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: