Skip to main content

Die Konfigurationsdatei appsettings.json

Beschreibung
appsettings.json









































Der SQL Connection String































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



Der SQL Connection String
Der SQL Connection String




Auth App-Registrierung Tenant-ID
Auth App-Registrierung Client-ID
Auth App-Registrierung Client Secret




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







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": "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": "<1>",
          "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": "<2>",
    "IntuneWinFileDirectory": "<3>",
    "OverwriteExistingPackages": false
  },
  "ConnectionStrings": {
    "DefaultConnection": "<4>",
    "HangfireConnection": "<5>"
  },
  "AzureAuth": {
    "Instance": "https://login.microsoftonline.com/",
    "Domain": "",
    "TenantId": "<6>",
    "ClientId": "<7>",
    "ClientSecret": "<8>"
  },
  "IntuneConnections": {
    "Connections": [
      {
        "Id": "<9>",
        "DisplayName": "<10>",
        "Description": "<11>",
        "TenantId": "<12>",
        "ClientId": "<13>",
        "ClientSecret": "<14>"
      }
    ]
  },
  "MecmConnections": {
    "IsCustomConnectionEnabled": false,
    "Connections": [
      {
        "Id": "<15>",
        "Server": "<16>",
        "DisplayName": "<17>",
        "Description": "<18>"
      }
    ]
  },
  "Customization": {
    "Title": "Intune Manager",
    "LogoUri": "intuneManager.png"
  } 
}