Skip to main content

The configuration file appsettings.json

The configuration of the web application is done via the appsettings.json file in the installation directory.

If the appsettings.json file is changed, the Application Pool in IIS must be restarted for the changes to take effect.

If backslashes are used within the appsettings.json file, they must be escaped.
This means that \ becomes \\.

Description
appsettings.json









































The SQL Connectionconnection Stringstring for error logging in the database.
Table name for error logging
















File path of the log file

Maximum size of the log file in bytes.
If the value is set to true, a new log file is created when the maximum size is reached. If the value is set to false, the log file is overwritten.









Application Url

File path to the Microsoft Win32 content prep tool (IntuneWinAppUtil.exe)
File path to the generated .intunewin files



The SQL Connection String
The SQL Connection String



#Please leave the domain field empty
Auth App Registration Tenant ID
Auth App Registration Client ID
Auth App Registration Client Secret



#The Connections block can be created multiple times. Must be separated with comma
Unique Identifier of an Intune Connection
Display name of an Intune Connection
Description of an Intune Connection
Intune App Registration Tenant ID
Intune App Registration Client ID
Intune App Registration Client Secret






#The Connections block can be created multiple times. Must be separated with comma
Unique Identifier of a MECM Connection
MECM Site Server
Display name of a MECM Connection
Description of 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": "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"
  } 
}