In this article, we'll describe how you can configure automatic generation and storage of database digests through the Azure portal, PowerShell, or the Azure CLI.
Open the Azure portal and locate the database for which you want to enable automatic digest storage. Select that database in SQL Database.
Note
Enable automatic digest storage can also be configured when creating a new database.
In Security, select the Ledger option.
In the Ledger pane, select Enable automatic digest storage. Select the storage type. You can choose between Azure Storage or Azure Confidential Ledger (ACL). Depending on the storage type you picked, you have to select an existing storage account or ACL, or create a new one. The storage container name is fixed and can't be modified.
Select Save to save your automatic digest storage configuration.
Enable database digest uploads using PowerShell
Update the database to start uploading ledger digests to the Azure Blob Storage account or Azure Confidential Ledger, by using the Enable-AzSqlDatabaseLedgerDigestUpload cmdlet. When the endpoint parameter is an Azure Blob Storage endpoint, the database server will create a new container, named sqldbledgerdigests, within the storage account and it will start writing ledger digests to the container.
In the following script, be sure to modify the following parameters: ResourceGroupName, ServerName, DatabaseName and Endpoint (ACL endpoint or Azure Storage endpoint):
Enable database digest uploads using the Azure CLI
Update the database to start uploading ledger digests to the Azure Blob Storage account or Azure Confidential Ledger, by using the az sql db ledger-digest-uploads enable command.
Make sure you modify the parameters resource-group, server, name and endpoint (ACL endpoint or Azure Storage endpoint)
az sql db ledger-digest-uploads enable \
--resource-group ResourceGroup01 \
--server Server01 \
--name Database01 \
--endpoint https://ledgerstorage.blob.core.windows.net
In this article, we'll describe how you can configure automatic generation and storage of database digests through the Azure portal, PowerShell, or the Azure CLI.
Open the Azure portal and locate the managed database for which you want to enable automatic digest storage.
Note
Enable automatic digest storage can also be configured when creating a new database.
In Security, select the Ledger option.
In the Ledger pane, select Enable automatic digest storage. Select the storage type. You can choose between Azure Storage or Azure Confidential Ledger (ACL). Depending on the storage type you picked, you have to select an existing storage account or ACL, or create a new one. The storage container name is fixed and can't be modified.
Select Save to save your automatic digest storage configuration.
Enable database digest uploads using PowerShell
Update the database to start uploading ledger digests to the Azure Blob Storage account or Azure Confidential Ledger. When the endpoint parameter is an Azure Blob Storage endpoint, the database server will create a new container, named sqldbledgerdigests, within the storage account and it will start writing ledger digests to the container.
Note
Make sure you modify the parameters ResourceGroupName, InstanceName, DatabaseName and Endpoint (ACL endpoint or Azure Storage endpoint).
Enable database digest uploads using the Azure CLI
Update the database to start uploading ledger digests to the Azure Blob Storage account or Azure Confidential Ledger, by using the az sql midb ledger-digest-uploads enable command.
Note
Make sure you modify the parameters resource-group, managed-instance, name and endpoint (ACL endpoint or Azure Storage endpoint)
In this article, we'll describe how you can configure automatic generation and storage of database digests through using T-SQL in SQL Server 2022 (16.x). For information on configuring automatic generation and storage of database digests in Azure SQL Database, use the switch at the top of this page to toggle over to Azure SQL Database.
To enable uploading ledger digests, specify the endpoint of an Azure Blob storage account. To disable uploading ledger digests, set the option value to OFF. The default is OFF.
Sign into your SQL Server 2022 (16.x) instance using SSMS or Azure Data Studio.
Configure automatic generation and storage of database digests using the following T-SQL statement:
ALTER DATABASE SCOPED CONFIGURATION
SET LEDGER_DIGEST_STORAGE_ENDPOINT = 'https://ledgerstorage.blob.core.windows.net';
Administer an SQL Server database infrastructure for cloud, on-premises and hybrid relational databases using the Microsoft PaaS relational database offerings.