actions / runner-images

GitHub Actions runner images
MIT License
10.15k stars 3.06k forks source link

Build Image for agent #8658

Closed hiran-filho closed 1 year ago

hiran-filho commented 1 year ago

Description

packer build -var client_id= -var client_secret= -var subscription_id= -var tenant_id= -var-file variables.pkr.hcl ubuntu2204.pkr.hcl

I used this command to create the image, I provided all the variables, I had problems provisioning Java, but I discovered that I should first provision "sudo apt-get update --fix-missing" to resolve the JAVA installation, but everything else was provisioned. At the end of testing I had this error and I was unable to provision an image to create a scale-set

Platforms affected

Runner images affected

Image version and build link

azure-arm.build_image: PassedCount           : 472
azure-arm.build_image: SkippedCount          : 7
azure-arm.build_image: NotRunCount           : 0
azure-arm.build_image: TotalCount            : 482
azure-arm.build_image: Duration              : 00:00:47.5359533
azure-arm.build_image: Executed              : True
azure-arm.build_image: ExecutedAt            : 10/25/2023 14:33:52
azure-arm.build_image: Version               : 5.5.0
azure-arm.build_image: PSVersion             : 7.3.8
azure-arm.build_image: PSBoundParameters     : {[Configuration, PesterConfiguration]}
azure-arm.build_image: Plugins               : 
azure-arm.build_image: PluginConfiguration   : 
azure-arm.build_image: PluginData            : 
azure-arm.build_image: Configuration         : PesterConfiguration
azure-arm.build_image: DiscoveryDuration     : 00:00:00.8506268
azure-arm.build_image: UserDuration          : 00:00:45.1553631
azure-arm.build_image: FrameworkDuration     : 00:00:01.5299634
azure-arm.build_image: Failed                : {[-] Default Dotnet SDK is available, [-] Runtime 6.0 i
azure-arm.build_image:                         s available, [-] podman networking}
azure-arm.build_image: FailedBlocks          : {}
azure-arm.build_image: FailedContainers      : {}
azure-arm.build_image: Passed                : {[+] /opt/actionarchivecache not empty, [+] /opt/action
azure-arm.build_image:                         archivecache/actions_cache/052d3a99864b25538f4f499e3755
azure-arm.build_image:                         78f64851952e.tar.gz, [+] /opt/actionarchivecache/action
azure-arm.build_image:                         s_cache/0865c47f36e68161719c5b124609996bb5c40129.tar.gz
azure-arm.build_image:                         , [+] /opt/actionarchivecache/actions_cache/136d96b4aee
azure-arm.build_image:                         02b1f0de3ba493b1d47135042d9c0.tar.gz…}
azure-arm.build_image: Skipped               : {[!] <ToolName>, [!] <ToolName>, [!] erlang <ErlangComm
azure-arm.build_image:                         and>, [!] erlang <ErlangCommand>…}
azure-arm.build_image: NotRun                : {}
azure-arm.build_image: Tests                 : {[+] /opt/actionarchivecache not empty, [+] /opt/action
azure-arm.build_image:                         archivecache/actions_cache/052d3a99864b25538f4f499e3755
azure-arm.build_image:                         78f64851952e.tar.gz, [+] /opt/actionarchivecache/action
azure-arm.build_image:                         s_cache/0865c47f36e68161719c5b124609996bb5c40129.tar.gz
azure-arm.build_image:                         , [+] /opt/actionarchivecache/actions_cache/136d96b4aee
azure-arm.build_image:                         02b1f0de3ba493b1d47135042d9c0.tar.gz…}
azure-arm.build_image: CodeCoverage          : 
azure-arm.build_image:

==> azure-arm.build_image: Exception: Test run has failed ==> azure-arm.build_image: Provisioning step had errors: Running the cleanup provisioner, if present...

Is it regression?

new

Expected behavior

have an image to be used in a scale-set

Actual behavior

failed part of the tests

Repro steps

packer build -var client_id= -var client_secret= -var subscription_id= -var tenant_id= -var-file variables.pkr.hcl ubuntu2204.pkr.hcl

ilia-shipitsin commented 1 year ago

thank for the report, we'll have a look

hiran-filho commented 1 year ago

locals { managed_image_name = var.managed_image_name != "" ? var.managed_image_name : "packer-${var.image_os}-${var.image_version}" }

variable "allowed_inbound_ip_addresses" { type = list(string) default = [] }

variable "azure_tags" { type = map(string) default = {} }

variable "build_resource_group_name" { type = string default = "${env("BUILD_RESOURCE_GROUP_NAME")}" }

variable "managed_image_name" { type = string default = "IMG-UBUNTU2204" }

variable "client_id" { type = string default = "${env("ARM_CLIENT_ID")}" }

variable "client_secret" { type = string default = "${env("ARM_CLIENT_SECRET")}" sensitive = true }

variable "client_cert_path" { type = string default = "${env("ARM_CLIENT_CERT_PATH")}" }

variable "commit_url" { type = string default = "" }

variable "dockerhub_login" { type = string default = "${env("DOCKERHUB_LOGIN")}" }

variable "dockerhub_password" { type = string default = "${env("DOCKERHUB_PASSWORD")}" }

variable "helper_script_folder" { type = string default = "/imagegeneration/helpers" }

variable "image_folder" { type = string default = "/imagegeneration" }

variable "image_os" { type = string default = "ubuntu22" }

variable "image_version" { type = string default = "dev" }

variable "imagedata_file" { type = string default = "/imagegeneration/imagedata.json" }

variable "installer_script_folder" { type = string default = "/imagegeneration/installers" }

variable "install_password" { type = string default = "" }

variable "location" { type = string default = "${env("ARM_RESOURCE_LOCATION")}" }

variable "private_virtual_network_with_public_ip" { type = bool default = false }

variable "managed_image_resource_group_name" { type = string default = "${env("ARM_RESOURCE_GROUP")}" }

variable "run_validation_diskspace" { type = bool default = false }

variable "subscription_id" { type = string default = "${env("ARM_SUBSCRIPTION_ID")}" }

variable "temp_resource_group_name" { type = string default = "${env("TEMP_RESOURCE_GROUP_NAME")}" }

variable "tenant_id" { type = string default = "${env("ARM_TENANT_ID")}" }

variable "virtual_network_name" { type = string default = "${env("VNET_NAME")}" }

variable "virtual_network_resource_group_name" { type = string default = "${env("VNET_RESOURCE_GROUP")}" }

variable "virtual_network_subnet_name" { type = string default = "${env("VNET_SUBNET")}" }

variable "vm_size" { type = string default = "Standard_D8s_v5" }

