Cost factors

One machine has four prices, depending on what you promise

The same virtual machine, four ways to payPay as you gothe full priceno commitment; stop at any timeSavings planas low as 35% of the pricecommit to an hourly spend for 1 or 3 yearsReservationas low as 28% of the pricecommit to one kind of resource for 1 or 3 yearsSpotas low as 10% of the pricespare capacity; Azure can take it back at short noticeWhat you pay depends on what you run, how long, where, and what you promise in advance.Bars show the lowest price Microsoft quotes: discounts of up to 65%, 72% and 90%. A commitment suits steadyworkloads; spot suits work that can be interrupted. Azure Hybrid Benefit cuts the price again by reusing WindowsServer and SQL Server licences you already own.

Pay as you go is the full price. A savings plan, a reservation or spot capacity cuts it.

Cost factors · Going deeper

Seven factors that affect cost

Factors that affect costResource typeEach service is metered in its own way: a size of machine, a tier of storage, a count of requestsConsumptionHow much and how long. Pay as you go, or commit ahead for a discountMaintenanceLeftovers still bill: a disk or public address kept after its machine was deletedGeographyThe same resource costs more in some regions than in othersNetwork trafficData coming in is usually free. Data leaving, or crossing between regions, is chargedSubscription typeSome include allowances or credits, such as the free account's first yearAzure MarketplaceSoftware from other companies adds their charge to Azure'sCheapest is not always the nearest region, and deleting the machine is not always deleting the cost.

Resource type, consumption, maintenance, geography, network traffic, subscription type, Marketplace.

Cost tools

One tool estimates before, the other reports after

Before you buildPricing calculatorpick services, sizes and regions; get an estimateAfter you spendCost Managementsee actual cost, set budgets, get alertsday 1day 30spend this monthbudget80% alert: day 20100%: day 25The pricing calculator estimates what a design will cost. Cost Management shows what it did cost.Here spending runs at 40 a day against a budget of 1,000: the 80% alert fires on day 20 and the budget is reached onday 25. A budget alert tells you; it does not stop anything. Both tools are free. Neither creates or deletesresources: the calculator provisions nothing, and Cost Management only reports and warns.

The pricing calculator estimates a design. Cost Management shows actual spending and alerts on budgets.

Cost tools · Going deeper

What Cost Management does

Microsoft Cost Management: what it doesCost analysisCharts of actual cost by service, region, resource group, subscription or tagBudgetsA spending limit for a scope and period, with alerts as it is approachedBudget alertsA message when spending, or forecast spending, crosses a share of a budgetCredit alertsA warning when prepaid credit is nearly used up (enterprise agreements)Quota alertsA warning when a department nears the spending quota it was givenRecommendationsIdle and oversized resources to resize or remove, supplied by Azure AdvisorExportsCost data delivered on a schedule to a storage accountAn alert can also start an action you define, such as a script that shuts down test machines.

Cost analysis, budgets, three kinds of alert, and recommendations.

Check yourself

DesignDeployFirst billthe team is herenothing exists yet

A team is at the point marked on the timeline and wants to know roughly what its design will cost each month. Which tool?

Tags

Tags total the cost along lines that resource groups cannot

RG-WEBvm-web · 310sql-web · 420RG-HRapp-hr · 150st-hr · 60RG-SHAREDvm-report · 200st-archive · 90dept: salesdept: salesdept: hrdept: hrdept: salesdept: hrCost by the tag "dept"sales930hr300A tag is a name and a value on a resource. It lets you total costs across any resource groups.Resource groups sort resources one way only. Tags add as many other ways as you need: department, environment,owner, project. A resource does not take the tags of its resource group by default; Azure Policy can copy themdown, or refuse to create a resource that arrives without the tags you require.

A tag is a name and value on a resource. Grouped by "dept", these six resources cost sales 930 and hr 300.

Tags · Going deeper

What tags are for, and their limits

What tags are used forCost managementGroup and charge back spending by department, project or cost centreResource managementFind everything that belongs to one workload or environmentOperationsMark how critical a resource is, so that support knows what to restore firstSecurityClassify the data a resource holds, such as public or confidentialGovernance and complianceRecord the standard a resource must meet, and check it with Azure PolicyAutomationLet scripts act on a set, such as shutting down everything tagged "env: test" at nightTags describe; they do not restrict. To require or enforce a tag, use Azure Policy.A resource, resource group or subscription can carry up to 50 tags. Tag names are not case-sensitive;tag values are.

