ArmComputeModelFactory.HostEndpointSettings Method

Definition

public static Azure.ResourceManager.Compute.Models.HostEndpointSettings HostEndpointSettings(Azure.ResourceManager.Compute.Models.HostEndpointSettingsMode? mode = default, string inVmAccessControlProfileReferenceId = default);
static member HostEndpointSettings : Nullable<Azure.ResourceManager.Compute.Models.HostEndpointSettingsMode> * string -> Azure.ResourceManager.Compute.Models.HostEndpointSettings
Public Shared Function HostEndpointSettings (Optional mode As Nullable(Of HostEndpointSettingsMode) = Nothing, Optional inVmAccessControlProfileReferenceId As String = Nothing) As HostEndpointSettings

Parameters

mode
Nullable<HostEndpointSettingsMode>

Specifies the execution mode. In Audit mode, the system acts as if it is enforcing the access control policy, including emitting access denial entries in the logs but it does not actually deny any requests to host endpoints. In Enforce mode, the system will enforce the access control and it is the recommended mode of operation.

inVmAccessControlProfileReferenceId
String

Specifies the InVMAccessControlProfileVersion resource id in the format of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{profile}/versions/{version}.

Returns

A new HostEndpointSettings instance for mocking.

Applies to