After going through all the CLI commands and Creating the event subscription, I get the following output from the log:
Ps. I haven't modified any code from the repo and the only thing I have changed are these variables:
<function_app>
<general_storage_account>
<blob_storage_account>
myResourceGroup
2018-10-11T11:42:16 Welcome, you are now connected to log-streaming service.
2018-10-11T11:43:16 No new trace in the past 1 min(s).
2018-10-11T11:43:16.636 [Information] Executing 'Functions.imageresizerfunc' (Reason='EventGrid trigger fired at 2018-10-11T11:43:16.6049337+00:00', Id=9f57e8b7-fa53-42a2-8611-92cbbb11ee80)
2018-10-11T11:43:16.907 [Error] Function compilation error
Microsoft.CodeAnalysis.Scripting.CompilationErrorException : Script compilation failed.
at async Microsoft.Azure.WebJobs.Script.Description.DotNetFunctionInvoker.CreateFunctionTarget(CancellationToken cancellationToken) at C:\azure-webjobs-sdk-script\src\WebJobs.Script\Description\DotNet\DotNetFunctionInvoker.cs : 314
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async Microsoft.Azure.WebJobs.Script.Description.FunctionLoader1.GetFunctionTargetAsync[T](Int32 attemptCount) at C:\azure-webjobs-sdk-script\src\WebJobs.Script\Description\FunctionLoader.cs : 55
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async Microsoft.Azure.WebJobs.Script.Description.DotNetFunctionInvoker.GetFunctionTargetAsync(Boolean isInvocation) at C:\azure-webjobs-sdk-script\src\WebJobs.Script\Description\DotNet\DotNetFunctionInvoker.cs : 183
2018-10-11T11:43:17.043 [Error] run.csx(4,1): error CS0006: Metadata file 'ImageResizer' could not be found
2018-10-11T11:43:17.203 [Error] run.csx(10,7): error CS0246: The type or namespace name 'ImageResizer' could not be found (are you missing a using directive or an assembly reference?)
2018-10-11T11:43:17.457 [Error] run.csx(11,7): error CS0246: The type or namespace name 'ImageResizer' could not be found (are you missing a using directive or an assembly reference?)
2018-10-11T11:43:17.579 [Error] run.csx(16,30): error CS0246: The type or namespace name 'EventGridEvent' could not be found (are you missing a using directive or an assembly reference?)
2018-10-11T11:43:17.718 [Warning] run.csx(16,72): warning CS0618: 'TraceWriter' is obsolete: 'Will be removed in an upcoming version. Use Microsoft.Extensions.Logging.ILogger instead.'
2018-10-11T11:43:17.751 [Error] run.csx(21,28): error CS0246: The type or namespace name 'Instructions' could not be found (are you missing a using directive or an assembly reference?)
2018-10-11T11:43:17.861 [Error] run.csx(25,16): error CS0103: The name 'FitMode' does not exist in the current context
2018-10-11T11:43:17.947 [Error] run.csx(26,17): error CS0103: The name 'ScaleMode' does not exist in the current context
2018-10-11T11:43:18.015 [Error] run.csx(47,9): error CS0103: The name 'ImageBuilder' does not exist in the current context
2018-10-11T11:43:18.138 [Error] run.csx(47,40): error CS0246: The type or namespace name 'ImageJob' could not be found (are you missing a using directive or an assembly reference?)
2018-10-11T11:43:18.250 [Error] Executed 'Functions.imageresizerfunc' (Failed, Id=9f57e8b7-fa53-42a2-8611-92cbbb11ee80)
Script compilation failed.
2018-10-11T11:43:28.383 [Information] Executing 'Functions.imageresizerfunc' (Reason='EventGrid trigger fired at 2018-10-11T11:43:28.3797792+00:00', Id=2de4fadd-8497-44a5-88c0-81cd3a6bb14b)
2018-10-11T11:43:28.420 [Error] Function compilation error
Microsoft.CodeAnalysis.Scripting.CompilationErrorException : Script compilation failed.
at async Microsoft.Azure.WebJobs.Script.Description.DotNetFunctionInvoker.CreateFunctionTarget(CancellationToken cancellationToken) at C:\azure-webjobs-sdk-script\src\WebJobs.Script\Description\DotNet\DotNetFunctionInvoker.cs : 314
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async Microsoft.Azure.WebJobs.Script.Description.FunctionLoader1.GetFunctionTargetAsyncT at C:\azure-webjobs-sdk-script\src\WebJobs.Script\Description\FunctionLoader.cs : 55
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async Microsoft.Azure.WebJobs.Script.Description.DotNetFunctionInvoker.GetFunctionTargetAsync(Boolean isInvocation) at C:\azure-webjobs-sdk-script\src\WebJobs.Script\Description\DotNet\DotNetFunctionInvoker.cs : 183
2018-10-11T11:43:28.494 [Error] run.csx(4,1): error CS0006: Metadata file 'ImageResizer' could not be found
2018-10-11T11:43:28.592 [Error] run.csx(10,7): error CS0246: The type or namespace name 'ImageResizer' could not be found (are you missing a using directive or an assembly reference?)
2018-10-11T11:43:28.650 [Error] run.csx(11,7): error CS0246: The type or namespace name 'ImageResizer' could not be found (are you missing a using directive or an assembly reference?)
2018-10-11T11:43:28.734 [Error] run.csx(16,30): error CS0246: The type or namespace name 'EventGridEvent' could not be found (are you missing a using directive or an assembly reference?)
2018-10-11T11:43:28.771 [Warning] run.csx(16,72): warning CS0618: 'TraceWriter' is obsolete: 'Will be removed in an upcoming version. Use Microsoft.Extensions.Logging.ILogger instead.'
2018-10-11T11:43:28.834 [Error] run.csx(21,28): error CS0246: The type or namespace name 'Instructions' could not be found (are you missing a using directive or an assembly reference?)
2018-10-11T11:43:28.902 [Error] run.csx(25,16): error CS0103: The name 'FitMode' does not exist in the current context
2018-10-11T11:43:29.071 [Error] run.csx(26,17): error CS0103: The name 'ScaleMode' does not exist in the current context
2018-10-11T11:43:29.177 [Error] run.csx(47,9): error CS0103: The name 'ImageBuilder' does not exist in the current context
2018-10-11T11:43:29.243 [Error] run.csx(47,40): error CS0246: The type or namespace name 'ImageJob' could not be found (are you missing a using directive or an assembly reference?)
2018-10-11T11:43:29.366 [Error] Executed 'Functions.imageresizerfunc' (Failed, Id=2de4fadd-8497-44a5-88c0-81cd3a6bb14b)
Script compilation failed.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Hi @shapeh Thank you for your feedback! We will investigate and get back to you with our findings.
Exact same issue. Very frustrating.
@ggailey777 - I just want to make sure you are aware of this issue.
@craigshoemaker where are we with the article update for v2?
@shapeh and @pdbeckwith the sample was updated on Oct 26th to feature a v2 function (which no longer uses TraceWriter, etc.). Have you tried this tutorial again since 10/26?
cc: @ggailey777 & @mike-urnun-msft
Have you tried this tutorial again since 10/26?
@craigshoemaker - did not try yet / basically we had to move on due to a sharp deadline.
Since the doc was updated to address the stated issue, I am going to as to #please-close this issue. If you feel like we need to reopen the issue at a later date, @shapeh please just say the word.
@craigshoemaker - okay, yeah, please close - I will revisit the docs once I get a few hours.