你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Set-AzHDInsightClusterDiskEncryptionKey
轮换指定的 HDInsight 群集的磁盘加密密钥。
语法
Set-AzHDInsightClusterDiskEncryptionKey
[-ResourceGroupName] <String>
[-Name] <String>
-EncryptionKeyName <String>
-EncryptionKeyVersion <String>
-EncryptionVaultUri <String>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-AzHDInsightClusterDiskEncryptionKey
[-ResourceId] <String>
-EncryptionKeyName <String>
-EncryptionKeyVersion <String>
-EncryptionVaultUri <String>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-AzHDInsightClusterDiskEncryptionKey
[-InputObject] <AzureHDInsightCluster>
-EncryptionKeyName <String>
-EncryptionKeyVersion <String>
-EncryptionVaultUri <String>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
说明
轮换指定的 HDInsight 群集的磁盘加密密钥。 对于此作,群集必须同时访问当前密钥和预期的新密钥,否则轮换密钥作将失败。
示例
示例 1
# Cluster configuration info
$clusterResourceGroupName = "Group"
$clusterName = "your-cmk-cluster"
Set-AzHDInsightClusterDiskEncryptionKey `
-ResourceGroupName $clusterResourceGroupName `
-ClusterName $clusterName `
-EncryptionKeyName new-key `
-EncryptionVaultUri https://MyKeyVault.vault.azure.net `
-EncryptionKeyVersion 00000000000000000000000000000000
示例 2
# Cluster configuration info
$clusterName = "your-cmk-cluster"
$cluster= Get-AzHDInsightCluster -ClusterName $clusterName
$cluster | Set-AzHDInsightClusterDiskEncryptionKey `
-EncryptionKeyName new-key `
-EncryptionVaultUri https://MyKeyVault.vault.azure.net `
-EncryptionKeyVersion 00000000000000000000000000000000
参数
-Confirm
在运行 cmdlet 之前,提示你进行确认。
类型: | SwitchParameter |
别名: | cf |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
类型: | IAzureContextContainer |
别名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-EncryptionKeyName
获取或设置加密密钥名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-EncryptionKeyVersion
获取或设置加密密钥版本。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-EncryptionVaultUri
获取或设置加密保管库 URI。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-InputObject
获取或设置输入对象。
类型: | AzureHDInsightCluster |
Position: | 0 |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-Name
获取或设置群集的名称。
类型: | String |
别名: | ClusterName |
Position: | 1 |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-ResourceGroupName
获取或设置资源组的名称。
类型: | String |
Position: | 0 |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-ResourceId
获取或设置资源 ID。
类型: | String |
Position: | 0 |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-WhatIf
显示 cmdlet 运行时会发生什么情况。 cmdlet 未运行。
类型: | SwitchParameter |
别名: | wi |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
输入
None