source "azure-arm" "build_image" { allowed_inbound_ip_addresses = "${var.allowed_inbound_ip_addresses}" build_resource_group_name = "${var.build_resource_group_name}" client_id = "${var.client_id}" client_secret = "${var.client_secret}" client_cert_path = "${var.client_cert_path}" image_offer = "0001-com-ubuntu-server-jammy" image_publisher = "canonical" image_sku = "22_04-lts" location = "${var.location}" os_disk_size_gb = "86" os_type = "Linux" private_virtual_network_with_public_ip = "${var.private_virtual_network_with_public_ip}" managed_image_name = "${local.managed_image_name}" managed_image_resource_group_name = "${var.managed_image_resource_group_name}" subscription_id = "${var.subscription_id}" temp_resource_group_name = "${var.temp_resource_group_name}" tenant_id = "${var.tenant_id}" virtual_network_name = "${var.virtual_network_name}" virtual_network_resource_group_name = "${var.virtual_network_resource_group_name}" virtual_network_subnet_name = "${var.virtual_network_subnet_name}" vm_size = "${var.vm_size}"

dynamic "azure_tag" { for_each = var.azure_tags content { name = azure_tag.key value = azure_tag.value } }

spot { eviction_policy = "Delete" max_price = "0.8" } }

build { sources = ["source.azure-arm.build_image"]

provisioner "shell" { inline = [ "sudo apt-get install -y cifs-utils", "sudo mkdir -p /home/AzDevOps/.sonar/cache", "sudo mount -t cifs -o username=###,password=*** //rgdevopsdevdiag316.file.core.windows.net/sonar-cache /home/AzDevOps/.sonar/cache", "sudo apt-get install ca-certificates", "sudo update-ca-certificates" ] }

provisioner "shell" { execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'" inline = ["mkdir ${var.image_folder}", "chmod 777 ${var.image_folder}"] }

provisioner "shell" { execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'" script = "${path.root}/scripts/base/apt-mock.sh" }

provisioner "shell" { environment_vars = ["DEBIAN_FRONTEND=noninteractive"] execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'" scripts = ["${path.root}/scripts/base/repos.sh"] }

provisioner "shell" { environment_vars = ["DEBIAN_FRONTEND=noninteractive"] execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'" scripts = ["${path.root}/scripts/base/apt-ubuntu-archive.sh"] }

provisioner "shell" { environment_vars = ["DEBIAN_FRONTEND=noninteractive"] execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'" script = "${path.root}/scripts/base/apt.sh" }

provisioner "shell" { execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'" script = "${path.root}/scripts/base/limits.sh" }

provisioner "file" { destination = "${var.helper_script_folder}" source = "${path.root}/scripts/helpers" }

provisioner "file" { destination = "${var.installer_script_folder}" source = "${path.root}/scripts/installers" }

provisioner "file" { destination = "${var.image_folder}" source = "${path.root}/post-generation" }

provisioner "file" { destination = "${var.image_folder}" source = "${path.root}/scripts/tests" }

provisioner "file" { destination = "${var.image_folder}" source = "${path.root}/scripts/SoftwareReport" }

provisioner "file" { destination = "${var.image_folder}/SoftwareReport/" source = "${path.root}/../../helpers/software-report-base" }

provisioner "shell" { inline = [ "sudo apt-get update --fix-missing" ] }

provisioner "file" { destination = "${var.installer_script_folder}/toolset.json" source = "${path.root}/toolsets/toolset-2204.json" }

provisioner "shell" { environment_vars = ["IMAGE_VERSION=${var.image_version}", "IMAGEDATA_FILE=${var.imagedata_file}"] execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'" scripts = ["${path.root}/scripts/installers/preimagedata.sh"] }

provisioner "shell" { environment_vars = ["IMAGE_VERSION=${var.image_version}", "IMAGE_OS=${var.image_os}", "HELPER_SCRIPTS=${var.helper_script_folder}"] execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'" scripts = ["${path.root}/scripts/installers/configure-environment.sh"] }

provisioner "shell" { environment_vars = ["DEBIAN_FRONTEND=noninteractive", "HELPER_SCRIPTS=${var.helper_script_folder}", "INSTALLER_SCRIPT_FOLDER=${var.installer_script_folder}"] execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'" scripts = ["${path.root}/scripts/installers/apt-vital.sh"] }

provisioner "shell" { environment_vars = ["HELPER_SCRIPTS=${var.helper_script_folder}"] execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'" scripts = ["${path.root}/scripts/installers/complete-snap-setup.sh", "${path.root}/scripts/installers/powershellcore.sh"] }

provisioner "shell" { environment_vars = ["HELPER_SCRIPTS=${var.helper_script_folder}", "INSTALLER_SCRIPT_FOLDER=${var.installer_script_folder}"] execute_command = "sudo sh -c '{{ .Vars }} pwsh -f {{ .Path }}'" scripts = ["${path.root}/scripts/installers/Install-PowerShellModules.ps1", "${path.root}/scripts/installers/Install-AzureModules.ps1"] }

provisioner "shell" { environment_vars = ["HELPER_SCRIPTS=${var.helper_script_folder}", "INSTALLER_SCRIPT_FOLDER=${var.installer_script_folder}", "DEBIAN_FRONTEND=noninteractive"] execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'" scripts = [ "${path.root}/scripts/installers/action-archive-cache.sh", "${path.root}/scripts/installers/apt-common.sh", "${path.root}/scripts/installers/azcopy.sh", "${path.root}/scripts/installers/azure-cli.sh", "${path.root}/scripts/installers/azure-devops-cli.sh", "${path.root}/scripts/installers/bicep.sh", "${path.root}/scripts/installers/aliyun-cli.sh", "${path.root}/scripts/installers/apache.sh", "${path.root}/scripts/installers/aws.sh", "${path.root}/scripts/installers/clang.sh", "${path.root}/scripts/installers/swift.sh", "${path.root}/scripts/installers/cmake.sh", "${path.root}/scripts/installers/codeql-bundle.sh", "${path.root}/scripts/installers/containers.sh", "${path.root}/scripts/installers/dotnetcore-sdk.sh", "${path.root}/scripts/installers/firefox.sh", "${path.root}/scripts/installers/microsoft-edge.sh", "${path.root}/scripts/installers/gcc.sh", "${path.root}/scripts/installers/gfortran.sh", "${path.root}/scripts/installers/git.sh", "${path.root}/scripts/installers/github-cli.sh", "${path.root}/scripts/installers/google-chrome.sh", "${path.root}/scripts/installers/google-cloud-cli.sh", "${path.root}/scripts/installers/haskell.sh", "${path.root}/scripts/installers/heroku.sh", "${path.root}/scripts/installers/java-tools.sh", "${path.root}/scripts/installers/kubernetes-tools.sh", "${path.root}/scripts/installers/oc.sh", "${path.root}/scripts/installers/leiningen.sh", "${path.root}/scripts/installers/miniconda.sh", "${path.root}/scripts/installers/mono.sh", "${path.root}/scripts/installers/kotlin.sh", "${path.root}/scripts/installers/mysql.sh", "${path.root}/scripts/installers/mssql-cmd-tools.sh", "${path.root}/scripts/installers/sqlpackage.sh", "${path.root}/scripts/installers/nginx.sh", "${path.root}/scripts/installers/nvm.sh", "${path.root}/scripts/installers/nodejs.sh", "${path.root}/scripts/installers/bazel.sh", "${path.root}/scripts/installers/oras-cli.sh", "${path.root}/scripts/installers/php.sh", "${path.root}/scripts/installers/postgresql.sh", "${path.root}/scripts/installers/pulumi.sh", "${path.root}/scripts/installers/ruby.sh", "${path.root}/scripts/installers/r.sh", "${path.root}/scripts/installers/rust.sh", "${path.root}/scripts/installers/julia.sh", "${path.root}/scripts/installers/sbt.sh", "${path.root}/scripts/installers/selenium.sh", "${path.root}/scripts/installers/terraform.sh", "${path.root}/scripts/installers/packer.sh", "${path.root}/scripts/installers/vcpkg.sh", "${path.root}/scripts/installers/dpkg-config.sh", "${path.root}/scripts/installers/yq.sh", "${path.root}/scripts/installers/android.sh", "${path.root}/scripts/installers/pypy.sh", "${path.root}/scripts/installers/python.sh", "${path.root}/scripts/installers/zstd.sh" ] }

provisioner "shell" { environment_vars = ["HELPER_SCRIPTS=${var.helper_script_folder}", "INSTALLER_SCRIPT_FOLDER=${var.installer_script_folder}", "DOCKERHUB_LOGIN=${var.dockerhub_login}", "DOCKERHUB_PASSWORD=${var.dockerhub_password}"] execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'" scripts = ["${path.root}/scripts/installers/docker-compose.sh", "${path.root}/scripts/installers/docker.sh"] }

provisioner "shell" { environment_vars = ["HELPER_SCRIPTS=${var.helper_script_folder}", "INSTALLER_SCRIPT_FOLDER=${var.installer_script_folder}"] execute_command = "sudo sh -c '{{ .Vars }} pwsh -f {{ .Path }}'" scripts = ["${path.root}/scripts/installers/Install-Toolset.ps1", "${path.root}/scripts/installers/Configure-Toolset.ps1"] }

provisioner "shell" { environment_vars = ["HELPER_SCRIPTS=${var.helper_script_folder}", "INSTALLER_SCRIPT_FOLDER=${var.installer_script_folder}"] execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'" scripts = ["${path.root}/scripts/installers/pipx-packages.sh"] }

provisioner "shell" { environment_vars = ["HELPER_SCRIPTS=${var.helper_script_folder}", "DEBIAN_FRONTEND=noninteractive", "INSTALLER_SCRIPT_FOLDER=${var.installer_script_folder}"] execute_command = "/bin/sh -c '{{ .Vars }} {{ .Path }}'" scripts = ["${path.root}/scripts/installers/homebrew.sh"] }

provisioner "shell" { execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'" script = "${path.root}/scripts/base/snap.sh" }

provisioner "shell" { execute_command = "/bin/sh -c '{{ .Vars }} {{ .Path }}'" expect_disconnect = true scripts = ["${path.root}/scripts/base/reboot.sh"] }

provisioner "shell" { execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'" pause_before = "1m0s" scripts = ["${path.root}/scripts/installers/cleanup.sh"] start_retry_timeout = "10m" }

provisioner "shell" { execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'" script = "${path.root}/scripts/base/apt-mock-remove.sh" }

provisioner "shell" { environment_vars = ["IMAGE_VERSION=${var.image_version}", "INSTALLER_SCRIPT_FOLDER=${var.installer_script_folder}"] inline = ["pwsh -File ${var.image_folder}/SoftwareReport/SoftwareReport.Generator.ps1 -OutputDirectory ${var.image_folder}", "pwsh -File ${var.image_folder}/tests/RunAll-Tests.ps1 -OutputDirectory ${var.image_folder}"] }

provisioner "file" { destination = "${path.root}/Ubuntu2204-Readme.md" direction = "download" source = "${var.image_folder}/software-report.md" }

provisioner "file" { destination = "${path.root}/software-report.json" direction = "download" source = "${var.image_folder}/software-report.json" }

provisioner "shell" { environment_vars = ["HELPER_SCRIPT_FOLDER=${var.helper_script_folder}", "INSTALLER_SCRIPT_FOLDER=${var.installer_script_folder}", "IMAGE_FOLDER=${var.image_folder}"] execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'" scripts = ["${path.root}/scripts/installers/post-deployment.sh"] }

provisioner "shell" { environment_vars = ["RUN_VALIDATION=${var.run_validation_diskspace}"] scripts = ["${path.root}/scripts/installers/validate-disk-space.sh"] }

provisioner "file" { destination = "/tmp/" source = "${path.root}/config/ubuntu2204.conf" }

provisioner "shell" { execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'" inline = ["mkdir -p /etc/vsts", "cp /tmp/ubuntu2204.conf /etc/vsts/machine_instance.conf"] }

provisioner "shell" { execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'" inline = ["sleep 30", "/usr/sbin/waagent -force -deprovision+user && export HISTSIZE=0 && sync"] }

}

@ilia-shipitsin , This is the script I used, with the necessary changes I needed, as I said the error above had been indicated, but I don't know why when running again everything was normal and what was expected of having an image happened.

mikhailkoliada commented 1 year ago

Hi, could you provide a full build log?

ilia-shipitsin commented 1 year ago

it says "{[-] Default Dotnet SDK is available, [-] Runtime 6.0 iazure-arm.build_image:s available"

somehow DotNet SDK installation failed. is there's anything on it in log ?

hiran-filho commented 1 year ago

@mikhailkoliada and @ilia-shipitsin

Dotnet log:

==> azure-arm.build_image: Provisioning with shell script: /agent/_work/1/s/images/linux/scripts/installers/dotnetcore-sdk.sh 2023-10-25T13:22:04.9385357Z azure-arm.build_image: Get:1 file:/etc/apt/apt-mirrors.txt Mirrorlist [142 B] 2023-10-25T13:22:04.9620185Z azure-arm.build_image: Hit:2 http://azure.archive.ubuntu.com/ubuntu jammy InRelease 2023-10-25T13:22:04.9627349Z azure-arm.build_image: Hit:3 http://azure.archive.ubuntu.com/ubuntu jammy-updates InRelease 2023-10-25T13:22:04.9631749Z azure-arm.build_image: Hit:4 http://azure.archive.ubuntu.com/ubuntu jammy-backports InRelease 2023-10-25T13:22:04.9636026Z azure-arm.build_image: Hit:5 http://azure.archive.ubuntu.com/ubuntu jammy-security InRelease 2023-10-25T13:22:04.9784419Z azure-arm.build_image: Hit:6 https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease 2023-10-25T13:22:05.9691792Z azure-arm.build_image: Reading package lists... 2023-10-25T13:22:05.9812101Z azure-arm.build_image: Determing if .NET Core (dotnet-sdk-6.0) is installed 2023-10-25T13:22:06.0985578Z azure-arm.build_image: Could not find .NET Core (dotnet-sdk-6.0), installing... 2023-10-25T13:22:06.1348774Z azure-arm.build_image: Reading package lists... 2023-10-25T13:22:06.3194023Z azure-arm.build_image: Building dependency tree... 2023-10-25T13:22:06.3196774Z azure-arm.build_image: Reading state information... 2023-10-25T13:22:06.4379169Z azure-arm.build_image: The following packages were automatically installed and are no longer required: 2023-10-25T13:22:06.4381647Z azure-arm.build_image: liblldb-13 liblldb-15 2023-10-25T13:22:06.4386546Z azure-arm.build_image: Use 'sudo apt autoremove' to remove them. 2023-10-25T13:22:06.4389657Z azure-arm.build_image: The following additional packages will be installed: 2023-10-25T13:22:06.4394817Z azure-arm.build_image: aspnetcore-runtime-6.0 aspnetcore-targeting-pack-6.0 dotnet-apphost-pack-6.0 2023-10-25T13:22:06.4399026Z azure-arm.build_image: dotnet-host dotnet-hostfxr-6.0 dotnet-runtime-6.0 dotnet-runtime-deps-6.0 2023-10-25T13:22:06.4401835Z azure-arm.build_image: dotnet-targeting-pack-6.0 netstandard-targeting-pack-2.1 2023-10-25T13:22:06.4558510Z azure-arm.build_image: The following NEW packages will be installed: 2023-10-25T13:22:06.4563654Z azure-arm.build_image: aspnetcore-runtime-6.0 aspnetcore-targeting-pack-6.0 dotnet-apphost-pack-6.0 2023-10-25T13:22:06.4566904Z azure-arm.build_image: dotnet-host dotnet-hostfxr-6.0 dotnet-runtime-6.0 dotnet-runtime-deps-6.0 2023-10-25T13:22:06.4570909Z azure-arm.build_image: dotnet-sdk-6.0 dotnet-targeting-pack-6.0 netstandard-targeting-pack-2.1 2023-10-25T13:22:06.5076432Z azure-arm.build_image: 0 upgraded, 10 newly installed, 0 to remove and 2 not upgraded. 2023-10-25T13:22:06.5079024Z azure-arm.build_image: Need to get 125 MB of archives. 2023-10-25T13:22:06.5084698Z azure-arm.build_image: After this operation, 508 MB of additional disk space will be used. 2023-10-25T13:22:06.5089443Z azure-arm.build_image: Get:1 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main amd64 dotnet-host amd64 7.0.13-1 [57.2 kB] 2023-10-25T13:22:06.5104325Z azure-arm.build_image: Get:2 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main amd64 dotnet-hostfxr-6.0 amd64 6.0.24-1 [142 kB] 2023-10-25T13:22:06.5135291Z azure-arm.build_image: Get:3 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main amd64 dotnet-runtime-deps-6.0 amd64 6.0.24-1 [2796 B] 2023-10-25T13:22:06.5154071Z azure-arm.build_image: Get:4 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main amd64 dotnet-runtime-6.0 amd64 6.0.24-1 [23.0 MB] 2023-10-25T13:22:06.5868705Z azure-arm.build_image: Get:5 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main amd64 aspnetcore-runtime-6.0 amd64 6.0.24-1 [6622 kB] 2023-10-25T13:22:06.6042033Z azure-arm.build_image: Get:6 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main amd64 dotnet-targeting-pack-6.0 amd64 6.0.24-1 [2133 kB] 2023-10-25T13:22:06.6104028Z azure-arm.build_image: Get:7 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main amd64 aspnetcore-targeting-pack-6.0 amd64 6.0.24-1 [1315 kB] 2023-10-25T13:22:06.6164279Z azure-arm.build_image: Get:8 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main amd64 dotnet-apphost-pack-6.0 amd64 6.0.24-1 [3522 kB] 2023-10-25T13:22:06.6269764Z azure-arm.build_image: Get:9 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main amd64 netstandard-targeting-pack-2.1 amd64 2.1.0-1 [1476 kB] 2023-10-25T13:22:06.6319180Z azure-arm.build_image: Get:10 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main amd64 dotnet-sdk-6.0 amd64 6.0.416-1 [86.8 MB] 2023-10-25T13:22:07.0657469Z azure-arm.build_image: Fetched 125 MB in 0s (336 MB/s) 2023-10-25T13:22:08.7975764Z azure-arm.build_image: Selecting previously unselected package dotnet-host. 2023-10-25T13:22:08.8428863Z azure-arm.build_image: (Reading database ... 141299 files and directories currently installed.) 2023-10-25T13:22:08.8457706Z azure-arm.build_image: Preparing to unpack .../0-dotnet-host_7.0.13-1_amd64.deb ... 2023-10-25T13:22:08.8616875Z azure-arm.build_image: Unpacking dotnet-host (7.0.13-1) ... 2023-10-25T13:22:09.0148521Z azure-arm.build_image: Selecting previously unselected package dotnet-hostfxr-6.0. 2023-10-25T13:22:09.0224307Z azure-arm.build_image: Preparing to unpack .../1-dotnet-hostfxr-6.0_6.0.24-1_amd64.deb ... 2023-10-25T13:22:09.0744848Z azure-arm.build_image: Unpacking dotnet-hostfxr-6.0 (6.0.24-1) ... 2023-10-25T13:22:09.2894427Z azure-arm.build_image: Selecting previously unselected package dotnet-runtime-deps-6.0. 2023-10-25T13:22:09.2964588Z azure-arm.build_image: Preparing to unpack .../2-dotnet-runtime-deps-6.0_6.0.24-1_amd64.deb ... 2023-10-25T13:22:09.3147148Z azure-arm.build_image: Unpacking dotnet-runtime-deps-6.0 (6.0.24-1) ... 2023-10-25T13:22:09.4802265Z azure-arm.build_image: Selecting previously unselected package dotnet-runtime-6.0. 2023-10-25T13:22:09.4877242Z azure-arm.build_image: Preparing to unpack .../3-dotnet-runtime-6.0_6.0.24-1_amd64.deb ... 2023-10-25T13:22:09.5052552Z azure-arm.build_image: Unpacking dotnet-runtime-6.0 (6.0.24-1) ... 2023-10-25T13:22:11.6414770Z azure-arm.build_image: Selecting previously unselected package aspnetcore-runtime-6.0. 2023-10-25T13:22:11.6487842Z azure-arm.build_image: Preparing to unpack .../4-aspnetcore-runtime-6.0_6.0.24-1_amd64.deb ... 2023-10-25T13:22:11.6634786Z azure-arm.build_image: Unpacking aspnetcore-runtime-6.0 (6.0.24-1) ... 2023-10-25T13:22:12.4219746Z azure-arm.build_image: Selecting previously unselected package dotnet-targeting-pack-6.0. 2023-10-25T13:22:12.4297167Z azure-arm.build_image: Preparing to unpack .../5-dotnet-targeting-pack-6.0_6.0.24-1_amd64.deb ... 2023-10-25T13:22:12.4435306Z azure-arm.build_image: Unpacking dotnet-targeting-pack-6.0 (6.0.24-1) ... 2023-10-25T13:22:13.3986940Z azure-arm.build_image: Selecting previously unselected package aspnetcore-targeting-pack-6.0. 2023-10-25T13:22:13.4060259Z azure-arm.build_image: Preparing to unpack .../6-aspnetcore-targeting-pack-6.0_6.0.24-1_amd64.deb ... 2023-10-25T13:22:13.4201772Z azure-arm.build_image: Unpacking aspnetcore-targeting-pack-6.0 (6.0.24-1) ... 2023-10-25T13:22:14.2034253Z azure-arm.build_image: Selecting previously unselected package dotnet-apphost-pack-6.0. 2023-10-25T13:22:14.2110951Z azure-arm.build_image: Preparing to unpack .../7-dotnet-apphost-pack-6.0_6.0.24-1_amd64.deb ... 2023-10-25T13:22:14.2277490Z azure-arm.build_image: Unpacking dotnet-apphost-pack-6.0 (6.0.24-1) ... 2023-10-25T13:22:14.9873605Z azure-arm.build_image: Selecting previously unselected package netstandard-targeting-pack-2.1. 2023-10-25T13:22:14.9952629Z azure-arm.build_image: Preparing to unpack .../8-netstandard-targeting-pack-2.1_2.1.0-1_amd64.deb ... 2023-10-25T13:22:15.0088097Z azure-arm.build_image: Unpacking netstandard-targeting-pack-2.1 (2.1.0-1) ... 2023-10-25T13:22:15.7923813Z azure-arm.build_image: Selecting previously unselected package dotnet-sdk-6.0. 2023-10-25T13:22:15.8004020Z azure-arm.build_image: Preparing to unpack .../9-dotnet-sdk-6.0_6.0.416-1_amd64.deb ... 2023-10-25T13:22:15.8154339Z azure-arm.build_image: Unpacking dotnet-sdk-6.0 (6.0.416-1) ... 2023-10-25T13:22:25.3532023Z azure-arm.build_image: Setting up dotnet-host (7.0.13-1) ... 2023-10-25T13:22:25.4139838Z azure-arm.build_image: Setting up dotnet-apphost-pack-6.0 (6.0.24-1) ... 2023-10-25T13:22:25.4604591Z azure-arm.build_image: Setting up netstandard-targeting-pack-2.1 (2.1.0-1) ... 2023-10-25T13:22:25.4990923Z azure-arm.build_image: Setting up dotnet-targeting-pack-6.0 (6.0.24-1) ... 2023-10-25T13:22:25.5397261Z azure-arm.build_image: Setting up dotnet-runtime-deps-6.0 (6.0.24-1) ... 2023-10-25T13:22:25.5854358Z azure-arm.build_image: Setting up aspnetcore-targeting-pack-6.0 (6.0.24-1) ... 2023-10-25T13:22:25.6245923Z azure-arm.build_image: Setting up dotnet-hostfxr-6.0 (6.0.24-1) ... 2023-10-25T13:22:25.6684886Z azure-arm.build_image: Setting up dotnet-runtime-6.0 (6.0.24-1) ... 2023-10-25T13:22:25.7136616Z azure-arm.build_image: Setting up aspnetcore-runtime-6.0 (6.0.24-1) ... 2023-10-25T13:22:25.7645751Z azure-arm.build_image: Setting up dotnet-sdk-6.0 (6.0.416-1) ... 2023-10-25T13:22:25.7950321Z azure-arm.build_image: This software may collect information about you and your use of the software, and send that to Microsoft. 2023-10-25T13:22:25.7952987Z azure-arm.build_image: Please visit http://aka.ms/dotnet-cli-eula for more information. 2023-10-25T13:22:25.7957186Z azure-arm.build_image: Welcome to .NET! 2023-10-25T13:22:25.7961507Z azure-arm.build_image: --------------------- 2023-10-25T13:22:25.7966632Z azure-arm.build_image: Learn more about .NET: https://aka.ms/dotnet-docs 2023-10-25T13:22:25.7970619Z azure-arm.build_image: Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli-docs 2023-10-25T13:22:25.7973314Z azure-arm.build_image: 2023-10-25T13:22:25.7977961Z azure-arm.build_image: Telemetry 2023-10-25T13:22:25.7981369Z azure-arm.build_image: --------- 2023-10-25T13:22:25.7990332Z azure-arm.build_image: The .NET tools collect usage data in order to help us improve your experience. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell. 2023-10-25T13:22:25.7993139Z azure-arm.build_image: 2023-10-25T13:22:25.7993991Z azure-arm.build_image: Read more about .NET CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry 2023-10-25T13:22:25.7997916Z azure-arm.build_image: 2023-10-25T13:22:25.8001789Z azure-arm.build_image: Configuring... 2023-10-25T13:22:25.8006613Z azure-arm.build_image: -------------- 2023-10-25T13:22:25.8012040Z azure-arm.build_image: A command is running to populate your local package cache to improve restore speed and enable offline access. This command takes up to one minute to complete and only runs once. 2023-10-25T13:22:25.8923765Z azure-arm.build_image: Processing triggers for man-db (2.10.2-1) ... 2023-10-25T13:22:26.5094029Z azure-arm.build_image: NEEDRESTART-VER: 3.5 2023-10-25T13:22:26.7171490Z azure-arm.build_image: NEEDRESTART-KCUR: 6.2.0-1015-azure 2023-10-25T13:22:26.7175823Z azure-arm.build_image: NEEDRESTART-KEXP: 6.2.0-1015-azure 2023-10-25T13:22:26.7179879Z azure-arm.build_image: NEEDRESTART-KSTA: 1 2023-10-25T13:22:26.7183490Z azure-arm.build_image: NEEDRESTART-SVC: packagekit.service 2023-10-25T13:22:26.7187381Z azure-arm.build_image: NEEDRESTART-SVC: ssh.service 2023-10-25T13:22:26.7190853Z azure-arm.build_image: NEEDRESTART-SVC: systemd-journald.service 2023-10-25T13:22:26.7195714Z azure-arm.build_image: NEEDRESTART-SVC: systemd-logind.service 2023-10-25T13:22:26.7199753Z azure-arm.build_image: NEEDRESTART-SVC: systemd-manager 2023-10-25T13:22:26.7204372Z azure-arm.build_image: NEEDRESTART-SVC: systemd-networkd.service 2023-10-25T13:22:26.7207693Z azure-arm.build_image: NEEDRESTART-SVC: systemd-resolved.service 2023-10-25T13:22:26.7214907Z azure-arm.build_image: NEEDRESTART-SVC: systemd-udevd.service 2023-10-25T13:22:26.7216117Z azure-arm.build_image: NEEDRESTART-SVC: user@1000.service 2023-10-25T13:22:26.7219720Z azure-arm.build_image: NEEDRESTART-SVC: walinuxagent.service 2023-10-25T13:22:27.5992188Z azure-arm.build_image: Determing if .NET Core (dotnet-sdk-7.0) is installed 2023-10-25T13:22:27.7165372Z azure-arm.build_image: Could not find .NET Core (dotnet-sdk-7.0), installing... 2023-10-25T13:22:27.7527023Z azure-arm.build_image: Reading package lists... 2023-10-25T13:22:27.9314100Z azure-arm.build_image: Building dependency tree... 2023-10-25T13:22:27.9318278Z azure-arm.build_image: Reading state information... 2023-10-25T13:22:28.0457891Z azure-arm.build_image: The following packages were automatically installed and are no longer required: 2023-10-25T13:22:28.0464790Z azure-arm.build_image: liblldb-13 liblldb-15 2023-10-25T13:22:28.0465669Z azure-arm.build_image: Use 'sudo apt autoremove' to remove them. 2023-10-25T13:22:28.0470103Z azure-arm.build_image: The following additional packages will be installed: 2023-10-25T13:22:28.0475126Z azure-arm.build_image: aspnetcore-runtime-7.0 aspnetcore-targeting-pack-7.0 dotnet-apphost-pack-7.0 2023-10-25T13:22:28.0478938Z azure-arm.build_image: dotnet-hostfxr-7.0 dotnet-runtime-7.0 dotnet-runtime-deps-7.0 2023-10-25T13:22:28.0481883Z azure-arm.build_image: dotnet-targeting-pack-7.0 2023-10-25T13:22:28.0629540Z azure-arm.build_image: The following NEW packages will be installed: 2023-10-25T13:22:28.0634688Z azure-arm.build_image: aspnetcore-runtime-7.0 aspnetcore-targeting-pack-7.0 dotnet-apphost-pack-7.0 2023-10-25T13:22:28.0638835Z azure-arm.build_image: dotnet-hostfxr-7.0 dotnet-runtime-7.0 dotnet-runtime-deps-7.0 dotnet-sdk-7.0 2023-10-25T13:22:28.0640916Z azure-arm.build_image: dotnet-targeting-pack-7.0 2023-10-25T13:22:28.1301440Z azure-arm.build_image: 0 upgraded, 8 newly installed, 0 to remove and 2 not upgraded. 2023-10-25T13:22:28.1305657Z azure-arm.build_image: Need to get 146 MB of archives. 2023-10-25T13:22:28.1310842Z azure-arm.build_image: After this operation, 564 MB of additional disk space will be used. 2023-10-25T13:22:28.1315322Z azure-arm.build_image: Get:1 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main amd64 dotnet-runtime-deps-7.0 amd64 7.0.13-1 [2886 B] 2023-10-25T13:22:28.1332054Z azure-arm.build_image: Get:2 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main amd64 dotnet-hostfxr-7.0 amd64 7.0.13-1 [144 kB] 2023-10-25T13:22:28.1379161Z azure-arm.build_image: Get:3 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main amd64 dotnet-runtime-7.0 amd64 7.0.13-1 [23.2 MB] 2023-10-25T13:22:28.2148121Z azure-arm.build_image: Get:4 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main amd64 aspnetcore-runtime-7.0 amd64 7.0.13-1 [7064 kB] 2023-10-25T13:22:28.2301289Z azure-arm.build_image: Get:5 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main amd64 dotnet-targeting-pack-7.0 amd64 7.0.13-1 [2567 kB] 2023-10-25T13:22:28.2382680Z azure-arm.build_image: Get:6 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main amd64 aspnetcore-targeting-pack-7.0 amd64 7.0.13-1 [1515 kB] 2023-10-25T13:22:28.2439911Z azure-arm.build_image: Get:7 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main amd64 dotnet-apphost-pack-7.0 amd64 7.0.13-1 [3524 kB] 2023-10-25T13:22:28.2542368Z azure-arm.build_image: Get:8 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main amd64 dotnet-sdk-7.0 amd64 7.0.403-1 [108 MB] 2023-10-25T13:22:28.6939837Z azure-arm.build_image: Fetched 146 MB in 0s (368 MB/s) 2023-10-25T13:22:30.8038475Z azure-arm.build_image: Selecting previously unselected package dotnet-runtime-deps-7.0. 2023-10-25T13:22:30.8469139Z azure-arm.build_image: (Reading database ... 145404 files and directories currently installed.) 2023-10-25T13:22:30.8499186Z azure-arm.build_image: Preparing to unpack .../0-dotnet-runtime-deps-7.0_7.0.13-1_amd64.deb ... 2023-10-25T13:22:30.8638607Z azure-arm.build_image: Unpacking dotnet-runtime-deps-7.0 (7.0.13-1) ... 2023-10-25T13:22:30.9904354Z azure-arm.build_image: Selecting previously unselected package dotnet-hostfxr-7.0. 2023-10-25T13:22:30.9976991Z azure-arm.build_image: Preparing to unpack .../1-dotnet-hostfxr-7.0_7.0.13-1_amd64.deb ... 2023-10-25T13:22:31.0232075Z azure-arm.build_image: Unpacking dotnet-hostfxr-7.0 (7.0.13-1) ... 2023-10-25T13:22:31.1496699Z azure-arm.build_image: Selecting previously unselected package dotnet-runtime-7.0. 2023-10-25T13:22:31.1575775Z azure-arm.build_image: Preparing to unpack .../2-dotnet-runtime-7.0_7.0.13-1_amd64.deb ... 2023-10-25T13:22:31.1765820Z azure-arm.build_image: Unpacking dotnet-runtime-7.0 (7.0.13-1) ... 2023-10-25T13:22:33.4944783Z azure-arm.build_image: Selecting previously unselected package aspnetcore-runtime-7.0. 2023-10-25T13:22:33.5024230Z azure-arm.build_image: Preparing to unpack .../3-aspnetcore-runtime-7.0_7.0.13-1_amd64.deb ... 2023-10-25T13:22:33.5181415Z azure-arm.build_image: Unpacking aspnetcore-runtime-7.0 (7.0.13-1) ... 2023-10-25T13:22:34.2932800Z azure-arm.build_image: Selecting previously unselected package dotnet-targeting-pack-7.0. 2023-10-25T13:22:34.3006755Z azure-arm.build_image: Preparing to unpack .../4-dotnet-targeting-pack-7.0_7.0.13-1_amd64.deb ... 2023-10-25T13:22:34.3145774Z azure-arm.build_image: Unpacking dotnet-targeting-pack-7.0 (7.0.13-1) ... 2023-10-25T13:22:35.5219571Z azure-arm.build_image: Selecting previously unselected package aspnetcore-targeting-pack-7.0. 2023-10-25T13:22:35.5303407Z azure-arm.build_image: Preparing to unpack .../5-aspnetcore-targeting-pack-7.0_7.0.13-1_amd64.deb ... 2023-10-25T13:22:35.5441023Z azure-arm.build_image: Unpacking aspnetcore-targeting-pack-7.0 (7.0.13-1) ... 2023-10-25T13:22:36.3107164Z azure-arm.build_image: Selecting previously unselected package dotnet-apphost-pack-7.0. 2023-10-25T13:22:36.3185976Z azure-arm.build_image: Preparing to unpack .../6-dotnet-apphost-pack-7.0_7.0.13-1_amd64.deb ... 2023-10-25T13:22:36.3345533Z azure-arm.build_image: Unpacking dotnet-apphost-pack-7.0 (7.0.13-1) ... 2023-10-25T13:22:36.8291461Z azure-arm.build_image: Selecting previously unselected package dotnet-sdk-7.0. 2023-10-25T13:22:36.8370875Z azure-arm.build_image: Preparing to unpack .../7-dotnet-sdk-7.0_7.0.403-1_amd64.deb ... 2023-10-25T13:22:36.8506451Z azure-arm.build_image: Unpacking dotnet-sdk-7.0 (7.0.403-1) ... 2023-10-25T13:22:47.4367453Z azure-arm.build_image: Setting up dotnet-runtime-deps-7.0 (7.0.13-1) ... 2023-10-25T13:22:47.4900780Z azure-arm.build_image: Setting up dotnet-targeting-pack-7.0 (7.0.13-1) ... 2023-10-25T13:22:47.5420372Z azure-arm.build_image: Setting up dotnet-apphost-pack-7.0 (7.0.13-1) ... 2023-10-25T13:22:47.5869757Z azure-arm.build_image: Setting up dotnet-hostfxr-7.0 (7.0.13-1) ... 2023-10-25T13:22:47.6317200Z azure-arm.build_image: Setting up aspnetcore-targeting-pack-7.0 (7.0.13-1) ... 2023-10-25T13:22:47.6721407Z azure-arm.build_image: Setting up dotnet-runtime-7.0 (7.0.13-1) ... 2023-10-25T13:22:47.7175690Z azure-arm.build_image: Setting up aspnetcore-runtime-7.0 (7.0.13-1) ... 2023-10-25T13:22:47.7575155Z azure-arm.build_image: Setting up dotnet-sdk-7.0 (7.0.403-1) ... 2023-10-25T13:22:48.1810598Z azure-arm.build_image: NEEDRESTART-VER: 3.5 2023-10-25T13:22:48.3897633Z azure-arm.build_image: NEEDRESTART-KCUR: 6.2.0-1015-azure 2023-10-25T13:22:48.3902495Z azure-arm.build_image: NEEDRESTART-KEXP: 6.2.0-1015-azure 2023-10-25T13:22:48.3906098Z azure-arm.build_image: NEEDRESTART-KSTA: 1 2023-10-25T13:22:48.3910153Z azure-arm.build_image: NEEDRESTART-SVC: packagekit.service 2023-10-25T13:22:48.3914257Z azure-arm.build_image: NEEDRESTART-SVC: ssh.service 2023-10-25T13:22:48.3919120Z azure-arm.build_image: NEEDRESTART-SVC: systemd-journald.service 2023-10-25T13:22:48.3923478Z azure-arm.build_image: NEEDRESTART-SVC: systemd-logind.service 2023-10-25T13:22:48.3926950Z azure-arm.build_image: NEEDRESTART-SVC: systemd-manager 2023-10-25T13:22:48.3930996Z azure-arm.build_image: NEEDRESTART-SVC: systemd-networkd.service 2023-10-25T13:22:48.3935206Z azure-arm.build_image: NEEDRESTART-SVC: systemd-resolved.service 2023-10-25T13:22:48.3939679Z azure-arm.build_image: NEEDRESTART-SVC: systemd-udevd.service 2023-10-25T13:22:48.3943708Z azure-arm.build_image: NEEDRESTART-SVC: user@1000.service 2023-10-25T13:22:48.3947473Z azure-arm.build_image: NEEDRESTART-SVC: walinuxagent.service 2023-10-25T13:22:49.3578944Z azure-arm.build_image: Get:1 file:/etc/apt/apt-mirrors.txt Mirrorlist [142 B] 2023-10-25T13:22:49.3914713Z azure-arm.build_image: Hit:2 http://azure.archive.ubuntu.com/ubuntu jammy InRelease 2023-10-25T13:22:49.3918710Z azure-arm.build_image: Hit:3 http://azure.archive.ubuntu.com/ubuntu jammy-updates InRelease 2023-10-25T13:22:49.3924282Z azure-arm.build_image: Hit:4 http://azure.archive.ubuntu.com/ubuntu jammy-backports InRelease 2023-10-25T13:22:49.3928039Z azure-arm.build_image: Hit:5 http://azure.archive.ubuntu.com/ubuntu jammy-security InRelease 2023-10-25T13:22:49.4053549Z azure-arm.build_image: Hit:6 https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease 2023-10-25T13:22:50.3953484Z azure-arm.build_image: Reading package lists... 2023-10-25T13:22:50.4092159Z azure-arm.build_image: Downloading 'https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/6.0/releases.json' to './6.0.json'... 2023-10-25T13:22:51.3833119Z azure-arm.build_image: Download completed 2023-10-25T13:22:51.4300634Z azure-arm.build_image: Downloading 'https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/7.0/releases.json' to './7.0.json'... 2023-10-25T13:22:52.1996971Z azure-arm.build_image: Download completed 2023-10-25T13:23:00.1262825Z azure-arm.build_image: Downloading 'https://dotnetcli.blob.core.windows.net/dotnet/Sdk/7.0.113/dotnet-sdk-7.0.113-linux-x64.tar.gz' to './dotnet-sdk-7.0.113-linux-x64.tar.gz'... 2023-10-25T13:23:00.1264020Z azure-arm.build_image: Download completed 2023-10-25T13:23:00.3890428Z azure-arm.build_image: Downloading 'https://dotnetcli.blob.core.windows.net/dotnet/Sdk/7.0.310/dotnet-sdk-7.0.310-linux-x64.tar.gz' to './dotnet-sdk-7.0.310-linux-x64.tar.gz'... 2023-10-25T13:23:00.3892474Z azure-arm.build_image: Download completed 2023-10-25T13:23:00.9844227Z azure-arm.build_image: Downloading 'https://dotnetcli.blob.core.windows.net/dotnet/Sdk/7.0.203/dotnet-sdk-7.0.203-linux-x64.tar.gz' to './dotnet-sdk-7.0.203-linux-x64.tar.gz'... 2023-10-25T13:23:00.9846161Z azure-arm.build_image: Download completed 2023-10-25T13:23:01.1134555Z azure-arm.build_image: Downloading 'https://dotnetcli.blob.core.windows.net/dotnet/Sdk/7.0.403/dotnet-sdk-7.0.403-linux-x64.tar.gz' to './dotnet-sdk-7.0.403-linux-x64.tar.gz'... 2023-10-25T13:23:01.1137551Z azure-arm.build_image: Download completed 2023-10-25T13:23:04.3640126Z azure-arm.build_image: Downloading 'https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.416/dotnet-sdk-6.0.416-linux-x64.tar.gz' to './dotnet-sdk-6.0.416-linux-x64.tar.gz'... 2023-10-25T13:23:04.3641853Z azure-arm.build_image: Download completed 2023-10-25T13:23:11.3604244Z azure-arm.build_image: Extracting ./dotnet-sdk-7.0.203-linux-x64.tar.gz to ./tmp-dotnet-sdk-7.0.203-linux-x64 2023-10-25T13:23:55.9859167Z azure-arm.build_image: Extracting ./dotnet-sdk-7.0.310-linux-x64.tar.gz to ./tmp-dotnet-sdk-7.0.310-linux-x64 2023-10-25T13:23:58.3856314Z azure-arm.build_image: Extracting ./dotnet-sdk-7.0.113-linux-x64.tar.gz to ./tmp-dotnet-sdk-7.0.113-linux-x64 2023-10-25T13:24:00.2443917Z azure-arm.build_image: Extracting ./dotnet-sdk-6.0.416-linux-x64.tar.gz to ./tmp-dotnet-sdk-6.0.416-linux-x64 2023-10-25T13:24:12.8069057Z azure-arm.build_image: Extracting ./dotnet-sdk-7.0.403-linux-x64.tar.gz to ./tmp-dotnet-sdk-7.0.403-linux-x64 2023-10-25T13:24:12.8211359Z azure-arm.build_image: DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 2023-10-25T13:24:12.8333306Z azure-arm.build_image: DOTNET_NOLOGO=1 2023-10-25T13:24:12.8445207Z azure-arm.build_image: DOTNET_MULTILEVEL_LOOKUP=0 2023-10-25T13:24:12.8566246Z azure-arm.build_image: Installing dotnet tool nbgv 2023-10-25T13:24:12.9846280Z azure-arm.build_image: 2023-10-25T13:24:12.9848881Z azure-arm.build_image: Welcome to .NET 7.0! 2023-10-25T13:24:12.9852692Z azure-arm.build_image: --------------------- 2023-10-25T13:24:12.9856558Z azure-arm.build_image: SDK Version: 7.0.403 2023-10-25T13:24:12.9860460Z azure-arm.build_image: 2023-10-25T13:24:12.9863965Z azure-arm.build_image: ---------------- 2023-10-25T13:24:12.9869239Z azure-arm.build_image: Installed an ASP.NET Core HTTPS development certificate. 2023-10-25T13:24:12.9873519Z azure-arm.build_image: To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only). 2023-10-25T13:24:12.9876673Z azure-arm.build_image: Learn about HTTPS: https://aka.ms/dotnet-https 2023-10-25T13:24:12.9880966Z azure-arm.build_image: ---------------- 2023-10-25T13:24:12.9885645Z azure-arm.build_image: Write your first app: https://aka.ms/dotnet-hello-world 2023-10-25T13:24:12.9889482Z azure-arm.build_image: Find out what's new: https://aka.ms/dotnet-whats-new 2023-10-25T13:24:12.9893536Z azure-arm.build_image: Explore documentation: https://aka.ms/dotnet-docs 2023-10-25T13:24:12.9898432Z azure-arm.build_image: Report issues and find source on GitHub: https://github.com/dotnet/core 2023-10-25T13:24:12.9902265Z azure-arm.build_image: Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli 2023-10-25T13:24:12.9905498Z azure-arm.build_image: -------------------------------------------------------------------------------------- 2023-10-25T13:24:15.5976324Z azure-arm.build_image: You can invoke the tool using the following command: nbgv 2023-10-25T13:24:15.5979462Z azure-arm.build_image: Tool 'nbgv' (version '3.6.133') was successfully installed. 2023-10-25T13:24:16.4594147Z azure-arm.build_image: Pester v5.5.0 2023-10-25T13:24:16.4724811Z azure-arm.build_image: 2023-10-25T13:24:16.4729080Z azure-arm.build_image: Starting discovery in 1 files. 2023-10-25T13:24:16.6528696Z azure-arm.build_image: Discovery found 6 tests in 171ms. 2023-10-25T13:24:16.6661866Z azure-arm.build_image: Running tests. 2023-10-25T13:24:16.6766925Z azure-arm.build_image: 2023-10-25T13:24:16.6773047Z azure-arm.build_image: Running tests from '/imagegeneration/tests/DotnetSDK.Tests.ps1' 2023-10-25T13:24:16.8455739Z azure-arm.build_image: Describing Dotnet and tools 2023-10-25T13:24:16.8459597Z azure-arm.build_image: Context Default 2023-10-25T13:24:17.0785581Z azure-arm.build_image: [+] Default Dotnet SDK is available 236ms (201ms|35ms) 2023-10-25T13:24:17.0963199Z azure-arm.build_image: Context Dotnet 6.0 2023-10-25T13:24:17.1047960Z azure-arm.build_image: [+] SDK 6.0 is available 8ms (5ms|3ms) 2023-10-25T13:24:17.1096327Z azure-arm.build_image: [+] Runtime 6.0 is available 3ms (2ms|1ms) 2023-10-25T13:24:17.1137020Z azure-arm.build_image: Context Dotnet 7.0 2023-10-25T13:24:17.1171997Z azure-arm.build_image: [+] SDK 7.0 is available 3ms (2ms|2ms) 2023-10-25T13:24:17.1219346Z azure-arm.build_image: [+] Runtime 7.0 is available 3ms (2ms|1ms) 2023-10-25T13:24:17.1262405Z azure-arm.build_image: Context Dotnet tools 2023-10-25T13:24:17.2473961Z azure-arm.build_image: [+] nbgv is available 120ms (119ms|2ms) 2023-10-25T13:24:17.4224459Z azure-arm.build_image: Tests completed in 820ms 2023-10-25T13:24:17.4294987Z azure-arm.build_image: Tests Passed: 6, Failed: 0, Skipped: 0 NotRun: 0

ilia-shipitsin commented 1 year ago

it says that dotnet sdk was installed.

does error happen if you retry image generation ?

hiran-filho commented 1 year ago

@ilia-shipitsin

Then running again, everything went normally, when I sent the Packer script a few messages above, I explained that I don't understand but that running again everything went normally.

thank you very much