powershell -ex AllSigned -c "Invoke-RestMethod 'https://aka.ms/install-azd.ps1' | Invoke-Expression"
curl -fsSL https://aka.ms/install-azd.sh | bash
powershell -ex AllSigned -c "Invoke-RestMethod 'https://aka.ms/uninstall-azd.ps1' | Invoke-Expression"
curl -fsSL https://aka.ms/uninstall-azd.sh | bash
Both the PowerShell and Linux/MacOS scripts can be downloaded and executed locally with parameters that provide additional functionality like setting the version to download and specifying where to install files.
These scripts can be used, for example, to ensure a particular version of azd is installed in a CI/CD environment.
The daily
feed is periodically updated with builds from the latest source code in the main
branch. Use the version
parameter to download the latest daily release.
powershell -ex AllSigned -c "Invoke-RestMethod 'https://aka.ms/install-azd.ps1' -OutFile 'install-azd.ps1'; ./install-azd.ps1 -Version 'daily'"
curl -fsSL https://aka.ms/install-azd.sh | bash -s -- --version daily
To download the script, use the same URL and send the output to a file.
Invoke-RestMethod 'https://aka.ms/install-azd.ps1' -OutFile 'install-azd.ps1'
To learn more about the install script parameters
Get-Help ./install-azd.ps1 -Detailed
To download and install the "daily" version of azd (most recent build)
./install-azd.ps1 -Version daily
The PowerShell install script is Authenticode signed and the signature will be automatically verified when running the script from a file on disk.
The script signature is not validated when piping output from Invoke-RestMethod
to Invoke-Expression
. The use of -ex AllSigned
in the simple install scenario handles situations where the default execution policy for PowerShell is too restrictive to run cmdlets that install-azd.ps1
requires to perform the installation.
curl -fsSL 'https://aka.ms/install-azd.sh' > install-azd.sh
chmod +x install-azd.sh
To learn more about the install script parameters
./install-azd.sh --help
To download and install the "daily" version of azd (most recent build)
./install-azd.sh --version daily