【发布时间】:2017-04-12 19:49:51
【问题描述】:
有没有办法使用 Azure CLI 2 在现有 Azure SQL 数据库上打开 TDE?如果是,您能举个例子吗?
谢谢,
【问题讨论】:
标签: azure azure-cli2
有没有办法使用 Azure CLI 2 在现有 Azure SQL 数据库上打开 TDE?如果是,您能举个例子吗?
谢谢,
【问题讨论】:
标签: azure azure-cli2
幸运的是 az cli 是开源的,所以我们可以直接查找命令。
不幸的是,它似乎尚不受支持(截至 2017 年 4 月 26 日)。代码在里面,但是被注释掉了。
From the source: sql/commands.py#L59
# TDE will not be included in the first batch of GA commands
【讨论】:
您可以使用az sql db tde set command. 启用/禁用 TDE
az sql db tde set --status {Disabled, Enabled}
[--database]
[--ids]
[--resource-group]
[--server]
[--subscription]
例如,az sql db set --resource-group mygroup --server myserver --database mydb --status Enabled。
【讨论】: