ArmComputeModelFactory.DiskEncryptionSetData Method

Definition

public static Azure.ResourceManager.Compute.DiskEncryptionSetData DiskEncryptionSetData(Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.Core.AzureLocation location = default, Azure.ResourceManager.Compute.Models.DiskEncryptionSetType? encryptionType = default, Azure.ResourceManager.Compute.Models.KeyForDiskEncryptionSet activeKey = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Compute.Models.KeyForDiskEncryptionSet> previousKeys = default, string provisioningState = default, bool? rotationToLatestKeyVersionEnabled = default, DateTimeOffset? lastKeyRotationTimestamp = default, Azure.ResourceManager.Compute.Models.ComputeApiError autoKeyRotationError = default, string federatedClientId = default, Azure.ResourceManager.Models.ManagedServiceIdentity identity = default);
static member DiskEncryptionSetData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * Nullable<Azure.ResourceManager.Compute.Models.DiskEncryptionSetType> * Azure.ResourceManager.Compute.Models.KeyForDiskEncryptionSet * seq<Azure.ResourceManager.Compute.Models.KeyForDiskEncryptionSet> * string * Nullable<bool> * Nullable<DateTimeOffset> * Azure.ResourceManager.Compute.Models.ComputeApiError * string * Azure.ResourceManager.Models.ManagedServiceIdentity -> Azure.ResourceManager.Compute.DiskEncryptionSetData
Public Shared Function DiskEncryptionSetData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional location As AzureLocation = Nothing, Optional encryptionType As Nullable(Of DiskEncryptionSetType) = Nothing, Optional activeKey As KeyForDiskEncryptionSet = Nothing, Optional previousKeys As IEnumerable(Of KeyForDiskEncryptionSet) = Nothing, Optional provisioningState As String = Nothing, Optional rotationToLatestKeyVersionEnabled As Nullable(Of Boolean) = Nothing, Optional lastKeyRotationTimestamp As Nullable(Of DateTimeOffset) = Nothing, Optional autoKeyRotationError As ComputeApiError = Nothing, Optional federatedClientId As String = Nothing, Optional identity As ManagedServiceIdentity = Nothing) As DiskEncryptionSetData

Parameters

id
ResourceIdentifier

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

name
String

The name of the resource.

resourceType
ResourceType

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

systemData
SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

tags
IDictionary<String,String>

Resource tags.

location
AzureLocation

The geo-location where the resource lives.

encryptionType
Nullable<DiskEncryptionSetType>

The type of key used to encrypt the data of the disk.

activeKey
KeyForDiskEncryptionSet

The key vault key which is currently used by this disk encryption set.

previousKeys
IEnumerable<KeyForDiskEncryptionSet>

A readonly collection of key vault keys previously used by this disk encryption set while a key rotation is in progress. It will be empty if there is no ongoing key rotation.

provisioningState
String

The disk encryption set provisioning state.

rotationToLatestKeyVersionEnabled
Nullable<Boolean>

Set this flag to true to enable auto-updating of this disk encryption set to the latest key version.

lastKeyRotationTimestamp
Nullable<DateTimeOffset>

The time when the active key of this disk encryption set was updated.

autoKeyRotationError
ComputeApiError

The error that was encountered during auto-key rotation. If an error is present, then auto-key rotation will not be attempted until the error on this disk encryption set is fixed.

federatedClientId
String

Multi-tenant application client id to access key vault in a different tenant. Setting the value to 'None' will clear the property.

identity
ManagedServiceIdentity

The managed identity for the disk encryption set. It should be given permission on the key vault before it can be used to encrypt disks.

Returns

A new DiskEncryptionSetData instance for mocking.

Applies to