Skip to content

unable to add windows license in the workflow #2438

@kayp514

Description

@kayp514

Hey, I'm having trouble adding a license key to the Daisy workflow. The cloud build failed due to a timeout after 4 hours, and I’m not sure why.
I’ve added the product_key in the steps, but I’m uncertain if I also need to modify the Licenses section in create-image. kindly assist, below is daisy workflow for reference

"windows-build": {
  "Timeout": "7h",
  "IncludeWorkflow": {
    "Path": "./windows-build-uefi.wf.json",
    "Vars": {
      "install_disk": "${install_disk}",
      "install_disk_size": "${install_disk_size}",
      "updates": "${updates}",
      "drivers_bucket": "${drivers_bucket}",
      "dotnet48": "${dotnet48}",
      "pwsh": "${pwsh}",
      "edition": "Windows 11 Enterprise",
      "product_key": "XXXX-XXXX-XXXX-XXXX-XXXXX",
      "media": "${media}",
      "cloud_sdk": "${cloudsdk}",
      "google_cloud_repo": "${google_cloud_repo}",
      "workflow_root": "${workflow_root}",
      "sbom_destination": "${sbom_destination}",
      "sbom_util_gcs_root": "${sbom_util_gcs_root}"
    }
  }
},

"create-image": {
  "CreateImages": [
    {
      "Project": "${project}",
      "SourceDisk": "${install_disk}",
      "Name": "${name}",
      "Family": "${family}",
      "Description": "${description}",
      "Licenses": [
        "projects/windows-cloud/global/licenses/windows-11-x64-byol"
      ],
      "GuestOsFeatures": [
        {
          "Type": "VIRTIO_SCSI_MULTIQUEUE"
        },
        {
          "Type": "WINDOWS"
        },
        {
          "Type": "MULTI_IP_SUBNET"
        },
        {
          "Type": "UEFI_COMPATIBLE"
        },
        {
          "Type": "GVNIC"
        }
      ],
      "NoCleanup": true,
      "ExactName": true
    }
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions