You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please provide a succinct description of the issue.
Neither the StorageAccount attribute, nor the Connection property on the BlobTrigger attribute are respected.
Repro steps
Provide the steps required to reproduce the problem
Define a Function as such: public class AzureArtifactChange { [FunctionName("AzureArtifactChange")] //[StorageAccount("ArtifactChecker_AZURE_CONNECTION_STRING")] public void Run([BlobTrigger("artifacts/{name}", Connection = "ArtifactChecker_AZURE_CONNECTION_STRING")] Stream myBlob, string name, ILogger log) { log.LogInformation($"C# Blob trigger function Processed blob\n Name:{name} \n Size: {myBlob.Length} Bytes"); } }
add Value to local.settings.json `{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"AzureWebJobsDashboard2": "dotnet",
"ArtifactChecker_AZURE_CONNECTION_STRING": "DefaultEndpointsProtocol=https;AccountName=XXX;AccountKey=yyy;EndpointSuffix=core.windows.net"
}
}`
Step B
Expected behavior
Function runs and watches for changes to the specified container in the storage account
Actual behavior
Provide a description of the actual behavior observed. [2024-02-05T22:47:51.844Z] Job host started [2024-02-05T22:47:51.852Z] The 'AzureArtifactChange' function is in error: Microsoft.Azure.WebJobs.Host: Error indexing method 'AzureArtifactChange'. Microsoft.Azure.WebJobs.Extensions.Storage.Blobs: Storage account connection string 'AzureWebJobsStorage' does not exist. Make sure that it is a defined App Setting.
Known workarounds
Provide a description of any known workarounds.
Related information
Provide any related information
Package version :
PropertyGroup>
net6.0
v4
Links to source
The text was updated successfully, but these errors were encountered:
Please provide a succinct description of the issue.
Neither the StorageAccount attribute, nor the Connection property on the BlobTrigger attribute are respected.
Repro steps
Provide the steps required to reproduce the problem
Define a Function as such:
public class AzureArtifactChange { [FunctionName("AzureArtifactChange")] //[StorageAccount("ArtifactChecker_AZURE_CONNECTION_STRING")] public void Run([BlobTrigger("artifacts/{name}", Connection = "ArtifactChecker_AZURE_CONNECTION_STRING")] Stream myBlob, string name, ILogger log) { log.LogInformation($"C# Blob trigger function Processed blob\n Name:{name} \n Size: {myBlob.Length} Bytes"); } }
add Value to local.settings.json `{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"AzureWebJobsDashboard2": "dotnet",
"ArtifactChecker_AZURE_CONNECTION_STRING": "DefaultEndpointsProtocol=https;AccountName=XXX;AccountKey=yyy;EndpointSuffix=core.windows.net"
}
}`
Expected behavior
Function runs and watches for changes to the specified container in the storage account
Actual behavior
Provide a description of the actual behavior observed.
[2024-02-05T22:47:51.844Z] Job host started [2024-02-05T22:47:51.852Z] The 'AzureArtifactChange' function is in error: Microsoft.Azure.WebJobs.Host: Error indexing method 'AzureArtifactChange'. Microsoft.Azure.WebJobs.Extensions.Storage.Blobs: Storage account connection string 'AzureWebJobsStorage' does not exist. Make sure that it is a defined App Setting.
Known workarounds
Provide a description of any known workarounds.
Related information
Provide any related information
PropertyGroup>
net6.0
v4
The text was updated successfully, but these errors were encountered: