Azure Cloud Shell scripting

Storing variables

I want to store the Resource Group name in a variable to use in a bash script.

RgName=`az group list --query '[].name' --output tsv`

The ` back tick is important - as it executes the command inside.

*****
Written on