Azure CLI
- Azure has three interfaces
- Web interface:
- Azure portal
- Command Line interface
- Azure CLI
- Azure Powershell
- Code interface
- Azure SDK

- Azure SDK
- Web interface:
- Install azure cli Refer Here
- Azure CLI sign in Refer Here
- Azure CLI has the following pattern
az <service> [<sub-service>] <action> [{--arg1 value1} .. {--argn valuen}]
- Azure commmand return json by default
- To find the commands Refer Here
Create a Linux VM using Azure CLI
- Getting Started
- Install azure cli tools extension to vs code
- Create a file with extension
.azcli
- To Create VM
- resource group
- region
- vm image:
- publisher: Canonical
- offer: 0001-com-ubuntu-server-jammy
- sku: 22_04-lts-gen2
- instance size: Standard_B1s
- ports to be opened: 22, 80
- Steps:
- Create a resource group Refer Here for changeset

- Create a vm Refer Here for the changeset

- Login into the instance and
ssh <username>@<publicip> - install apache
- Create a resource group Refer Here for changeset
- Refer Here for changes to install apache and open 80 port
