ComputeBatchModelFactory.SecurityProfile Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the security profile settings for the virtual machine or virtual machine scale set.
public static Azure.Compute.Batch.SecurityProfile SecurityProfile(bool? encryptionAtHost = default, Azure.Compute.Batch.ProxyAgentSettings proxyAgentSettings = default, Azure.Compute.Batch.SecurityTypes? securityType = default, Azure.Compute.Batch.BatchUefiSettings uefiSettings = default);
static member SecurityProfile : Nullable<bool> * Azure.Compute.Batch.ProxyAgentSettings * Nullable<Azure.Compute.Batch.SecurityTypes> * Azure.Compute.Batch.BatchUefiSettings -> Azure.Compute.Batch.SecurityProfile
Public Shared Function SecurityProfile (Optional encryptionAtHost As Nullable(Of Boolean) = Nothing, Optional proxyAgentSettings As ProxyAgentSettings = Nothing, Optional securityType As Nullable(Of SecurityTypes) = Nothing, Optional uefiSettings As BatchUefiSettings = Nothing) As SecurityProfile
Parameters
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.
- proxyAgentSettings
- ProxyAgentSettings
Specifies ProxyAgent settings while creating the virtual machine.
- securityType
- Nullable<SecurityTypes>
Specifies the SecurityType of the virtual machine. It has to be set to any specified value to enable UefiSettings.
- uefiSettings
- BatchUefiSettings
Specifies the security settings like secure boot and vTPM used while creating the virtual machine. Specifies the security settings like secure boot and vTPM used while creating the virtual machine.
Returns
A new SecurityProfile instance for mocking.