---
updatedAt: 2025-05-11T13:14:49.000Z
agentTools:
  projectIndex: https://docs.umbrellacost.io/llms.txt
---

# SQL Database

# SQL Database Rightsizing

<Tabs>
  <Tab title="Summary">
    As a result of low utilization, we recommend reducing the size of the DTU / vCore, which will reduce Azure SQL cost.
  </Tab>

  <Tab title="Logic">
    **Recommendation algorithm:**

    1. DTU: Take from CUE where: “service” = “SQL Database” and “meter\_name” LIKE “%DTU%”

    2. vCore: “service” = “SQL Database” and “meter\_name” = “vCore”

    3. Filtering vCore databases covered by RI.

    4. **DB information:**

       * identify that the DB is a ‘single DB type’

       * For DTU identity the service tier and type (e.g S4)

       * For vCore identify the hardware type and amount of vCore (e.g DC-series 6vCore) 			\[[https://learn.microsoft.com/en-us/rest/api/sql/databases/list-by-server?view=rest-sql-2014-04-01\&tabs=HTTP](https://learn.microsoft.com/en-us/rest/api/sql/databases/list-by-server?view=rest-sql-2014-04-01\&tabs=HTTP)]	([https://learn.microsoft.com/en-us/rest/api/sql/databases/list-by-server?view=rest-sql-2014-04-01\\\&tabs=HTTP](https://learn.microsoft.com/en-us/rest/api/sql/databases/list-by-server?view=rest-sql-2014-04-01\\\&tabs=HTTP))

    5. Each recommended option is being validated to meet the original Storage.

    6. **vCore purchase type:**

       * We will recommend only within the same hardware type.
       * We do not take into consideration the memory.

       *Example:* Let's say I have 12 vCore under ‘DC-series’, we utilize 40%. We can recommend moving to 4 vCore.

    **Recommendation Flow:**

    Identify relevant resources (for vCore type we need to make sure RI does not cover it)\
    ⬇

    Collect utilization data + IOPS for DTU type

    ⬇

    Identify un-utilized database according to the defined preferences

    ⬇
    Trigger recommendation

    **Savings Calculation**

    1. **DTU purchase type:**

    * Current costs: As the customer can have a discount for his SQL and we do not have the discount numbers, we will take the current costs as ‘List Price’. (for comparison, we are doing it for VM right-sizing recommendation as well)
    * New costs: from public pricing

    2. **vCore purchase type:**

    * Current costs: As the customer can have a discount for his SQL and we do not have the discount numbers, we will take the current costs as ‘List Price’. (for comparison, we are doing it for VM right-sizing recommendation as well)

    * New costs: from public pricing
  </Tab>

  <Tab title="  Preferences">
    1. Days to check, default 30.
    2. DTU/ vCore utilization aggregation function - the options are: average, max. The default is average.
    3. Minimum potential savings (%), default value is 5.
    4. Un-utilization threshold - what is the minimum threshold we define in order to define a database as un-utilized. The default is 60%.
  </Tab>

  <Tab title="Logic source">
    Umbrella validation ([Detailed validation logic](https://docs.umbrellacost.io/docs/azure-recommendations#umbrella-validation-for-azure-native-recommendations)).
  </Tab>
</Tabs>

# SQL Idle

<Tabs>
  <Tab title="Summary">
    Identifying the resource as Idle if the number of requests is no more than 1 within the past 14 days.
  </Tab>

  <Tab title="Logic">
    Recommendation is being triggere basing on the folloiwng conditions:

    1. The database is in a 'Succeeded' state.
    2. The connection\_successful metrics show minimal or no activity (max count ≤ 1).
    3. The potential savings exceed the minimum potential savings > $5 as defualt.
    4. The size properties can be successfully retrieved.
  </Tab>

  <Tab title="  Preferences">
    1. Days To Check, default 14 days.
  </Tab>

  <Tab title="Logic source">
    Umbrella.
  </Tab>
</Tabs>

# SQL Reserved Capacity

<Tabs>
  <Tab title="Summary">
    Analyzing the usage on past 30 days and recommending to purchase reserved capacity to optimize costs.
  </Tab>

  <Tab title="Logic">
    Azure Reserved Capacity Recommendation system:

    * 30-day period for usage analysis.
    * Default recommendation: 1-year terms.
    * Considers 3-year terms as alternatives.
  </Tab>

  <Tab title="  Preferences">
    N/A.
  </Tab>

  <Tab title="Logic source">
    Native + Umbrella validation
  </Tab>
</Tabs>