Sign inSign up

gimlichael/servercore-dotnet-lts

By gimlichael

•Updated about 3 years ago

A test image used to figure out what going on inside Azure VMSS (Windows).

Image
0

91

gimlichael/servercore-dotnet-lts repository overview

A test image used to figure out what going on inside Azure VMSS (Windows).

This was the best I could come up with after a lot of trial-and-errors calling VMSS directly.

Hope someone besides me can find it useful.

Invoke-WebRequest 'https://dot.net/v1/dotnet-install.ps1' -OutFile 'dotnet-install.ps1'; ./dotnet-install.ps1 -Channel LTS -InstallDir 'C:\Program Files\dotnet'
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
If (!(Test-Path $Profile.CurrentUserAllHosts)) {New-Item -Path $Profile.CurrentUserAllHosts -Force}
Add-Content -Path $Profile.CurrentUserAllHosts -Value '$env:Path += \";C:\Program Files\dotnet;%USERPROFILE%\.dotnet\tools\"'

Tag summary

Content type

Image

Digest

sha256:83690aba8…

Size

594.1 MB

Last updated

about 3 years ago

docker pull gimlichael/servercore-dotnet-lts:ltsc2022