Share via


SecurityProfile Class

Definition

Specifies the security profile settings for the virtual machine or virtual machine scale set.

public class SecurityProfile
type SecurityProfile = class
Public Class SecurityProfile
Inheritance
SecurityProfile

Constructors

SecurityProfile()

Initializes a new instance of the SecurityProfile class.

SecurityProfile(Nullable<SecurityTypes>, Nullable<Boolean>, UefiSettings)

Initializes a new instance of the SecurityProfile class.

Properties

EncryptionAtHost

Gets or sets this property can be used by user in the request to enable or disable the Host Encryption for the virtual machine or virtual machine scale set. This will enable the encryption for all the disks including Resource/Temp disk at host itself. For more information on encryption at host requirements, please refer to https://learn.microsoft.com/azure/virtual-machines/disk-encryption#supported-vm-sizes.

SecurityType

Gets or sets specifies the SecurityType of the virtual machine. It has to be set to any specified value to enable UefiSettings.

UefiSettings

Gets or sets specifies the security settings like secure boot and vTPM used while creating the virtual machine.

Applies to