Getting Started With Azure: Free Account, Portal, Azure CLI, PowerShell, Cloud Shell and Cost Safety
Free Account
- New customers can get free credit for a limited time, free services for 12 months and always-free services with limits
- Offers change, so read the current terms on the Azure free account page
- A credit card is used for identity checks. Learn how to stop spending before you begin
Set a budget first Create a budget with email alerts in Cost Management. A budget alerts you but does not stop resources by itself.
Setup Checklist
- Sign up for the Azure free account
- Turn on MFA for your account
- Open the Azure portal at
portal.azure.com - Note your subscription and tenant
- Create a budget with alerts at 50, 80 and 100 percent
- Open Cloud Shell (Bash or PowerShell)
Tools to Manage Azure
| Tool | Use |
|---|---|
| Azure portal | Browser UI to explore and create |
**Azure CLI (az)** | Cross-platform commands, great for scripts |
| Azure PowerShell | PowerShell cmdlets such as New-AzVm |
| Cloud Shell | Browser terminal with CLI, PowerShell, Terraform and kubectl already signed in (needs a small storage account) |
| Bicep / ARM templates / Terraform | Infrastructure as code |
| SDKs and REST API | Call Azure from code |
bash
az login # opens a browser to sign in
az account list --output table
az account set --subscription "My Subscription"
az account show --query "{name:name, id:id, tenant:tenantId}"
az configure --defaults location=centralindia group=rg-demo
az provider register --namespace Microsoft.Compute # some services need their provider registered
az provider show --namespace Microsoft.Compute --query registrationState
A Budget From the CLI
bash
az consumption budget create --budget-name monthly-10usd --amount 10 --category cost --time-grain monthly \
--start-date 2026-11-01 --end-date 2027-11-01
Use the portal (Cost Management, Budgets) to add email alert thresholds easily.
Your First Resources
bash
az group create -n rg-demo -l centralindia
az vm create -g rg-demo -n vm-demo --image Ubuntu2204 --size Standard_B1s --admin-username azureuser --generate-ssh-keys
az vm show -g rg-demo -n vm-demo -d --query publicIps -o tsv
az storage account create -g rg-demo -n stdemo$RANDOM --sku Standard_LRS --kind StorageV2 --allow-blob-public-access false
az vm deallocate -g rg-demo -n vm-demo # stop compute billing
az group delete -n rg-demo --yes --no-wait # delete everything
Stopped is not deallocated A VM that you only shut down inside the OS is still billed. Deallocate it from Azure to stop compute charges (disks still cost).
Good Habits From Day One
- One resource group per app and environment so clean-up is one command
- Use tags and clear names
- Do not use shared passwords. Use SSH keys and Entra ID sign-in
- Delete test resources the same day
- Check Cost analysis every week while learning
Practice
- Create the free account and a 10 USD budget
- Install the CLI or use Cloud Shell and run
az account show - Create a resource group, a small VM and a storage account
- Deallocate the VM, then delete the resource group
Conclusion
Create a free account, set a budget, then use the portal, Cloud Shell or the CLI to create resources inside a resource group. Deallocate VMs, tag resources and delete tests quickly.
Quick Summary: free account; checklist; tools; budget; first resources; habits.

