Befehle, um Azure Developer CLI ohne Rückfragen zu installieren, wieder zu entfernen und in Verteilungswerkzeugen zu erkennen. Ein Befehl erscheint nur, wenn er feststeht: aus dem Manifest oder als dokumentierter Standard der jeweiligen Installer-Technik.
Passende Anleitung: Silent-Install-Parameter: MSI, NSIS, Inno Setup · Programm über Registry oder PowerShell deinstallieren
Mit winget
PowerShell
winget install --id Microsoft.Azd -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.Azd -e --silentwinget uninstall --id Microsoft.Azd -e --silentNach Installer
64-Bit · MSI · en-US
Stille Installation
msiexec /i azd-windows-amd64.msi /qn /norestartProtokoll schreiben
msiexec /i azd-windows-amd64.msi /qn /norestart /l*v "%TEMP%\azure-developer-cli-install.log"Deinstallation
msiexec /x {978324AD-946F-400A-B0B8-CA4FFA4E5C94} /qn /norestart- MSI-Produktcode
- {978324AD-946F-400A-B0B8-CA4FFA4E5C94}
- Deinstallationsschlüssel in der Registry
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{978324AD-946F-400A-B0B8-CA4FFA4E5C94}
PowerShell: herunterladen, prüfen, installieren
Lädt die offizielle Datei herunter, prüft den SHA256-Hash und installiert still.
install-azure-developer-cli.ps1
$url = 'https://download.microsoft.com/download/db9e72d2-bf55-4f15-a424-5f7b86ac846d/721f0e7a-3248-44da-995d-5a06df2b5af7/azd-windows-amd64.msi'
$sha256 = '2DA3CE19FE1BE3C474A3D368F94EF5E858A5473272FDE06295CBC38190B85765'
$file = Join-Path $env:TEMP 'azd-windows-amd64.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait