For system, network and cloud administrators

What is a “shell”?

The Bourne Shell: /bin/sh

The shell is one of the most important parts of a Unix system and that’s why developers and admins around the world rely so much on it. It’s basically a program inside which the user can run commands and create shell scripts. Unix programmers used the shell as a programming environment too. In fact, a lot of the important parts of the Unix system itself are … shell scripts.


How to log in AWS using Terraform

Terraform is a wonderful IaaC software. We can login into AWS in a couple of ways:

  • by declaring our AWS credentials (key, secret) inside one of the .tf files (main.tf, for example);
  • by declaring our AWS credentials using the Terraform CLI.


How to open a port on an Azure virtual machine using Azure CLI

If you need to open a port on your Azure virtual machine (in this case, port 80), you can use:

az vm open-port --port 80 --resource-group YourResourceGroup --name YourVMName


How to verify if an Azure virtual machine has stopped using Azure CLI

In order to verify an Azure virtual machine’s power state, you can use:

az vm get-instance-view --resource-group YourResourceGroup --name YourVMName --query "instanceView.statuses[?starts_with(code, 'PowerState/')].displayStatus" -o tsv


How to stop/start/restart an Azure virtual machine using Azure CLI

And if you need to stop/start/restart an Azure virtual machine, you can use:

az vm stop --resource-group YourResourceGroup --name YourVMName

The stop can easily be replaced with start or restart. But if you need for the Azure CLI to return immediately and not wait for the actual restart of the virtual machine, you can also add the –no-wait flag.


Follow BusyNetwork