你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzureRmSqlDatabaseTransparentDataEncryption
获取数据库的 TDE 状态。
警告
截至 2024 年 2 月 29 日,AzureRM PowerShell 模块已正式弃用。 为了确保持续获得支持和更新,建议用户从 AzureRM 迁移到 Az PowerShell 模块。
尽管 AzureRM 模块仍可能正常运行,但它不再维护或受支持,但会根据用户的自由裁量权和风险继续使用任何继续使用模块。 有关过渡到 Az 模块的指导,请参阅我们的迁移资源。
语法
Get-AzureRmSqlDatabaseTransparentDataEncryption
[-ServerName] <String>
[-DatabaseName] <String>
[-ResourceGroupName] <String>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
说明
Get-AzureRmSqlDatabaseTransparentDataEncryption cmdlet 获取 Azure SQL 数据库透明数据加密(TDE)的状态。 有关详细信息,请参阅 Microsoft 开发人员网络库中Azure SQL 数据库https://msdn.microsoft.com/library/dn948096 (https://msdn.microsoft.com/library/dn948096) 透明数据加密。 此 cmdlet 获取 TDE 的当前状态,但加密和解密都可以是长时间运行的操作。 若要查看加密扫描进度,请运行 Get-AzureRmSqlDatabaseTransparentDataEncryptionActivity cmdlet。 Azure 上的 SQL Server Stretch Database 服务也支持此 cmdlet。
示例
示例 1:获取数据库的 TDE 状态
PS C:\>Get-AzureRmSqlDatabaseTransparentDataEncryption -ServerName "server01" -ResourceGroupName "resourcegroup01" -DatabaseName "database01"
ResourceGroupName ServerName DatabaseName State
----------------- ---------- ------------ -----
resourcegroup01 server01 database01 Disabled
此命令获取服务器中名为 Database01 的数据库的 TDE 状态。
参数
-Confirm
提示你在运行 cmdlet 之前进行确认。
类型: | SwitchParameter |
别名: | cf |
Position: | Named |
默认值: | False |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-DatabaseName
指定此 cmdlet 获取 TDE 状态的数据库的名称。
类型: | String |
Position: | 2 |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-DefaultProfile
用于与 azure 通信的凭据、帐户、租户和订阅
类型: | IAzureContextContainer |
别名: | AzureRmContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ResourceGroupName
指定为其分配数据库的资源组的名称。
类型: | String |
Position: | 0 |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-ServerName
指定承载此 cmdlet 获取 TDE 状态的数据库的服务器的名称。
类型: | String |
Position: | 1 |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-WhatIf
显示运行该 cmdlet 时会发生什么情况。 cmdlet 未运行。
类型: | SwitchParameter |
别名: | wi |
Position: | Named |
默认值: | False |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
输入
输出
AzureSqlDatabaseTransparentDataEncryptionModel