Git Product home page Git Product logo

az-cli's Introduction

Build Status

This is a subset of the python Azure CLI, az, implemented in Go. The purpose is to make it easier to install and use the Azure CLI in environments that don't already have python installed (namely my CI build images).

I have only implemented/tested just enough to make this a useful tool for my own purposes.

If there are az commands that you require, pull requests are welcome but feature requests will be closed.

Install

Mac

curl -sLO https://github.com/carolynvs/az-cli/releases/download/latest/az-darwin-amd64
chmod +x az-darwin-amd64
mv az-darwin-amd64 /usr/local/bin/az

Linux

curl -sLO https://github.com/carolynvs/az-cli/releases/download/latest/az-linux-amd64
chmod +x az-linux-amd64
mv az-linux-amd64 /usr/local/bin/az

Dockerfile

I recommend that you replace latest in the URL below with a specific release, e.g. v0.1.0.

RUN curl -sLo /usr/local/bin/az https://github.com/carolynvs/az-cli/releases/download/latest/az-linux-amd64 && \
    chmod +x /usr/local/bin/az

Windows

The snippet below adds a directory to your PATH for the current session only. You will need to find a permanent location for it and add it to your PATH.

mkdir -f ~\bin
iwr 'https://github.com/carolynvs/az-cli/releases/download/latest/az-windows-amd64.exe' -UseBasicParsing -OutFile ~\bin\az.exe
$env:PATH += ";~\bin"

Supported Commands

Authentication is performed using the AZURE_STORAGE_ACCOUNT and AZURE_STORAGE_ACCESS_KEY, or AZURE_STORAGE_CONNECTION_STRING environment variables.

  • az --version
  • az storage blob upload-batch --source --destination
  • az storage blob download --container-name --name --file
  • az storage container lease acquire -c -d
  • az storage blob lease acquire -c -b -d

az-cli's People

Contributors

carolynvs avatar carolynvs-msft avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.