Get-AzDiskEncryptionSet
Get or list disk encryption sets.
Syntax
Get-AzDiskEncryptionSet
[[-ResourceGroupName] <String>]
[[-Name] <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Get or list disk encryption sets.
Examples
Example 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 : {}
Get disk encryption set 'enc1'
Example 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 : {}
Get all disk encryption sets in resource group 'rg1'.
Example 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 : {}
Get all disk encryption sets in subscription.
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Name of disk encryption set.
Type: | String |
Aliases: | DiskEncryptionSetName |
Position: | 1 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ResourceGroupName
Specifies the name of a resource group.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | True |
Inputs
Outputs
Współpracuj z nami w serwisie GitHub
Źródło tej zawartości można znaleźć w witrynie GitHub, gdzie można również tworzyć i przeglądać problemy i żądania ściągnięcia. Więcej informacji znajdziesz w naszym przewodniku dla współtwórców.