Resource Groups and the Azure CLI
The Azure CLI (az) lets you create and manage resources from the command line, scriptable and repeatable, unlike clicking through the Portal.
az login
az group create --name kodstigen-rg --location westeurope
az group list --output table
az group delete --name kodstigen-rg
Reading the commands
az loginopens a browser to authenticate the CLI with your Azure account.az group createmakes a new resource group in a chosen region (--location).--output tableformats results as a readable table instead of raw JSON, useful while exploring.az group deleteremoves the resource group and everything inside it, a fast way to clean up when you're done experimenting.
WARNING
Deleting a resource group deletes every resource inside it permanently. It's convenient for cleanup, but double-check the name before you run it.