0
0
Azurecloud~30 mins

Azure Savings Plans - Mini Project: Build & Apply

Choose your learning style9 modes available
Azure Savings Plans Setup
📖 Scenario: You are managing cloud costs for a small company using Microsoft Azure. You want to save money by committing to Azure Savings Plans, which offer discounts on compute usage in exchange for a commitment to spend a fixed amount over a period.
🎯 Goal: Create a simple Azure Savings Plan configuration using JSON that defines the plan details, including the plan name, commitment amount, term, and applicable services.
📋 What You'll Learn
Create a JSON object named savingsPlan with the exact keys and values specified.
Add a configuration variable termInYears to represent the commitment term in years.
Use the termInYears variable to set the term field in the savings plan.
Complete the JSON configuration by adding the applicableServices array with specified services.
💡 Why This Matters
🌍 Real World
Azure Savings Plans help organizations reduce cloud costs by committing to consistent usage over time.
💼 Career
Cloud architects and cost managers use savings plans configurations to optimize budgets and forecast expenses.
Progress0 / 4 steps
1
Create the initial Azure Savings Plan data
Create a JSON object called savingsPlan with these exact key-value pairs: "planName": "StandardComputePlan", "commitmentAmount": 1000, and "term": "" (empty string).
Azure
Need a hint?

Define a JSON object with keys planName, commitmentAmount, and term. Set term to an empty string for now.

2
Add the commitment term variable
Add a variable called termInYears and set it to the number 3 to represent a 3-year commitment term.
Azure
Need a hint?

Define a variable named termInYears and assign it the value 3.

3
Set the term field using the commitment term
Update the term field in the savingsPlan JSON object to the string value of termInYears followed by the word " years". For example, if termInYears is 3, then term should be "3 years".
Azure
Need a hint?

Set the term key in savingsPlan to the string "3 years" using the termInYears variable.

4
Add applicable services to the savings plan
Add a key applicableServices to the savingsPlan JSON object. Set its value to an array containing the exact strings: "Virtual Machines", "App Services", and "Functions".
Azure
Need a hint?

Add the applicableServices key with the specified array of service names.