SQL Data Warehouse: ALTER DATABASE SCOPED CREDENTIAL command for rotating storage keys

2 февраля 2018 г.

The ALTER DATABASE SCOPED CREDENTIAL command is now supported for Azure SQL Data Warehouse. 

It's a security best practice with Azure Storage to use rotating keys. SQL Data Warehouse uses storage account keys to define external data sources and enable users to load data from various storage accounts. When these credentials change, underlying objects that rely on this external data source definition have to be updated.

Users no longer have to drop and re-create objects that rely on external data sources when new keys are introduced. Rotating storage keys is now as simple as changing the credential secret by using ALTER DATABASE SCOPED CREDENTIAL.

Example:

The original key is created.

CREATE DATABASE SCOPED CREDENTIAL my_credential WITH IDENTITY = 'my_identity' [ , SECRET = 'key1' ]

Rotate key from key 1 to key 2.

ALTER DATABASE SCOPED CREDENTIAL my_credential WITH IDENTITY = 'my_identity' [ , SECRET = 'key2' ]

No other changes to underlying external data sources are needed.

Бесплатная учетная запись

Получите $200 на счет в Azure и возможность использовать популярные службы совершенно бесплатно на протяжении 12 мес.

Начните использовать бесплатно

Visual Studio

Подписчики Azure экономят до $1800 в год

Активировать сейчас

Стартапы

Присоединитесь к программе BizSpark и получите бесплатные службы Azure

Дополнительные сведения