Azure PortalのそれぞれのConnectionStringで実行しているAppサービスがあります。 ConnectionStringは、Azure SQL Serverを指しています。 .NET Core Azure WebJobsがAzureアプリケーションの設定から読み取らない
は、私は次のappsettings.jsonとWebJobを持って
{
"ConnectionStrings": {
"DefaultConnection": "Add your connection string"
}
}
私は、Webジョブを実行すると、紺碧のポータルから接続文字列を引っ張っていないようですが、それは私のデフォルトを使用していますappsettings.jsonのConnectionStrings。
[02/13/2017 08:45:27 > 2942c6: SYS INFO] Status changed to Initializing
[02/13/2017 08:45:27 > 2942c6: SYS INFO] Run script 'run.cmd' with script host - 'WindowsScriptHost'
[02/13/2017 08:45:27 > 2942c6: SYS INFO] Status changed to Running
[02/13/2017 08:45:27 > 2942c6: INFO]
[02/13/2017 08:45:27 > 2942c6: INFO] D:\local\Temp\jobs\triggered\TestConnectionString\32vmiek4.2av>dotnet TestConnectionString.dll
[02/13/2017 08:45:29 > 2942c6: INFO] Add your connection string
具体的な.NET Coreのバージョンは何ですか?また、VS2015 Update 3またはVS2017 RC1などを使用していますか? – juvchan
こんにちは@juvchan私は.NET Core 1.0.3とVS 2017 RC –