Skip to content

Commit 47beab0

Browse files
authored
Merge pull request #104027 from MashaMSFT/20200211_sqldbbackup
making a few proposed changes
2 parents 8dd0575 + 968c3f2 commit 47beab0

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed
29.5 KB
Loading

articles/sql-database/sql-database-automated-backups.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,14 @@ Backups that are older than the retention period are automatically purged based
7575

7676
Azure SQL Database will compute your total in-retention backup storage as a cumulative value. Every hour, this value is reported to the Azure billing pipeline which is responsible for aggregating this hourly usage to calculate your consumption at the end of each month. After the database is dropped, consumption decreases as backups age. Once the backups become older than the retention period, the billing stops.
7777

78+
> [!IMPORTANT]
79+
> Backups of a database are retained for the specified retention period, even if the database has been dropped. While dropping and recreating a database frequently may save on storage and compute costs, it may increase backup storage costs as we retain a backup for the specified retention period (which is 7 days at minimum) for each dropped database, every time its dropped.
7880
79-
### Monitoring consumption
8081

81-
Each type of backup (full, differential and log) is reported on the database monitoring blade as a separate metric. The following diagram shows how to monitor the backups storage consumption.
82+
83+
### Monitor consumption
84+
85+
Each type of backup (full, differential and log) is reported on the database monitoring blade as a separate metric. The following diagram shows how to monitor the backups storage consumption for a single database. This feature is currently unavailable for managed instances.
8286

8387
![Monitor database backup consumption on the database monitoring blade of the Azure portal](media/sql-database-automated-backup/backup-metrics.png)
8488

@@ -99,6 +103,7 @@ The excess backup storage consumption will depend on the workload and size of th
99103

100104
## Storage costs
101105

106+
The price for storage varies if you're using the DTU model or the vCore model.
102107

103108
### DTU Model
104109

@@ -114,11 +119,14 @@ Let's assume the database has accumulated 744 GB of backup storage and this amou
114119

115120
Now, a more complex example. Suppose the database has its retention increased to 14 days in the middle of the month and this (hypothetically) results in the total backup storage doubling to 1488 GB. SQL DB would report 1 GB of usage for hours 1-372, and then report the usage as 2 GB for hours 373-744. This would be aggregated to be a final bill of 1116 GB/mo.
116121

117-
You can use Azure subscription cost analysis to determine your current spending on backup storage.
122+
### Monitor costs
123+
124+
To understand the backup storage costs, go to **Cost management + Billing** from the Azure portal, select **Cost Management**, and then select **Cost analysis**. Select the desired subscription as the **Scope**, and then filter for the time period and service you're interested in.
125+
126+
Add a filter for **Service name**, and then choose **sql database** from the drop down. Use the **meter subcategory** filter to choose the billing counter for your service. For a single database or an elastic pool, choose **single/elastic pool pitr backup storage**. For a managed instance, choose **mi pitr backup storage**. **Storage** and **compute** subcategories may interest you as well, though they are not associated with backup storage costs.
118127

119128
![Backup storage cost analysis](./media/sql-database-automated-backup/check-backup-storage-cost-sql-mi.png)
120129

121-
For example, to understand the backup storage costs for managed instance, please go to your subscription in Azure portal and open the Cost Analysis blade. Select the meter subcategory **mi pitr backup storage** to see your current backup cost and charge forecast. You can also include other meter subcategories such as **managed instance general purpose - storage** or **managed instance general purpose - compute gen5** to compare backup storage cost with other cost categories.
122130

123131
## Backup retention
124132

articles/sql-database/sql-database-managed-instance-transact-sql-information.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ Limitations:
6060

6161
- With a managed instance, you can back up an instance database to a backup with up to 32 stripes, which is enough for databases up to 4 TB if backup compression is used.
6262
- You can't execute `BACKUP DATABASE ... WITH COPY_ONLY` on a database that's encrypted with service-managed Transparent Data Encryption (TDE). Service-managed TDE forces backups to be encrypted with an internal TDE key. The key can't be exported, so you can't restore the backup. Use automatic backups and point-in-time restore, or use [customer-managed (BYOK) TDE](transparent-data-encryption-azure-sql.md#customer-managed-transparent-data-encryption---bring-your-own-key) instead. You also can disable encryption on the database.
63+
- Manual backups to Azure Blob storage are only supported to [BlockBlobStorage accounts](/azure/storage/common/storage-account-overview#types-of-storage-accounts).
6364
- The maximum backup stripe size by using the `BACKUP` command in a managed instance is 195 GB, which is the maximum blob size. Increase the number of stripes in the backup command to reduce individual stripe size and stay within this limit.
6465

6566
> [!TIP]

0 commit comments

Comments
 (0)