Skip to content

Commit

Permalink
[Ubuntu] Remove zip versions from Azuremodules (#9774)
Browse files Browse the repository at this point in the history
  • Loading branch information
sssharif committed May 13, 2024
1 parent 530454b commit dca8e74
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 25 deletions.
16 changes: 0 additions & 16 deletions images/ubuntu/scripts/build/Install-PowerShellAzModules.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,6 @@ foreach ($module in $modules) {
Save-Module -Path $modulePath -Name $moduleName -RequiredVersion $version -Force
}

$assets = Invoke-RestMethod $module.url

# Get github release asset for each version
foreach ($toolVersion in $module.zip_versions) {
$asset = $assets | Where-Object version -eq $toolVersion `
| Select-Object -ExpandProperty files `
| Select-Object -First 1

if (-not $asset) {
Write-Host "Asset for ${moduleName} ${toolVersion} was not found in versions manifest"
exit 1
}

Write-Host "Downloading asset for ${moduleName} ${toolVersion}: $($asset.filename)"
Invoke-DownloadWithRetry $asset.download_url -Destination "$installPSModulePath/$($asset.filename)"
}
}

Invoke-PesterTests -TestFile "PowerShellModules" -TestName "AzureModules"
3 changes: 0 additions & 3 deletions images/ubuntu/toolsets/toolset-2004.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,8 @@
"azureModules": [
{
"name": "az",
"url" : "https://raw.githubusercontent.com/Azure/az-ps-module-versions/main/versions-manifest.json",
"versions": [
"11.3.1"
],
"zip_versions": [
]
}
],
Expand Down
3 changes: 0 additions & 3 deletions images/ubuntu/toolsets/toolset-2204.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,8 @@
"azureModules": [
{
"name": "az",
"url" : "https://raw.githubusercontent.com/Azure/az-ps-module-versions/main/versions-manifest.json",
"versions": [
"11.3.1"
],
"zip_versions": [
]
}
],
Expand Down
3 changes: 0 additions & 3 deletions images/ubuntu/toolsets/toolset-2404.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,8 @@
"azureModules": [
{
"name": "az",
"url" : "https://raw.githubusercontent.com/Azure/az-ps-module-versions/main/versions-manifest.json",
"versions": [
"11.5.0"
],
"zip_versions": [
]
}
],
Expand Down

0 comments on commit dca8e74

Please sign in to comment.