After turning on AppInsights, I see an error about Storage account. Adding "AzureWebJobsStorage" to config seems to have no effect. How do I get rid of this message?
[{
"severityLevel": "Warning",
"outerId": "0",
"message": "The BlobChangeAnalysisStateProvider requires the default storage account 'Storage', which is not defined.",
"type": "System.InvalidOperationException",
"parsedStack": [{
"assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
"method": "Microsoft.Azure.WebJobs.Script.ChangeAnalysis.BlobChangeAnalysisStateProvider+<GetCurrentAsync>d__5.MoveNext",
"level": 0,
"line": 40,
"fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/BreakingChangeAnalysis/BlobChangeAnalysisStateProvider.cs"
}, {
"assembly": "System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
"method": "System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw",
"level": 1,
"line": 0
}, {
"assembly": "System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
"method": "System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess",
"level": 2,
"line": 0
}, {
"assembly": "System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
"method": "System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification",
"level": 3,
"line": 0
}, {
"assembly": "System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
"method": "System.Runtime.CompilerServices.TaskAwaiter`1.GetResult",
"level": 4,
"line": 0
}, {
"assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
"method": "Microsoft.Azure.WebJobs.Script.ChangeAnalysis.ChangeAnalysisService+<TryLogBreakingChangeReportAsync>d__12.MoveNext",
"level": 5,
"line": 92,
"fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/BreakingChangeAnalysis/ChangeAnalysisService.cs"
}
],
"id": "6385742"
}
]
AzureWebJobsStorage is not allowed to be added for static web app functions.
Please ignore this error message for now as it should not have any impact on your functions runtime. We will get rid of this message in later iterations.
Thank you @anganti
AzureWebJobsStorage is not allowed to be added for static web app functions.
Please ignore this error message for now as it should not have any impact on your functions runtime. We will get rid of this message in later iterations.
Is this still the case?
I asked because there is a example in the docs with webjobsstorage. Can I use azure tables or blobs with azurestaticwebapps?
@RichyP7 The setting needs to be empty. Good call out though, perhaps we should remove it from the docs @craigshoemaker
As for using storage input/output bindings, you can use them if you specify a different name for the setting. Example here: https://github.com/anthonychu/static-web-apps-chat/blob/master/api/SendMessage/function.json#L30
@anthonychu Thank you for your answer. This drove me crazy but now everything works smoothly. Keep going -that platform is just awesome. Works like a spell.
Most helpful comment
@RichyP7 The setting needs to be empty. Good call out though, perhaps we should remove it from the docs @craigshoemaker
As for using storage input/output bindings, you can use them if you specify a different name for the setting. Example here: https://github.com/anthonychu/static-web-apps-chat/blob/master/api/SendMessage/function.json#L30