ArmComputeModelFactory.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.
public static Azure.ResourceManager.Compute.Models.SecurityProfile SecurityProfile(Azure.ResourceManager.Compute.Models.UefiSettings uefiSettings = default, bool? encryptionAtHost = default, Azure.ResourceManager.Compute.Models.SecurityType? securityType = default, string userAssignedIdentityResourceId = default, Azure.ResourceManager.Compute.Models.ProxyAgentSettings proxyAgentSettings = default);
static member SecurityProfile : Azure.ResourceManager.Compute.Models.UefiSettings * Nullable<bool> * Nullable<Azure.ResourceManager.Compute.Models.SecurityType> * string * Azure.ResourceManager.Compute.Models.ProxyAgentSettings -> Azure.ResourceManager.Compute.Models.SecurityProfile
Public Shared Function SecurityProfile (Optional uefiSettings As UefiSettings = Nothing, Optional encryptionAtHost As Nullable(Of Boolean) = Nothing, Optional securityType As Nullable(Of SecurityType) = Nothing, Optional userAssignedIdentityResourceId As String = Nothing, Optional proxyAgentSettings As ProxyAgentSettings = Nothing) As SecurityProfile
Parameters
- uefiSettings
- UefiSettings
Specifies the security settings like secure boot and vTPM used while creating the virtual machine. Minimum api-version: 2020-12-01.
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. The default behavior is: The Encryption at host will be disabled unless this property is set to true for the resource.
- securityType
- Nullable<SecurityType>
Specifies the SecurityType of the virtual machine. It has to be set to any specified value to enable UefiSettings. The default behavior is: UefiSettings will not be enabled unless this property is set and is not Standard. If not specified, Standard will be returned starting api version 2025-11-01.
- userAssignedIdentityResourceId
- String
Specifies ARM Resource ID of one of the user identities associated with the VM.
- proxyAgentSettings
- ProxyAgentSettings
Specifies ProxyAgent settings while creating the virtual machine. Minimum api-version: 2023-09-01.
Returns
A new SecurityProfile instance for mocking.