Tags describe; they do not restrict. Azure Policy can require them.

Azure Policy

A policy lets through what complies and refuses what does not

Policyallowed locations: West Europeassigned to a subscriptionnew VM in West Europecreatednew VM in East USdeniedold VM, already in East USkept, marked non-complianta policy never deletes what already existsAzure Policy checks every resource against your rules, when it is created and continuously afterwards.A policy definition states a rule and an effect: deny the request, only audit it, or change it to comply. Youassign it at a scope and it is inherited below. A group of policies assigned together is an initiative. Thecompliance view then shows which resources break which rule.

Azure Policy evaluates resources against rules: it can deny, audit or fix, and reports compliance.

Azure Policy · Going deeper

Resource locks

Resource locksLockReadChangeDeletePortal nameCanNotDelete✓✓✗DeleteReadOnly✓✗✗Read-onlyApplies toEveryone, whatever their role, the Owner includedPlaced onA subscription, a resource group or a single resource; inherited by everything insideTo delete anywayRemove the lock first, which needs Owner or User Access AdministratorPurposeStop accidents. A lock is not access controlRBAC decides who may act. A lock stops the act itself, for all of them.Policy asks "is this resource allowed to exist as it is?". A lock says "leave this one alone".

A lock stops deletion or change for everyone, the owner included.

Check yourself

RG-FINANCElock: CanNotDeleteSQL databaseledgerStorage accountinvoices

The resource group has the lock shown. An Owner of the subscription tries to delete the database. What happens?

Microsoft Purview

Purview maps the data itself, wherever it is kept

Where your data livesAzureYour own datacentreOther cloudsSoftware as a serviceMicrosoft Purviewscans and maps itWhat you getA mapwhat data exists, and whereClassificationwhich of it is sensitiveLineagewhere it came from and wentMicrosoft Purview answers "what data do we hold, where is it, and how sensitive is it?"Policy and locks govern resources. Purview governs the data inside them, across Azure, your own servers, otherclouds and software services. It finds and labels sensitive data such as card numbers, records how data moves,and brings together Microsoft's tools for data security, risk and compliance.

Microsoft Purview discovers, classifies and traces data across Azure, on-premises, other clouds and SaaS.

Microsoft Purview · Going deeper · 1 of 2

Five governance tools, five questions

Five governance tools, five questionsThe questionThe toolIt acts onWho may do this?Role-based access controlpeople, groups, applicationsIs this resource allowed to exist like this?Azure Policyresources, new and existingMay this be deleted or changed at all?Resource locksa resource, group or subscriptionHow do we label and total it?Tagsresources, for reports and automationWhat data do we hold, and where?Microsoft Purviewthe data itselfAn exam question on governance is one of these five questions in disguise.Find the verb. "Allow a user to" is RBAC. "Ensure all resources" or "enforce" is Policy. "Prevent accidentaldeletion" is a lock. "Organise", "report cost by" is tags. "Discover", "classify" data is Purview.

Who: RBAC. What may exist: Policy. Whether at all: locks. How labelled: tags. What data: Purview.

Microsoft Purview · Going deeper · 2 of 2

Clue words for cost and governance

When the question saysThe service isBecause it"estimate the cost before deploying"Pricing calculatora design, not yet built"alert when spending reaches a limit"Budgets in Cost Managementactual and forecast spend"see which service costs the most"Cost analysis in Cost Managementactual spend, sliced"steady workload for three years"Reservation or savings plancommit for a discount"can be interrupted", "lowest price"Spotspare capacity"already own Windows Server licences"Azure Hybrid Benefitreuse them"report cost by department"Tagsname and value"only allow certain regions or sizes"Azure Policydeny or audit"a group of related policies"Initiativeassigned as one"prevent accidental deletion"Resource lock (CanNotDelete)even for owners"discover and classify sensitive data"Microsoft Purviewdata governanceCost questions turn on before or after. Governance questions turn on who, what, or whether at all.

Cost turns on before or after. Governance turns on who, what, or whether.

Check yourself

new resourceno CostCentre tag?the gaterefused

A company wants any new resource without a "CostCentre" tag to be refused. What goes at the gate?

Lesson complete

You finished “Cost, governance and compliance on Azure”

Answer the questions along the way to see your score here.

Open in a new tab