Azure 101
Tools/Skills: Azure CLI, Azure Cloud Environment
SYNOPSIS
The goal is to learn about the North Pole's cloud environment, including VMs and other resources with the use of Azure.
Through the challenge, I found account info, resource groups, functionapps within a resource group, and details of virtual machines. I also invoked a run-command to reveal a file in a vm.
SOLUTION
Go to azure help menu
az help | less (help menu)
Show Account Info
az account show | less
List Resource Groups
List all functionapps in Resource Group “northpole-rg1”
List details of virtual machines in the Resource Group “northpole-rg2”
Invoke a run-command against vm and RunShellScript to get a directory listing to reveal a file on the Azure VM
az vm run-command invoke --resource-group northpole-rg2 --name NP-VM1 --command-id RunShellScript --scripts "ls -l" --output json
Prompts:
How do I: Find a way to invoke a run-command against the only Virtual Machine (VM) so you can RunShellScript and get a directory listing to reveal a file on the Azure VM?
What do I need to change about this command to have it list the directory? az vm run-command invoke -g northpole-rg2 -n NP-VM1 --command-id RunShellScript
Last updated