Check your subscription, credit and usage
In this task you'll see your subscription ID and what you've spent this month.
Your subscription is the account Azure bills. Its Overview shows its name, ID and your role, and Cost analysis shows what you've spent this month, split by service or resource group.
Every subscription also has quotas: limits such as how many virtual machine cores you can run in one region. Free accounts get low quotas on purpose.
Before you start
You need: Reader on the subscription. Time: 5 minutes.
Where to look
- Home
- Subscriptions
- Azure subscription 1
- Overview
Steps
- Search for subscriptions and open Subscriptions.
- Select your subscription. On a free account it's usually called Azure subscription 1.
- Under Essentials on Overview, find the Subscription ID and My role. Use the copy icon to copy the ID.Owner means you can do everything here, including giving other people access.
- Look at the charts below the details: current cost, forecast and Top free services by usage, which shows how much of each free allowance you've used.Remaining free credit is shown on the portal's Home page, with the date it expires. It's shown in your billing currency, so in the UK the $200 credit appears as about £150. Free credit only lasts 30 days, so use it before it expires.
- Select Cost analysis in the menu, then group the view by Resource group or Service name.This shows exactly where money is going. On a new account, everything should be zero.
- Select Usage + quotas under Settings. It opens the Quotas page, filtered to Provider: Compute. Set Region to UK South and find Total Regional vCPUs.If a virtual machine won't create because of a quota error, this is the page to check.
Commands
# Name, ID and tenant of the current subscription
az account show --query "{name:name, id:id, tenant:tenantId}" --output table
# vCPU usage against the limits in one region
az vm list-usage --location uksouth --output table
Watch out for
- Cost
- Reading these pages costs nothing.
- Security
- A subscription ID isn't a password, but don't post it publicly alongside other details of your setup.
- Common mistakes
- Cost analysis can lag by several hours. If something you've just created shows nothing yet, check again tomorrow.
Clean up
Nothing to clean up. This task only reads.
Words to know
- Subscription ID
- A long unique code for your subscription. You'll paste it into scripts and support requests.
- Quota
- A limit on how much of something you can create, such as 4 vCPUs in a region.
- vCPU
- A virtual processor core. Bigger virtual machines use more of them.
Tick off each step and track your progress in the guide.
Open this task in Azure Portal, Hands On