Tag: output

How to Configure Azure CLI Default Output

How to Configure Azure CLI Default Output Format

The Azure command-line interface (Azure CLI) is a set of commands used to create and manage Azure resources. In this blog post, I am going to show you how you can configure the Azure CLI default output format.

If you have used the Azure resources on your machine or in Azure Cloud Shell, you are aware that if you are running a command, the output you get is in the JSON format. This is great if you are building some sort of automation. However, if you are using in in the command line, it might not be the best way to read the output. You can change the output by using --output table or -o table to make it more human-readable.

To install the Azure CLI check out my blog post here.

How to Configure Azure CLI Default Output

You can also configure the Azure CLI default output to always be a specific type like the table format by running the az configure command. The Azure CLI allows for user configuration for settings such as logging, data collection, output format, and default argument values. You can learn more about the Azure CLI configuration on Microsoft Docs.

Azure CLI az configure

Azure CLI az configure

With az configure, you can manage Azure CLI configuration with this command is interactive.

Azure CLI az configure default output

Azure CLI az configure default output

Here you can now change the default output format.

Azure CLI Tip – Use AI to find az commands
If you did use the Azure CLI, you might find this tip very handy. I am talking about the az find command. The az find command provides you with example commands based on Azure documentation and usage patterns of the Azure CLI and Azure Resource Manager users.


I hope this blog post shows you how to configure the Azure CLI default output format. Are you just getting started with the Azure CLI and want some introduction, check out the get started with Azure CLI Microsoft Docs page. If you have any questions let me know in the comments.

Connect the Adafruit 5″ LCD to the Raspberry Pi 2 running Windows 10 IoT Core

First I had connected my TV as an external display for my Raspberry Pi 2 running Windows 10 IoT Core. Since I need the little device for some demos, and I want to take it with me I got a Adafruit 5″ LCD display to connected to the device.

The setup with the display is very easy and just plug and play. Just connect the display to the Raspberry Pi 2 board.

Raspberry Pi 2 LCD Display

But by default the output of the Raspberry Pi 2 is Full HD and so the display setting is kind of wrong. But you change this by editing the config.txt file from the SD card.

Windows 10 IoT Display Config

Just open the SD card and add the folloing lines to the config.txt file. (Source)

Windows 10 IoT Display Config TXT

Now you get the perfect outputfor the 800×480 display. If you want to change the settings while the SD card is in the device it self, you can use PowerShell. Remote connect to the Raspberry Pi 2 using Powershell and navigate to C:\EFIESP and check out the config.txt

Get-Content config.txt

You can now set the content of the config.txt file

Set-Content config.txt "
gpu_mem=32 framebuffer_ignore_alpha=1
hdmi_cvt 800 480 60 6 0 0 0

To have the changes active you have to restart the Windows 10 IoT Core device

shutdown /r /t 0


Simple Bean Machine program done in Powershell

Powershell Header

In the last article I posted the C++ Code for a simple Bean Machine output. Now I did the same in Powershell. I know this is not really a fantastic Powershell script, but its good to show others how things get done in Powershell.

Like in the C++ bean machine it works like this:

Bean MachineAnd the Output should look like this:

Bean Machine outputAnd here is how you do this in Powershell:

[int]$ballCount = 100
[array]$box = @(0, 1, 2, 3, 4, 5)
[string]$line = " +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-->"
[string]$numbers = " 0 5 10 15 20 25 30 35 40 45 50"
[object]$random = New-Object System.Random
for([int]$i = 0; $i -lt $ballCount; $i++){
[int]$counter = 0
for([int]$j = 0; $j -lt 5; $j++){
$leftorright = $random.next(0,2)
$counter = $counter + $leftorright
$box[$counter] = $box[$counter] + 1
Write-Host $numbers
Write-Host $line
for ([int]$t = 0; $t -lt 6; $t++){
[string]$Statusline = ""
for ([int]$u = 0; $u -lt $box[$t]; $u++){
[string]$Statusline += "#"
Write-Host $t "|" $Statusline $box[$t]
Write-Host $line