Skip to main content

Die Konfigurationsdatei appsettings.json

Die Konfiguration der Web-Applikations erfolgt über die Datei appsettings.json in Installationsverzeichnis.

Wird die Datei appsettings.json geändert, muss der Application Pool im IIS neu gestartet werden, damit die Änderungen wirksam werden.

Werden innerhalb der Datei appsettings.json Backslashes verwendet, müssen diese escaped werden.
Das bedeutet, aus \ wird \\.

Beschreibung
appsettings.json









































Der SQL Connection String

















Dateipfad der Log-Datei












Url der Applikation

Dateipfad zum Microsoft-Win32-Content-Prep-Tool (IntuneWinAppUtil.exe)
Dateipfad zu den generierten .intunewin Files



Der SQL Connection String
Der SQL Connection String



#Bitte das Feld Domain leer lassen
Auth App-Registrierung Tenant-ID
Auth App-Registrierung Client-ID
Auth App-Registrierung Client Secret



#Der Block Connections kann mehrfach angelegt werden. Muss mit Komma getrennt werden
Unique Identifier einer Intune Connection
Anzeigename einer Intune Connection
Beschreibung einer Intune Connection
Intune App-Registrierung Tenant-ID
Intune App-Registrierung Client-ID
Intune App-Registrierung Client Secret






#Der Block Connections kann mehrfach angelegt werden. Muss mit Komma getrennt werden
Unique Identifier einer MECM Connection
MECM Site Server
Anzeigename einer MECM Connection
Beschreibung einer MECM Connection














#EOF
{
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft": "Warning",
      "Microsoft.Hosting.Lifetime": "Information",
      "Hangfire": "Information"
    }
  },
  "Serilog": {
    "MinimumLevel": {
      "Default": "Information",
      "Override": {
        "Microsoft": "Warning",
        "Microsoft.Hosting.Lifetime": "Information"
      }
    },
    "Using": [
      "Serilog.Expressions"
    ],
    "Enrich": [
      "WithEnvironmentUserName",
      "FromLogContext"
    ],
    "Properties": {
      "ApplicationName": "Intune Manager"
    },
    "WriteTo": [
      {
        "Name": "Console",
        "Args": {
          "theme": "Serilog.Sinks.SystemConsole.Themes.AnsiConsoleTheme::Code, Serilog.Sinks.Console",
          "formatter": {
            "type": "Serilog.Templates.ExpressionTemplate, Serilog.Expressions",
            "template": "[{@t:HH:mm:ss} {@l:u3}] <s:{SourceContext}> {@m}\n{@x}"
          }
        }
      },
      {
        "Name": "MSSqlServer",
        "Args": {
          "connectionString": "",
          "tableName": "Logs",
          "autoCreateSqlTable": true,
          "restrictedToMinimumLevel": "Error"
        }
      },
      {
        "Name": "Async",
        "Args": {
          "configure": [
            {
              "Name": "File",
              "Args": {
                "formatter": {
                  "type": "Serilog.Templates.ExpressionTemplate, Serilog.Expressions",
                  "template": "<![LOG[{EnvironmentUserName} --> {@l:u}: {@m}\n{@x}]LOG]!><time=\"{@t:HH:mm:ss.fffffff}\" date=\"{@t:MM-dd-yyyy}\" component=\"{ApplicationName} {Version}\" context=\"\" type=\"{#if @l = 'Error'}3{#else if @l = 'Warning'}2{#else}1{#end}\" thread=\"\" file=\"\">\n"

                },
                "path": "intune_manager.log",
                "shared": "true",
                "fileSizeLimitBytes": "1000000",
                "rollOnFileSizeLimit": true,
                "flushToDiskInterval": "1"
              }
            }
          ]
        }
      }
    ]
  },
  "AllowedHosts": "*",
  "ApplicationUrl": "",
  "IntuneWinPackage": {
    "IntuneWinAppUtilPath": "",
    "IntuneWinFileDirectory": "",
    "OverwriteExistingPackages": false
  },
  "ConnectionStrings": {
    "DefaultConnection": "",
    "HangfireConnection": ""
  },
  "AzureAuth": {
    "Instance": "https://login.microsoftonline.com/",
    "Domain": "",
    "TenantId": "",
    "ClientId": "",
    "ClientSecret": ""
  },
  "IntuneConnections": {
    "Connections": [
      {
        "Id": "",
        "DisplayName": "",
        "Description": "",
        "TenantId": "",
        "ClientId": "",
        "ClientSecret": ""
      }
    ]
  },
  "MecmConnections": {
    "IsCustomConnectionEnabled": false,
    "Connections": [
      {
        "Id": "",
        "Server": "",
        "DisplayName": "",
        "Description": ""
      }
    ]
  },
  "Customization": {
    "Title": "Intune Manager",
    "LogoUri": "intuneManager.png"
  } ,
  "PermaLinks": {
    "AuthorizationAndAuthentication": "https://docs.smcteam.de/link/436#bkmrk-page-title"
  },
  "MaintenanceSettings": {
    "UpdateAppThumbnailsCronString": "*/30 * * * *",
    "ThumbnailHeight": 64
  }
}

Wird die Datei appsettings.json geändert, muss der Application Pool im IIS neu gestartet werden, damit die Änderungen wirksam werden.