Forum Discussion

bytesizetrainer's avatar
bytesizetrainer
New Member
3 years ago
Solved

OptionsValidationException: IDW10106: The Instance option must be provided

I get the error on my browser, while trying to run my .NET MVC App.  OptionsValidationException: IDW10106: The Instance option must be provided   I have followed the PowerBI Developer in a Day Tut...
  • bytesizetrainer's avatar
    3 years ago

    This is how my appsettings.json file is setup. I have just masked the values.

     

    {
      "AzureAd": {
        "Instance": "https://login.microsoftonline.com/",
        "Domain": "*****",
        "TenantId": "*****",
        "ClientId": "*****",
        "ClientSecret": "*****"
      },
      "PowerBI": {
        "ServiceRootUrl": "https://api.powerbi.com",
        "WorkspaceId": "*****"
      },
      "CurrentUser": {
        "Region": ""
      },
      "Logging": {
        "LogLevel": {
          "Default": "Information",
          "Microsoft.AspNetCore": "Warning"
        }
      },
      "AllowedHosts": "*"
    }