
Cloud
Learning Level
Azure account setup is the foundation for using Microsoft Azure cloud services. It involves creating an account, managing subscriptions, configuring billing, and setting up role-based access control (RBAC).
By the end of this lesson, you'll understand:
# Visit Azure portal
# https://portal.azure.com
# Create free account
# $200 credit for 30 days
# Always-free services# macOS
brew install azure-cli
# Linux
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
# Windows
choco install azure-cli# Interactive login
az login
# Specify subscription
az login --subscription "subscription-id"
# Check current account
az account show# Create resource group
az group create \
--name myResourceGroup \
--location eastus
# List resource groups
az group list
# Get specific group
az group show --name myResourceGroup# List subscriptions
az account list
# Set default subscription
az account set --subscription "subscription-id"
# Get subscription details
az account show# Set spending limit
az consumption budget create \
--budget-name "monthly-budget" \
--amount 1000 \
--time-grain monthly \
--category cost# View current costs
az consumption usage list --start-date 2024-01-01 --end-date 2024-01-31
# List billing periods
az billing period list# Create service principal
az ad sp create-for-rbac \
--name "myServicePrincipal" \
--role Contributor \
--scopes /subscriptions/{subscription-id}
# Output: appId, password, tenant# Assign role to user
az role assignment create \
--role "Contributor" \
--assignee user@example.com \
--scope /subscriptions/{subscription-id}
# Assign role to service principal
az role assignment create \
--role "Reader" \
--assignee {app-id} \
--scope /subscriptions/{subscription-id}/resourceGroups/myResourceGroup# List role assignments
az role assignment list \
--scope /subscriptions/{subscription-id}
# Check specific assignment
az role assignment list \
--assignee user@example.comLearn about Azure Compute services, or explore resource management with Infrastructure as Code (IaC).
Resources
Ojasa Mirai
Master AI-powered development skills through structured learning, real projects, and verified credentials. Whether you're upskilling your team or launching your career, we deliver the skills companies actually need.
Learn Deep • Build Real • Verify Skills • Launch Forward