question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] the AddAzureStorage extension of IWebJobsBuilder doesn't exist in Microsoft.Azure.WebJobs.Extensions.Storage 5.0.0

See original GitHub issue

Library name and version

Microsoft.Azure.WebJobs.Extensions.Storage 5.0.0

Describe the bug

We are using Microsoft.Azure.WebJobs.Extensions.Storage v4.0.4 and using this function in StorageWebJobsBuilderExtensions class: public static IWebJobsBuilder AddAzureStorage(this IWebJobsBuilder builder, Action<QueuesOptions> configureQueues = null, Action<BlobsOptions> configureBlobs = null); But after we upgraded the package to 5.0.0. The function seems to be removed. How can I use the function AddAzureStorage() with the latest pacakge?

Expected behavior

I can use the AddAzureStorage()

Actual behavior

can’t find AddAzureStorage() in new package

Reproduction Steps

var builder = new HostBuilder();
builder.ConfigureWebJobs(b =>
{
    b.AddAzureStorage();
});

Environment

Windows 11 .NET Framework 4.8 Visual Studio 2019 16.11.11

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
PramodValavala-MSFTcommented, Apr 12, 2022

@KayMKM They are both independent of each other, so you would call both or either one depending on your scenario. The answers to your queries would be

  1. If you are using both blobs and queues, then yes. Otherwise, just use the one you need.
  2. If you are using just one, then just the one would be added.
0reactions
PramodValavala-MSFTcommented, Apr 12, 2022

@KayMKM Hope that helps! Since there is no bug here, closing this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Microsoft.Azure.WebJobs.Extensions.Storage 5.0.0 and ...
It looks like Microsoft.Azure.WebJobs.TableAttribute is no longer part of the Microsoft.Azure.WebJobs.Extensions.Storage package. This is a ...
Read more >
azure - 'IWebJobsBuilder' does not contain a definition for ...
If you are using Microsoft.Azure.WebJobs.Extensions version > 3 you will get this error also, drop it to the last 3.xxx version and should...
Read more >
Microsoft.Azure.WebJobs.Extensions.Storage 5.1.3
NET. This extension provides functionality for accessing Azure Storage Blobs and Queues in Azure Functions. This package is a metapackage created for backwards ......
Read more >
Update Your Azure Functions Table Storage Bindings
Tables NuGet package. There was an unfortunate period of time when the new Microsoft.Azure.WebJobs.Extensions.Storage had been released as v5.
Read more >
Avoid Lock - Pointing Two WebJobs to The Same Azure ...
Webjobs runtime uses Azure storage blobs to accomplish a locking ... For the timers listener is Microsoft.Azure.WebJobs.Extensions.Timers.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found