Language

OSDiskProfile Class

Definition

The settings and configuration options for OSDisk

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedHatOpenShiftHcp.Models.OSDiskProfileTypeConverter))]
public class OSDiskProfile : Microsoft.Azure.PowerShell.Cmdlets.RedHatOpenShiftHcp.Models.IOSDiskProfile
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedHatOpenShiftHcp.Models.OSDiskProfileTypeConverter))>]
type OSDiskProfile = class
    interface IOSDiskProfile
    interface IJsonSerializable
Public Class OSDiskProfile
Implements IOSDiskProfile
Inheritance
OSDiskProfile
Attributes
Implements

Constructors

Name Description
OSDiskProfile()

Creates an new OSDiskProfile instance.

Properties

Name Description
DiskStorageAccountType

The type of the disk storage account

DiskType

The type of the OS disk.

EncryptionSetId

The ID of the DiskEncryptionSet resource to use to encrypt the OS disks for the VMs. This needs to exist in the same subscription id listed in the Hosted Cluster, HostedCluster.Spec.Platform.Azure.SubscriptionID. DiskEncryptionSetID should also exist in a resource group under the same subscription id and the same location listed in the Hosted Cluster, HostedCluster.Spec.Platform.Azure.Location. Details on how to create a Disk Encryption Set can be found here: https://learn.microsoft.com/en-us/azure/virtual-machines/disks-enable-customer-managed-keys-portal#set-up-your-disk-encryption-set

SizeGiB

The OS disk size in GiB. Maximum is 4095 GiB for Managed disks. For Ephemeral disks, the maximum is 2040 GiB; Azure may enforce a lower effective limit based on the selected VM size's local cache, temp, or NVMe capacity.

Methods

Name Description
DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of OSDiskProfile.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of OSDiskProfile.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.RedHatOpenShiftHcp.Models.IOSDiskProfile.

FromJsonString(String)

Creates a new instance of OSDiskProfile, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of OSDiskProfile into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to