[WARN][2019-11-28 11:02:25.337][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:224:ProcessOptionalPlaceholders] Environment variables not found, {"varsNotFound":", PCS_LOG_LEVEL"} [WARN][2019-11-28 11:02:25.346][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:224:ProcessOptionalPlaceholders] Environment variables not found, {"varsNotFound":", PCS_SEED_TEMPLATE"} [WARN][2019-11-28 11:02:25.350][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:224:ProcessOptionalPlaceholders] Environment variables not found, {"varsNotFound":", PCS_TWIN_READ_WRITE_ENABLED"} [WARN][2019-11-28 11:02:25.350][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:224:ProcessOptionalPlaceholders] Environment variables not found, {"varsNotFound":", PCS_C2D_METHODS_ENABLED"} [WARN][2019-11-28 11:02:25.357][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:224:ProcessOptionalPlaceholders] Environment variables not found, {"varsNotFound":", PCS_SOLUTION_TYPE"} [WARN][2019-11-28 11:02:25.360][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:224:ProcessOptionalPlaceholders] Environment variables not found, {"varsNotFound":", PCS_DIAGNOSTICS_WEBSERVICE_URL"} [WARN][2019-11-28 11:02:25.362][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:224:ProcessOptionalPlaceholders] Environment variables not found, {"varsNotFound":", PCS_CORS_WHITELIST"} [WARN][2019-11-28 11:02:25.362][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:224:ProcessOptionalPlaceholders] Environment variables not found, {"varsNotFound":", PCS_AUTH_REQUIRED"} [WARN][2019-11-28 11:02:25.364][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:224:ProcessOptionalPlaceholders] Environment variables not found, {"varsNotFound":", PCS_AUTH_ISSUER"} [WARN][2019-11-28 11:02:25.365][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:224:ProcessOptionalPlaceholders] Environment variables not found, {"varsNotFound":", PCS_AUTH_AUDIENCE"} [WARN][2019-11-28 11:02:25.370][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:224:ProcessOptionalPlaceholders] Environment variables not found, {"varsNotFound":", PCS_SUBSCRIPTION_DOMAIN"} [WARN][2019-11-28 11:02:25.373][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:224:ProcessOptionalPlaceholders] Environment variables not found, {"varsNotFound":", PCS_SUBSCRIPTION_ID"} [WARN][2019-11-28 11:02:25.374][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:224:ProcessOptionalPlaceholders] Environment variables not found, {"varsNotFound":", PCS_RESOURCE_GROUP"} [WARN][2019-11-28 11:02:25.374][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:224:ProcessOptionalPlaceholders] Environment variables not found, {"varsNotFound":", PCS_RESOURCE_GROUP_LOCATION"} [WARN][2019-11-28 11:02:25.375][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:224:ProcessOptionalPlaceholders] Environment variables not found, {"varsNotFound":", PCS_IOHUB_NAME"} [WARN][2019-11-28 11:02:25.376][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:224:ProcessOptionalPlaceholders] Environment variables not found, {"varsNotFound":", PCS_VMSS_NAME"} [WARN][2019-11-28 11:02:25.380][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:224:ProcessOptionalPlaceholders] Environment variables not found, {"varsNotFound":", PCS_WEBUI_AUTH_AAD_TENANT"} [WARN][2019-11-28 11:02:25.383][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:224:ProcessOptionalPlaceholders] Environment variables not found, {"varsNotFound":", PCS_AUTH_AUDIENCE"} [WARN][2019-11-28 11:02:25.384][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:224:ProcessOptionalPlaceholders] Environment variables not found, {"varsNotFound":", PCS_AAD_SECRET"} [INFO][2019-11-28 11:02:25.393][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:148:GetStringInternal] Configuration setting not found, using default value, {"key":"DeviceSimulationService:SimulationConcurrency:max_pending_tasks","defaultValue":"25"} [INFO][2019-11-28 11:02:25.398][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:148:GetStringInternal] Configuration setting not found, using default value, {"key":"DeviceSimulationService:Clustering:partition_lock_duration","defaultValue":"60000"} [WARN][2019-11-28 11:02:26.631][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:224:ProcessOptionalPlaceholders] Environment variables not found, {"varsNotFound":", PCS_LOG_LEVEL"} [WARN][2019-11-28 11:02:26.632][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:224:ProcessOptionalPlaceholders] Environment variables not found, {"varsNotFound":", PCS_SEED_TEMPLATE"} [WARN][2019-11-28 11:02:26.640][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:224:ProcessOptionalPlaceholders] Environment variables not found, {"varsNotFound":", PCS_TWIN_READ_WRITE_ENABLED"} [WARN][2019-11-28 11:02:26.644][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:224:ProcessOptionalPlaceholders] Environment variables not found, {"varsNotFound":", PCS_C2D_METHODS_ENABLED"} [WARN][2019-11-28 11:02:26.652][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:224:ProcessOptionalPlaceholders] Environment variables not found, {"varsNotFound":", PCS_SOLUTION_TYPE"} [WARN][2019-11-28 11:02:26.655][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:224:ProcessOptionalPlaceholders] Environment variables not found, {"varsNotFound":", PCS_DIAGNOSTICS_WEBSERVICE_URL"} [WARN][2019-11-28 11:02:26.656][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:224:ProcessOptionalPlaceholders] Environment variables not found, {"varsNotFound":", PCS_CORS_WHITELIST"} [WARN][2019-11-28 11:02:26.657][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:224:ProcessOptionalPlaceholders] Environment variables not found, {"varsNotFound":", PCS_AUTH_REQUIRED"} [WARN][2019-11-28 11:02:26.658][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:224:ProcessOptionalPlaceholders] Environment variables not found, {"varsNotFound":", PCS_AUTH_ISSUER"} [WARN][2019-11-28 11:02:26.659][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:224:ProcessOptionalPlaceholders] Environment variables not found, {"varsNotFound":", PCS_AUTH_AUDIENCE"} [WARN][2019-11-28 11:02:26.661][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:224:ProcessOptionalPlaceholders] Environment variables not found, {"varsNotFound":", PCS_SUBSCRIPTION_DOMAIN"} [WARN][2019-11-28 11:02:26.662][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:224:ProcessOptionalPlaceholders] Environment variables not found, {"varsNotFound":", PCS_SUBSCRIPTION_ID"} [WARN][2019-11-28 11:02:26.663][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:224:ProcessOptionalPlaceholders] Environment variables not found, {"varsNotFound":", PCS_RESOURCE_GROUP"} [WARN][2019-11-28 11:02:26.664][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:224:ProcessOptionalPlaceholders] Environment variables not found, {"varsNotFound":", PCS_RESOURCE_GROUP_LOCATION"} [WARN][2019-11-28 11:02:26.666][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:224:ProcessOptionalPlaceholders] Environment variables not found, {"varsNotFound":", PCS_IOHUB_NAME"} [WARN][2019-11-28 11:02:26.667][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:224:ProcessOptionalPlaceholders] Environment variables not found, {"varsNotFound":", PCS_VMSS_NAME"} [WARN][2019-11-28 11:02:26.668][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:224:ProcessOptionalPlaceholders] Environment variables not found, {"varsNotFound":", PCS_WEBUI_AUTH_AAD_TENANT"} [WARN][2019-11-28 11:02:26.672][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:224:ProcessOptionalPlaceholders] Environment variables not found, {"varsNotFound":", PCS_AUTH_AUDIENCE"} [WARN][2019-11-28 11:02:26.673][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:224:ProcessOptionalPlaceholders] Environment variables not found, {"varsNotFound":", PCS_AAD_SECRET"} [INFO][2019-11-28 11:02:26.675][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:148:GetStringInternal] Configuration setting not found, using default value, {"key":"DeviceSimulationService:SimulationConcurrency:max_pending_tasks","defaultValue":"25"} [INFO][2019-11-28 11:02:26.680][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][ConfigData.cs:148:GetStringInternal] Configuration setting not found, using default value, {"key":"DeviceSimulationService:Clustering:partition_lock_duration","defaultValue":"60000"} [ALWAYS][2019-11-28 11:02:27.001][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][Startup.cs:205:PrintBootstrapInfo] Service started, {"ProcessId":"WebService.d57d6a47-889b-471f-9476-c32c0e20c55d","LogLevel":"Warn"} [ALWAYS][2019-11-28 11:02:27.003][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][Startup.cs:207:PrintBootstrapInfo] Logging level: Warn [ALWAYS][2019-11-28 11:02:27.005][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][Startup.cs:208:PrintBootstrapInfo] Web service auth required: True [ALWAYS][2019-11-28 11:02:27.007][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][Startup.cs:210:PrintBootstrapInfo] Device Models folder: C:\MCW-IoT-and-the-Smart-City-master\Hands-on lab\Lab-files\DeviceSimulation\WebService\bin\Debug\netcoreapp2.2\\./data/devicemodels/\ [ALWAYS][2019-11-28 11:02:27.011][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][Startup.cs:211:PrintBootstrapInfo] Scripts folder: C:\MCW-IoT-and-the-Smart-City-master\Hands-on lab\Lab-files\DeviceSimulation\WebService\bin\Debug\netcoreapp2.2\\./data/devicemodels/scripts/\ [ALWAYS][2019-11-28 11:02:27.015][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][Startup.cs:213:PrintBootstrapInfo] Connections per second: 120 [ALWAYS][2019-11-28 11:02:27.017][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][Startup.cs:214:PrintBootstrapInfo] Registry ops per minute: 100 [ALWAYS][2019-11-28 11:02:27.017][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][Startup.cs:215:PrintBootstrapInfo] Messages per second: 120 [ALWAYS][2019-11-28 11:02:27.021][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][Startup.cs:219:PrintBootstrapInfo] Twin reads per second: 10 [ALWAYS][2019-11-28 11:02:27.022][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][Startup.cs:220:PrintBootstrapInfo] Twin writes per second: 10 [ALWAYS][2019-11-28 11:02:27.025][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][Startup.cs:228:PrintBootstrapInfo] C2D Methods: Enabled [ALWAYS][2019-11-28 11:02:27.028][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][Startup.cs:230:PrintBootstrapInfo] Number of telemetry threads: 4 [ALWAYS][2019-11-28 11:02:27.031][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][Startup.cs:231:PrintBootstrapInfo] Max pending connections: 200 [ALWAYS][2019-11-28 11:02:27.034][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][Startup.cs:232:PrintBootstrapInfo] Max pending telemetry messages: 1000 [ALWAYS][2019-11-28 11:02:27.035][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][Startup.cs:233:PrintBootstrapInfo] Max pending twin writes: 50 [ALWAYS][2019-11-28 11:02:27.036][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][Startup.cs:234:PrintBootstrapInfo] Min duration of state loop: 1000 [ALWAYS][2019-11-28 11:02:27.038][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][Startup.cs:235:PrintBootstrapInfo] Min duration of connection loop: 1000 [ALWAYS][2019-11-28 11:02:27.039][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][Startup.cs:236:PrintBootstrapInfo] Min duration of telemetry loop: 500 [ALWAYS][2019-11-28 11:02:27.040][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][Startup.cs:237:PrintBootstrapInfo] Min duration of twin write loop: 2000 [ALWAYS][2019-11-28 11:02:27.041][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][Startup.cs:238:PrintBootstrapInfo] Max devices per partition: 3000 [ALWAYS][2019-11-28 11:02:27.042][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][Startup.cs:240:PrintBootstrapInfo] Main storage: CosmosDbSql [ALWAYS][2019-11-28 11:02:27.043][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][Startup.cs:241:PrintBootstrapInfo] Simulations storage: CosmosDbSql [ALWAYS][2019-11-28 11:02:27.044][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][Startup.cs:242:PrintBootstrapInfo] Statistics storage: CosmosDbSql [ALWAYS][2019-11-28 11:02:27.045][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][Startup.cs:243:PrintBootstrapInfo] Replay files storage:CosmosDbSql [ALWAYS][2019-11-28 11:02:27.046][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][Startup.cs:244:PrintBootstrapInfo] Devices storage: CosmosDbSql [ALWAYS][2019-11-28 11:02:27.052][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][Startup.cs:245:PrintBootstrapInfo] Partitions storage: TableStorage [ALWAYS][2019-11-28 11:02:27.053][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][Startup.cs:246:PrintBootstrapInfo] Nodes storage: CosmosDbSql [ALWAYS][2019-11-28 11:02:27.054][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][Startup.cs:248:PrintBootstrapInfo] SDK device client timeout: 20000 [ALWAYS][2019-11-28 11:02:27.055][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][Startup.cs:249:PrintBootstrapInfo] SDK Microsoft.Azure.Devices.Client version: 1.20.3 [ALWAYS][2019-11-28 11:02:27.056][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][Startup.cs:251:PrintBootstrapInfo] SDK Microsoft.Azure.Devices.Common version: 1.18.1 [ERROR][2019-11-28 11:02:27.942][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][AuthMiddleware.cs:237:InitializeTokenValidationAsync] Failed to setup OpenId Connect, { ExceptionFullName = System.InvalidOperationException, ExceptionMessage = IDX10803: Unable to obtain configuration from: '.well-known/openid-configuration'., StackTrace = at Microsoft.IdentityModel.Protocols.ConfigurationManager`1.GetConfigurationAsync(CancellationToken cancel) at Microsoft.Azure.IoTSolutions.DeviceSimulation.WebService.Auth.AuthMiddleware.InitializeTokenValidationAsync(CancellationToken token) in C:\MCW-IoT-and-the-Smart-City-master\Hands-on lab\Lab-files\DeviceSimulation\WebService\Auth\AuthMiddleware.cs:line 210, Source = Microsoft.IdentityModel.Protocols, Data = System.Collections.ListDictionaryInternal, InnerException = { ExceptionFullName = System.ArgumentException, ExceptionMessage = IDX10108: The address specified is not valid as per HTTPS scheme. Please specify an https address for security reasons. If you want to test with http address, set the RequireHttps property on IDocumentRetriever to false. Parameter name: .well-known/openid-configuration, StackTrace = at Microsoft.IdentityModel.Protocols.HttpDocumentRetriever.GetDocumentAsync(String address, CancellationToken cancel) at Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectConfigurationRetriever.GetAsync(String address, IDocumentRetriever retriever, CancellationToken cancel) at Microsoft.IdentityModel.Protocols.ConfigurationManager`1.GetConfigurationAsync(CancellationToken cancel), Source = Microsoft.IdentityModel.Protocols, Data = System.Collections.ListDictionaryInternal, InnerException = } } Hosting environment: Development Content root path: C:\MCW-IoT-and-the-Smart-City-master\Hands-on lab\Lab-files\DeviceSimulation\WebService\bin\Debug\netcoreapp2.2\ Now listening on: http://[::]:9003 Application started. Press Ctrl+C to shut down. [WARN][2019-11-28 11:02:29.362][WebService.d57d6a47-889b-471f-9476-c32c0e20c55d][SDKWrapper.cs:175:CreateDatabaseAsync] Another process already created the database, {"dbName":"devicesimulation"}