Class UnattendedSettings
Typed configuration options for unattended settings.
Inheritance
Namespace: Umbraco.Cms.Core.Configuration.Models
Assembly: Umbraco.Core.dll
Syntax
[UmbracoOptions("Umbraco:CMS:Unattended")]
public class UnattendedSettings
Constructors
View SourceUnattendedSettings()
Declaration
public UnattendedSettings()
Properties
View SourceInstallUnattended
Gets or sets a value indicating whether unattended installs are enabled.
Declaration
public bool InstallUnattended { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
By default, when a database connection string is configured and it is possible to connect to
the database, but the database is empty, the runtime enters the Install level.
If this option is set to true an unattended install will be performed and the runtime enters
the Run level.
MigrationClaimTimeout
Gets or sets the maximum time a migration leadership claim is considered valid before another server may take over. Protects against a leader crashing mid-migration.
Declaration
public TimeSpan MigrationClaimTimeout { get; set; }
Property Value
| Type | Description |
|---|---|
| TimeSpan |
Remarks
Only relevant in load-balanced deployments with UpgradeUnattended enabled. Default is 2 hours, which should exceed the longest reasonable migration run time.
PackageMigrationsUnattended
Gets or sets a value indicating whether unattended package migrations are enabled.
Declaration
public bool PackageMigrationsUnattended { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
This is true by default.
UnattendedTelemetryLevel
Gets or sets a telemetry level to use for Unattended Installs
Declaration
public TelemetryLevel UnattendedTelemetryLevel { get; set; }
Property Value
| Type | Description |
|---|---|
| TelemetryLevel |
UnattendedUserEmail
Gets or sets a value to use for creating a user with an email for Unattended Installs
Declaration
[EmailAddress]
public string? UnattendedUserEmail { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
UnattendedUserName
Gets or sets a value to use for creating a user with a name for Unattended Installs
Declaration
public string? UnattendedUserName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
UnattendedUserPassword
Gets or sets a value to use for creating a user with a password for Unattended Installs
Declaration
public string? UnattendedUserPassword { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
UpgradeUnattended
Gets or sets a value indicating whether unattended upgrades are enabled.
Declaration
public bool UpgradeUnattended { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |