Add-AzSqlServerTransparentDataEncryptionCertificate
为给定的 SQL Server 实例添加透明数据加密证书
语法
AddAzureRmSqlServerTransparentDataEncryptionCertificateDefaultParameterSet (默认值)
Add-AzSqlServerTransparentDataEncryptionCertificate
[-ResourceGroupName] <String>
[-ServerName] <String>
[-PrivateBlob] <SecureString>
[-Password] <SecureString>
[-PassThru]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Add-AzSqlServerTransparentDataEncryptionCertificate
[-SqlServer] <AzureSqlServerModel>
[-PrivateBlob] <SecureString>
[-Password] <SecureString>
[-PassThru]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
AddAzureRmSqlServerTransparentDataEncryptionCertificateResourceIdParameterSet
Add-AzSqlServerTransparentDataEncryptionCertificate
[-SqlServerResourceId] <String>
[-PrivateBlob] <SecureString>
[-Password] <SecureString>
[-PassThru]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
说明
Add-AzSqlManagedInstanceTransparentDataEncryptionCertificate 为给定的 SQL Server 实例添加透明数据加密证书
示例
示例 1
$securePrivateBlob = ConvertTo-SecureString -String "****" -AsPlainText -Force
$securePassword = ConvertTo-SecureString -String "****" -AsPlainText -Force
Add-AzSqlServerTransparentDataEncryptionCertificate -ResourceGroupName "YourResourceGroupName" -ServerName "YourServerName" -PrivateBlob $securePrivateBlob -Password $securePassword
使用资源组名称和 SQL Server 名称将 TDE 证书添加到 SQL Server
示例 2
$securePrivateBlob = ConvertTo-SecureString -String "****" -AsPlainText -Force
$securePassword = ConvertTo-SecureString -String "****" -AsPlainText -Force
$server = Get-AzSqlServer -ServerName "YourServerName" -ResourceGroupName "YourResourceGroupName"
Add-AzSqlServerTransparentDataEncryptionCertificate -SqlServerResourceId $server.ResourceId -PrivateBlob $securePrivateBlob -Password $securePassword
使用服务器 resourceId 将 TDE 证书添加到服务器
示例 3
$securePrivateBlob = ConvertTo-SecureString -String "****" -AsPlainText -Force
$securePassword = ConvertTo-SecureString -String "****" -AsPlainText -Force
Get-AzSqlServer | Add-AzSqlServerTransparentDataEncryptionCertificate -ResourceGroupName "YourResourceGroupName" -PrivateBlob $securePrivateBlob -Password $securePassword
将 TDE 证书添加到资源组中的所有 SQL 服务器
参数
-Confirm
在运行 cmdlet 之前,提示你进行确认。
参数属性
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
参数属性
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-PassThru
成功执行时,返回已添加的证书对象。
参数属性
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-Password
透明数据加密证书的密码
参数属性
参数集
(All)
| Position: | 2 |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-PrivateBlob
透明数据加密证书的专用 Blob
参数属性
参数集
(All)
| Position: | 1 |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-ResourceGroupName
资源组名称
参数属性
| 类型: | String
|
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
AddAzureRmSqlServerTransparentDataEncryptionCertificateDefaultParameterSet
| Position: | 0 |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-ServerName
服务器名称
参数属性
| 类型: | String
|
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
AddAzureRmSqlServerTransparentDataEncryptionCertificateDefaultParameterSet
| Position: | 1 |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-SqlServer
sql server 输入对象
参数属性
参数集
AddAzureRmSqlServerTransparentDataEncryptionCertificateInputObjectParameterSet
| Position: | 0 |
| 必需: | True |
| 来自管道的值: | True |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-SqlServerResourceId
sql server 资源 ID
参数属性
| 类型: | String
|
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
AddAzureRmSqlServerTransparentDataEncryptionCertificateResourceIdParameterSet
| Position: | 0 |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | True |
| 来自剩余参数的值: | False |
-WhatIf
显示 cmdlet 运行时会发生什么情况。
命令脚本未运行。
参数属性
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
CommonParameters
此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters。
输出