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

Azure complains of "trademark DNS issue" when deploying Windows agent VM

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • _unsorted
    • None
    • Jenkins 2.60.1 / Windows VM agent template

      The Azure VM Agents plugin seems to assign a DNS alias containing 'windows' by default to my agents if I request a public IP address for them. This causes Azure to barf because it doesn't like any alias with the word Windows in it.

       

      com.microsoft.azure.vmagent.exceptions.AzureCloudException: Status code 400, {"error":{"code":"InvalidTemplateDeployment","message":"The template deployment 'windowsjenkinsagents-agent0817145738751' is not valid according to the validation procedure. The tracking id is 'asdfasdfasdfasdfasdf'. See inner errors for details. Please see https://aka.ms/arm-deploy for usage details.","details":[{"code":"DomainNameLabelReserved","message":"The domain name label windowsjff7460 is invalid. The name itself or part of the name is a reserved word such as a trademark. Please use a different name.","details":[]}]}}
      	at com.microsoft.azure.vmagent.exceptions.AzureCloudException.create(AzureCloudException.java:51)
      	at com.microsoft.azure.vmagent.exceptions.AzureCloudException.create(AzureCloudException.java:33)
      	at com.microsoft.azure.vmagent.AzureVMManagementServiceDelegate.createDeployment(AzureVMManagementServiceDelegate.java:399)
      	at com.microsoft.azure.vmagent.AzureVMManagementServiceDelegate.createDeployment(AzureVMManagementServiceDelegate.java:167)
      	at com.microsoft.azure.vmagent.AzureVMAgentTemplate.provisionAgents(AzureVMAgentTemplate.java:708)
      	at com.microsoft.azure.vmagent.AzureVMCloud$2.call(AzureVMCloud.java:719)
      	at com.microsoft.azure.vmagent.AzureVMCloud$2.call(AzureVMCloud.java:715)
      Caused: java.util.concurrent.ExecutionException
      	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
      	at java.util.concurrent.FutureTask.get(FutureTask.java:192)
      	at com.microsoft.azure.vmagent.AzureVMCloud$3.call(AzureVMCloud.java:743)
      Caused: com.microsoft.azure.vmagent.exceptions.AzureCloudException
      	at com.microsoft.azure.vmagent.exceptions.AzureCloudException.create(AzureCloudException.java:54)
      	at com.microsoft.azure.vmagent.exceptions.AzureCloudException.create(AzureCloudException.java:33)
      	at com.microsoft.azure.vmagent.AzureVMCloud$3.call(AzureVMCloud.java:745)
      	at com.microsoft.azure.vmagent.AzureVMCloud$3.call(AzureVMCloud.java:736)
      	at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
      	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)

            azure_devops Azure DevOps
            dbsanfte David Sanftenberg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: