Azure - Cli

Card Puncher Data Processing

About

The Azure cli command utility. The Azure portal (web-based admin panel) at the command line.

  • The CLI 1.0 start with azure.
  • The CLI 2.0 uses az.

Installation

2.0

Microsoft Installer

See Azure CLI 2.0 installation.

  • With the msi
where az
C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\az.cmd

Docker

# Run it and get a bash prompt
docker run -it microsoft/azure-cli:latest
# Login in Azure 
# Commit the container
docker commit containerName gerardnico/azure-cli:latest
# Then mount the actual directory
SOURCE_MOUNT_POINT=$(cygpath -u $(readlink -f .))
docker run \
  -it \
  --rm \
  --mount type=bind,source=/$SOURCE_MOUNT_POINT,target=/wd \
  gerardnico/azure-cli:latest
  
# Then:
apk update
apk add curl
curl -L https://github.com/sequenceiq/docker-alpine-dig/releases/download/v9.10.2/dig.tgz|tar -xzv -C /usr/local/bin/
apk add sshpass

https://hub.docker.com/r/azuresdk/azure-cli-python/

More on Linux - apk (Alpine Package management)

1.0

Node

Node

npm install -g azure-cli
azure --help

Docker

docker run -it microsoft/azure-cli:0.10.17

Support

  • C:\Users\username\.azure\azure.err

Sample Command





Discover More
Azure Container Public Access Level
Azure - Container (Storage)

With Storage explorer. With cli 1.0
Card Puncher Data Processing
Azure - Data Lake (ADLS)

A Data lake storage has more enterprise features than a blob storage. See a comparison with...
Card Puncher Data Processing
Azure - File System

Azure knows two types of file system: Blob (default) Data Lake (Enterprise, Performance) Portal Azure cli Azure Powershell Storage...
Storage Account Access Key
Azure - Storage Account (SA)

Storage is access through what the call a Storage account. The storage account is much more to split the functionalities. Azure has two type of storage account: Azure Storage (Blob) Data Lake Store...
Card Puncher Data Processing
Azure - VM

VM management in Azure Most of the commands in this article are created with the cli but your can also used third party library. Example with: Java...
Card Puncher Data Processing
Azure - Virtual Network (Vnet)

vnet in Azure With the cli 2.0 creates a virtual network named TestVNet1 and a subnet named FrontEnd. Vnet Update...
Azure Storage Structure
Azure - Windows Azure Storage Blob (WASB) - HDFS

Windows Azure Storage Blob (WASB) is an file system implemented as an extension built on top of the HDFS APIs and is in many ways HDFS. The WASB variation uses: SSL certificates for improved security...
12g Obiee Standard Topology
OBIEE - 12.2.1.3 - Linux Installation 12C on Azure

An installation procedure: on a Azure VM Linux. with an Oracle Database with a standard topology (ie a WebLogic Server domain that contains an Administration Server and a cluster that contains two...
12g Obiee Standard Topology
OBIEE - 12.2.1.3 - Windows Installation 12C on Azure

An installation procedure: on a Azure VM Windows. with a SQL Server database with a standard topology (ie a WebLogic Server domain that contains an Administration Server and a cluster that contains...
Card Puncher Data Processing
SQL Server - Installation on Azure via an image

How to install SQL Server on an Azure VM. Adapted from: this article with this: image...



Share this page:
Follow us:
Task Runner