Compartilhar via


Configuration Class

Definition

Non versioned Container App configuration properties that define the mutable settings of a Container app

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.ConfigurationTypeConverter))]
public class Configuration : Microsoft.Azure.PowerShell.Cmdlets.App.Models.IConfiguration
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.ConfigurationTypeConverter))>]
type Configuration = class
    interface IConfiguration
    interface IJsonSerializable
Public Class Configuration
Implements IConfiguration
Inheritance
Configuration
Attributes
Implements

Constructors

Configuration()

Creates an new Configuration instance.

Properties

ActiveRevisionsMode

ActiveRevisionsMode controls how active revisions are handled for the Container app:

CorPolicyAllowCredentials

Specifies whether the resource allows credentials

CorPolicyAllowedHeader

Specifies the content for the access-control-allow-headers header

CorPolicyAllowedMethod

Specifies the content for the access-control-allow-methods header

CorPolicyAllowedOrigin

Specifies the content for the access-control-allow-origins header

CorPolicyExposeHeader

Specifies the content for the access-control-expose-headers header

CorPolicyMaxAge

Specifies the content for the access-control-max-age header

DaprAppId

Dapr application identifier

DaprAppPort

Tells Dapr which port your application is listening on

DaprAppProtocol

Tells Dapr which protocol your application is using. Valid options are http and grpc. Default is http

DaprEnableApiLogging

Enables API logging for the Dapr sidecar

DaprEnabled

Boolean indicating if the Dapr side car is enabled

DaprHttpMaxRequestSize

Increasing max size of request body http and grpc servers parameter in MB to handle uploading of big files. Default is 4 MB.

DaprHttpReadBufferSize

Dapr max size of http header read buffer in KB to handle when sending multi-KB headers. Default is 65KB.

DaprLogLevel

Sets the log level for the Dapr sidecar. Allowed values are debug, info, warn, error. Default is info.

IngressAllowInsecure

Bool indicating if HTTP connections to is allowed. If set to false HTTP connections are automatically redirected to HTTPS connections

IngressClientCertificateMode

Client certificate mode for mTLS authentication. Ignore indicates server drops client certificate on forwarding. Accept indicates server forwards client certificate but does not require a client certificate. Require indicates server requires a client certificate.

IngressCustomDomain

custom domain bindings for Container Apps' hostnames.

IngressExposedPort

Exposed Port in containers for TCP traffic from ingress

IngressExternal

Bool indicating if app exposes an external http endpoint

IngressFqdn

Hostname.

IngressIPSecurityRestriction

Rules to restrict incoming IP address.

IngressTargetPort

Target Port in containers for traffic from ingress

IngressTraffic

Traffic weights for app's revisions

IngressTransport

Ingress transport protocol

MaxInactiveRevision

Optional. Max inactive revisions a Container App can have.

Registry

Collection of private container registry credentials for containers used by the Container app

Secret

Collection of secrets used by a Container app

ServiceType

Dev ContainerApp service type

StickySessionAffinity

Sticky Session Affinity

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of Configuration.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of Configuration.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.App.Models.IConfiguration.

FromJsonString(String)

Creates a new instance of Configuration, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of Configuration into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to