你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzDiskEncryptionSet
获取或列出磁盘加密集。
语法
Get-AzDiskEncryptionSet
[[-ResourceGroupName] <String>]
[[-Name] <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
说明
获取或列出磁盘加密集。
示例
示例 1
Get-AzDiskEncryptionSet -ResourceGroupName rg1 -Name enc1;
ResourceGroupName : rg1
Identity : Microsoft.Azure.Management.Compute.Models.EncryptionSetIdentity
ActiveKey : Microsoft.Azure.Management.Compute.Models.KeyVaultAndKeyReference
PreviousKeys : {}
ProvisioningState : Succeeded
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/enc1
Name : enc1
Type : Microsoft.Compute/diskEncryptionSets
Location : westcentralus
Tags : {}
获取磁盘加密集“enc1”
示例 2
Get-AzDiskEncryptionSet
ResourceGroupName : rg1
Identity : Microsoft.Azure.Management.Compute.Models.EncryptionSetIdentity
ActiveKey : Microsoft.Azure.Management.Compute.Models.KeyVaultAndKeyReference
PreviousKeys : {}
ProvisioningState : Succeeded
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/enc1
Name : enc1
Type : Microsoft.Compute/diskEncryptionSets
Location : westcentralus
Tags : {}
ResourceGroupName : rg1
Identity : Microsoft.Azure.Management.Compute.Models.EncryptionSetIdentity
ActiveKey : Microsoft.Azure.Management.Compute.Models.KeyVaultAndKeyReference
PreviousKeys : {}
ProvisioningState : Succeeded
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/enc2
Name : enc2
Type : Microsoft.Compute/diskEncryptionSets
Location : westcentralus
Tags : {}
获取资源组“rg1”中的所有磁盘加密集。
示例 3
Get-AzDiskEncryptionSet -ResourceGroupName rg1
ResourceGroupName : rg1
Identity : Microsoft.Azure.Management.Compute.Models.EncryptionSetIdentity
ActiveKey : Microsoft.Azure.Management.Compute.Models.KeyVaultAndKeyReference
PreviousKeys : {}
ProvisioningState : Succeeded
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/enc1
Name : enc1
Type : Microsoft.Compute/diskEncryptionSets
Location : westcentralus
Tags : {}
ResourceGroupName : rg1
Identity : Microsoft.Azure.Management.Compute.Models.EncryptionSetIdentity
ActiveKey : Microsoft.Azure.Management.Compute.Models.KeyVaultAndKeyReference
PreviousKeys : {}
ProvisioningState : Succeeded
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/enc2
Name : enc2
Type : Microsoft.Compute/diskEncryptionSets
Location : westcentralus
Tags : {}
ResourceGroupName : rg2
Identity : Microsoft.Azure.Management.Compute.Models.EncryptionSetIdentity
ActiveKey : Microsoft.Azure.Management.Compute.Models.KeyVaultAndKeyReference
PreviousKeys : {}
ProvisioningState : Succeeded
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/enc3
Name : enc3
Type : Microsoft.Compute/diskEncryptionSets
Location : westcentralus
Tags : {}
获取订阅中的所有磁盘加密集。
参数
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
类型: | IAzureContextContainer |
别名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Name
磁盘加密集的名称。
类型: | String |
别名: | DiskEncryptionSetName |
Position: | 1 |
默认值: | None |
必需: | False |
接受管道输入: | True |
接受通配符: | False |
-ResourceGroupName
指定资源组的名称。
类型: | String |
Position: | 0 |
默认值: | None |
必需: | False |
接受管道输入: | True |
接受通配符: | True |