Skip to content

Instantly share code, notes, and snippets.

@aessing
Last active August 13, 2021 09:16
Show Gist options
  • Save aessing/3589984ee8a1d93062f58a33bcae76c2 to your computer and use it in GitHub Desktop.
Save aessing/3589984ee8a1d93062f58a33bcae76c2 to your computer and use it in GitHub Desktop.

Revisions

  1. aessing revised this gist Aug 13, 2021. 1 changed file with 1 addition and 6 deletions.
    7 changes: 1 addition & 6 deletions install-AzCli.ps1
    Original file line number Diff line number Diff line change
    @@ -13,11 +13,6 @@
    # WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
    # =============================================================================

    # Download AZ CLI setup
    Invoke-WebRequest -Uri https://aka.ms/installazurecliwindows -OutFile .\AzureCLI.msi

    # Install AZ CLI
    Start-Process msiexec.exe -Wait -ArgumentList '/I AzureCLI.msi /quiet /norestart'
    Invoke-WebRequest -Uri https://aka.ms/installazurecliwindows -OutFile .\AzureCLI.msi; Start-Process msiexec.exe -Wait -ArgumentList '/I AzureCLI.msi /quiet'; rm .\AzureCLI.msi

    # Clean the kitchen
    del -Force AzureCLI.msi
  2. aessing created this gist Oct 1, 2020.
    23 changes: 23 additions & 0 deletions install-AzCli.ps1
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    # =============================================================================
    # Install Azure Command-Line Interface (AZ CLI) on Windows (PowerShell)
    # https://docs.microsoft.com/en-us/cli/azure/
    # https://github.com/Azure/azure-cli
    # -----------------------------------------------------------------------------
    # Developer.......: Andre Essing (https://www.andre-essing.de/)
    # (https://github.com/aessing)
    # (https://twitter.com/aessing)
    # (https://www.linkedin.com/in/aessing/)
    # -----------------------------------------------------------------------------
    # THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
    # EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
    # WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
    # =============================================================================

    # Download AZ CLI setup
    Invoke-WebRequest -Uri https://aka.ms/installazurecliwindows -OutFile .\AzureCLI.msi

    # Install AZ CLI
    Start-Process msiexec.exe -Wait -ArgumentList '/I AzureCLI.msi /quiet /norestart'

    # Clean the kitchen
    del -Force AzureCLI.msi