Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,15 @@ wps | Microsoft.SignalRService/webPubSub

```bash
latest_azqr=$(curl -sL https://api.github.com/repos/Azure/azqr/releases/latest | jq -r ".tag_name" | cut -c1-)
wget https://github.com/Azure/azqr/releases/download/$latest_azqr/azqr-linux-arm64.zip -O azqr.zip
wget https://github.com/Azure/azqr/releases/download/$latest_azqr/azqr-linux-amd64.zip -O azqr.zip
unzip -uj -qq azqr.zip
rm azqr.zip
chmod +x azqr
./azqr --version
```

> For ARM64 architecture, use `azqr-linux-arm64.zip` instead of `azqr-linux-amd64.zip`.

### Install on Windows

Use `winget`:
Expand Down
14 changes: 12 additions & 2 deletions docs/content/en/docs/Install/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@ description: Learn how to install Azure Quick Review (azqr)

```bash
latest_azqr=$(curl -sL https://api.github.com/repos/Azure/azqr/releases/latest | jq -r ".tag_name" | cut -c1-)
wget https://github.com/Azure/azqr/releases/download/$latest_azqr/azqr-ubuntu-latest-amd64 -O azqr
wget https://github.com/Azure/azqr/releases/download/$latest_azqr/azqr-linux-amd64.zip -O azqr.zip
unzip -uj -qq azqr.zip
rm azqr.zip
chmod +x azqr
```

> For ARM64 architecture, use `azqr-linux-arm64.zip` instead of `azqr-linux-amd64.zip`.

## Install on Windows

Use `winget`:
Expand All @@ -24,9 +28,15 @@ or download the executable file:

``` console
$latest_azqr=$(iwr https://api.github.com/repos/Azure/azqr/releases/latest).content | convertfrom-json | Select-Object -ExpandProperty tag_name
iwr https://github.com/Azure/azqr/releases/download/$latest_azqr/azqr-windows-latest-amd64.exe -OutFile azqr.exe
iwr https://github.com/Azure/azqr/releases/download/$latest_azqr/azqr-win-amd64.zip -OutFile azqr.zip
Expand-Archive -Path azqr.zip -DestinationPath ./azqr_bin
Get-ChildItem -Path ./azqr_bin -Recurse -File | ForEach-Object { Move-Item -Path $_.FullName -Destination . -Force }
Remove-Item -Path ./azqr_bin -Recurse -Force
Remove-Item -Path azqr.zip
```

> For ARM64 architecture, use `azqr-win-arm64.zip` instead of `azqr-win-amd64.zip`.

## Install on Mac

Use `homebrew`:
Expand Down
4 changes: 3 additions & 1 deletion examples/cicd/azdo-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ pool:
steps:
- script: |
latest_azqr=$(curl -sL https://api.github.com/repos/Azure/azqr/releases/latest | jq -r ".tag_name" | cut -c1-) \
&& wget https://github.com/Azure/azqr/releases/download/$latest_azqr/azqr-ubuntu-latest-amd64 -O /usr/local/bin/azqr \
&& wget https://github.com/Azure/azqr/releases/download/$latest_azqr/azqr-linux-amd64.zip -O azqr.zip \
&& unzip -uj -qq azqr.zip -d /usr/local/bin \
&& rm azqr.zip \
&& chmod +x /usr/local/bin/azqr
displayName: "Install azqr"

Expand Down
4 changes: 3 additions & 1 deletion examples/cicd/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ jobs:
- name: Install azqr
run: |
latestAzqr=$(curl -sL https://api.github.com/repos/Azure/azqr/releases/latest | jq -r ".tag_name" | cut -c1-) \
&& wget https://github.com/Azure/azqr/releases/download/$latestAzqr/azqr-ubuntu-latest-amd64 -O /usr/local/bin/azqr \
&& wget https://github.com/Azure/azqr/releases/download/$latestAzqr/azqr-linux-amd64.zip -O azqr.zip \
&& unzip -uj -qq azqr.zip -d /usr/local/bin \
&& rm azqr.zip \
&& chmod +x /usr/local/bin/azqr

# Run azqr scan
Expand Down
10 changes: 8 additions & 2 deletions jumpstart_drops/azqr-tutorial/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ Before you begin the installation, ensure you have the following prerequisites:

```bash
latest_azqr=$(curl -sL https://api.github.com/repos/Azure/azqr/releases/latest | jq -r ".tag_name" | cut -c1-)
wget https://github.com/Azure/azqr/releases/download/$latest_azqr/azqr-ubuntu-latest-amd64 -O azqr
wget https://github.com/Azure/azqr/releases/download/$latest_azqr/azqr-linux-amd64.zip -O azqr.zip
unzip -uj -qq azqr.zip
rm azqr.zip
```

3. Make the downloaded file executable:
Expand All @@ -61,7 +63,11 @@ Before you begin the installation, ensure you have the following prerequisites:

```bash
$latest_azqr=$(iwr https://api.github.com/repos/Azure/azqr/releases/latest).content | convertfrom-json | Select-Object -ExpandProperty tag_name
iwr https://github.com/Azure/azqr/releases/download/$latest_azqr/azqr-windows-latest-amd64.exe -OutFile azqr.exe
iwr https://github.com/Azure/azqr/releases/download/$latest_azqr/azqr-win-amd64.zip -OutFile azqr.zip
Expand-Archive -Path azqr.zip -DestinationPath ./azqr_bin
Get-ChildItem -Path ./azqr_bin -Recurse -File | ForEach-Object { Move-Item -Path $_.FullName -Destination . -Force }
Remove-Item -Path ./azqr_bin -Recurse -Force
Remove-Item -Path azqr.zip
```

### Installation on Mac
Expand Down
Loading