Skip to main content

The configuration file appsettings.json

DieThe Konfigurationconfiguration derof Web-Applikationsthe erfolgtweb überapplication dieis Dateidone via the appsettings.json file in Installationsverzeichnis.
the installation directory.

WirdIf die Dateithe appsettings.json geändert,file mussis derchanged, the Application Pool imin IIS neumust gestartetbe werden,restarted damitfor diethe Änderungenchanges wirksamto werden.take effect.

WerdenIf innerhalbbackslashes derare Dateiused within the appsettings.json Backslashesfile, verwendet,they müssenmust diesebe escapedescaped.
This werden.means
Dasthat bedeutet,\ ausbecomes \ wird \\.

BeschreibungDescription
appsettings.json









































DerThe SQL Connection String

















DateipfadFile derpath Log-Dateiof Dateipfadthe zumlog Microsoft-Win32-Content-Prep-Toolfile













File path to the Microsoft Win32 content prep tool (IntuneWinAppUtil.exe)
DateipfadFile zupath dento generiertenthe generated .intunewin Filesfiles



DerThe SQL Connection String
DerThe SQL Connection String



#Bitte#Please dasleave Feldthe Domaindomain leerfield lassenempty
Auth App-RegistrierungApp Tenant-Registration Tenant ID
Auth App-RegistrierungApp Client-Registration Client ID
Auth App-RegistrierungApp Registration Client Secret



#Der Block#The Connections kannblock mehrfachcan angelegtbe werden.created Mussmultiple mittimes. KommaMust getrenntbe werdenseparated with comma
Unique Identifier einerof an Intune Connection
AnzeigenameDisplay einername of an Intune Connection
BeschreibungDescription einerof an Intune Connection
Intune App-RegistrierungApp Tenant-Registration Tenant ID
Intune App-RegistrierungApp Client-Registration Client ID
Intune App-RegistrierungApp Registration Client Secret






#Der Block#The Connections kannblock mehrfachcan angelegtbe werden.created Mussmultiple mittimes. KommaMust getrenntbe werdenseparated with comma
Unique Identifier einerof a MECM Connection
MECM Site Server
AnzeigenameDisplay einername of a MECM Connection
BeschreibungDescription einerof a 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": "smcPortal"
    },
    "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": "*",
  "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"
  } 
}