ArmHybridComputeModelFactory.AgentConfiguration Method

Definition

Initializes a new instance of AgentConfiguration.

public static Azure.ResourceManager.HybridCompute.Models.AgentConfiguration AgentConfiguration (Uri proxyUri = default, System.Collections.Generic.IEnumerable<string> incomingConnectionsPorts = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.HybridCompute.Models.HybridComputeConfigurationExtension> extensionsAllowList = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.HybridCompute.Models.HybridComputeConfigurationExtension> extensionsBlockList = default, System.Collections.Generic.IEnumerable<string> proxyBypass = default, string extensionsEnabled = default, string guestConfigurationEnabled = default, Azure.ResourceManager.HybridCompute.Models.AgentConfigurationMode? configMode = default);
static member AgentConfiguration : Uri * seq<string> * seq<Azure.ResourceManager.HybridCompute.Models.HybridComputeConfigurationExtension> * seq<Azure.ResourceManager.HybridCompute.Models.HybridComputeConfigurationExtension> * seq<string> * string * string * Nullable<Azure.ResourceManager.HybridCompute.Models.AgentConfigurationMode> -> Azure.ResourceManager.HybridCompute.Models.AgentConfiguration
Public Shared Function AgentConfiguration (Optional proxyUri As Uri = Nothing, Optional incomingConnectionsPorts As IEnumerable(Of String) = Nothing, Optional extensionsAllowList As IEnumerable(Of HybridComputeConfigurationExtension) = Nothing, Optional extensionsBlockList As IEnumerable(Of HybridComputeConfigurationExtension) = Nothing, Optional proxyBypass As IEnumerable(Of String) = Nothing, Optional extensionsEnabled As String = Nothing, Optional guestConfigurationEnabled As String = Nothing, Optional configMode As Nullable(Of AgentConfigurationMode) = Nothing) As AgentConfiguration

Parameters

proxyUri
Uri

Specifies the URL of the proxy to be used.

incomingConnectionsPorts
IEnumerable<String>

Specifies the list of ports that the agent will be able to listen on.

extensionsAllowList
IEnumerable<HybridComputeConfigurationExtension>

Array of extensions that are allowed to be installed or updated.

extensionsBlockList
IEnumerable<HybridComputeConfigurationExtension>

Array of extensions that are blocked (cannot be installed or updated).

proxyBypass
IEnumerable<String>

List of service names which should not use the specified proxy server.

extensionsEnabled
String

Specifies whether the extension service is enabled or disabled.

guestConfigurationEnabled
String

Specified whether the guest configuration service is enabled or disabled.

configMode
Nullable<AgentConfigurationMode>

Name of configuration mode to use. Modes are pre-defined configurations of security controls, extension allowlists and guest configuration, maintained by Microsoft.

Returns

A new AgentConfiguration instance for mocking.

Applies to