A test image used to figure out what going on inside Azure VMSS (Windows).
91
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\"'
Content type
Image
Digest
sha256:83690aba8…
Size
594.1 MB
Last updated
about 3 years ago
docker pull gimlichael/servercore-dotnet-lts:ltsc2022