From 93eadd1c916b593123c2c16da9b7cc09be3e0b17 Mon Sep 17 00:00:00 2001 From: Justin Chung <124807742+jshigetomi@users.noreply.github.com> Date: Fri, 18 Sep 2026 11:38:40 -0500 Subject: [PATCH] Add Azure Linux 4 RPM support (#28021) Co-authored-by: Justin Chung Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- tools/packages.microsoft.com/mapping.json | 16 ++++++++++++++++ tools/packaging/packaging.psm1 | 14 +++++++------- 2 files changed, 23 insertions(+), 7 deletions(-) diff --git a/tools/packages.microsoft.com/mapping.json b/tools/packages.microsoft.com/mapping.json index 24cd61b58..6da204395 100644 --- a/tools/packages.microsoft.com/mapping.json +++ b/tools/packages.microsoft.com/mapping.json @@ -60,6 +60,22 @@ "PackageFormat": "PACKAGE_NAME-POWERSHELL_RELEASE-1.cm.x86_64.rpm", "channel": "preview" }, + { + "url": "azurelinux-4.0-beta-microsoft-aarch64", + "distribution": [ + "azl" + ], + "PackageFormat": "PACKAGE_NAME-POWERSHELL_RELEASE-1.cm.aarch64.rpm", + "channel": "stable" + }, + { + "url": "azurelinux-4.0-beta-microsoft-x86_64", + "distribution": [ + "azl" + ], + "PackageFormat": "PACKAGE_NAME-POWERSHELL_RELEASE-1.cm.x86_64.rpm", + "channel": "stable" + }, { "url": "microsoft-debian-stretch-prod", "distribution": [ diff --git a/tools/packaging/packaging.psm1 b/tools/packaging/packaging.psm1 index 1825104f0..775558711 100644 --- a/tools/packaging/packaging.psm1 +++ b/tools/packaging/packaging.psm1 @@ -2106,20 +2106,20 @@ function Get-PackageDependencies "libicu" ) } elseif ($Distribution -eq 'cm') { - # Taken from the list here: - # https://github.com/dotnet/dotnet-docker/blob/d451d6e9427f58c8508f1297c862663a27eb609f/src/runtime-deps/6.0/cbl-mariner1.0/amd64/Dockerfile#L6 + # Azure Linux 3 and 4 use the same .NET 11 runtime dependencies: + # https://github.com/dotnet/dotnet-docker/blob/7962e8c9336303584720344bd644287a1fe77844/src/runtime-deps/11.0/azurelinux4.0/amd64/Dockerfile $Dependencies = @( + "ca-certificates" "glibc" - "libgcc" - "krb5" - "libstdc++" - "zlib" "icu" + "libgcc" + "libstdc++" "openssl-libs" + "tzdata" ) if($Script:Options.Runtime -like 'fx*') { $Dependencies += @( - "dotnet-runtime-10.0" + "dotnet-runtime-11.0" ) } } elseif ($Distribution -eq 'macOS') {