Skip to content

Commit 5ef4dba

Browse files
ggailey777Glenn Gailey
authored andcommitted
1 parent 60b0ed5 commit 5ef4dba

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

articles/app-service/webjobs-sdk-get-started.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,16 @@ This article shows you how to deploy WebJobs as a .NET Core console app. To depl
3434

3535
## WebJobs NuGet packages
3636

37-
1. Install the latest stable 3.x version of the `Microsoft.Azure.WebJobs.Extensions` NuGet package, which includes `Microsoft.Azure.WebJobs`.
37+
1. Install the latest stable 3.x version of the [`Microsoft.Azure.WebJobs.Extensions` NuGet package](https://www.nuget.org/packages/Microsoft.Azure.WebJobs.Extensions/), which includes `Microsoft.Azure.WebJobs`.
3838

39-
Here's the **Package Manager Console** command for version 3.0.2:
39+
Here's the **Package Manager Console** command:
4040

4141
```powershell
42-
Install-Package Microsoft.Azure.WebJobs.Extensions -version 3.0.2
42+
Install-Package Microsoft.Azure.WebJobs.Extensions -version <3_X_VERSION>
4343
```
4444
45+
In this command, replace `<3_X_VERSION>` with a supported version of the package.
46+
4547
## Create the Host
4648
4749
The host is the runtime container for functions that listens for triggers and calls functions. The following steps create a host that implements [`IHost`](/dotnet/api/microsoft.extensions.hosting.ihost), which is the Generic Host in ASP.NET Core.
@@ -76,12 +78,12 @@ In ASP.NET Core, host configurations are set by calling methods on the [`HostBui
7678
7779
In this section, you set up console logging that uses the [ASP.NET Core logging framework](/aspnet/core/fundamentals/logging).
7880
79-
1. Install the latest stable version of the `Microsoft.Extensions.Logging.Console` NuGet package, which includes `Microsoft.Extensions.Logging`.
81+
1. Install the latest stable version of the [`Microsoft.Extensions.Logging.Console` NuGet package](https://www.nuget.org/packages/Microsoft.Extensions.Logging.Console/), which includes `Microsoft.Extensions.Logging`.
8082
81-
Here's the **Package Manager Console** command for version 2.2.0:
83+
Here's the **Package Manager Console** command:
8284
8385
```powershell
84-
Install-Package Microsoft.Extensions.Logging.Console -version 2.2.0
86+
Install-Package Microsoft.Extensions.Logging.Console -version <2_X_VERSION>
8587
```
8688

8789
1. In *Program.cs*, add a `using` statement:
@@ -90,6 +92,8 @@ In this section, you set up console logging that uses the [ASP.NET Core logging
9092
using Microsoft.Extensions.Logging;
9193
```
9294

95+
In this command, replace `<2_X_VERSION>` with a supported 2.x version of the package.
96+
9397
1. Call the [`ConfigureLogging`](/dotnet/api/microsoft.aspnetcore.hosting.webhostbuilderextensions.configurelogging) method on [`HostBuilder`](/dotnet/api/microsoft.extensions.hosting.hostbuilder). The [`AddConsole`](/dotnet/api/microsoft.extensions.logging.consoleloggerextensions.addconsole) method adds console logging to the configuration.
9498

9599
```cs
@@ -134,11 +138,13 @@ Starting with version 3.x, you must explicitly install the Storage binding exten
134138

135139
1. Install the latest stable version of the [Microsoft.Azure.WebJobs.Extensions.Storage](https://www.nuget.org/packages/Microsoft.Azure.WebJobs.Extensions.Storage) NuGet package, version 3.x.
136140
137-
Here's the **Package Manager Console** command for version 3.0.4:
141+
Here's the **Package Manager Console** command:
138142

139143
```powershell
140-
Install-Package Microsoft.Azure.WebJobs.Extensions.Storage -Version 3.0.4
144+
Install-Package Microsoft.Azure.WebJobs.Extensions.Storage -Version <3_X_VERSION>
141145
```
146+
147+
In this command, replace `<3_X_VERSION>` with a supported version of the package.
142148

143149
2. In the `ConfigureWebJobs` extension method, call the `AddAzureStorage` method on the [`HostBuilder`](/dotnet/api/microsoft.extensions.hosting.hostbuilder) instance to initialize the Storage extension. At this point, the `ConfigureWebJobs` method looks like the following example:
144150

articles/app-service/webjobs-sdk-how-to.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ Automatic triggers call a function in response to an event. Consider this exampl
152152
```cs
153153
public static void Run(
154154
[QueueTrigger("myqueue-items")] string myQueueItem,
155-
[Blob("samples-workitems/{myQueueItem}", FileAccess.Read)] Stream myBlob,
155+
[Blob("samples-workitems/{queueTrigger}", FileAccess.Read)] Stream myBlob,
156156
ILogger log)
157157
{
158158
log.LogInformation($"BlobInput processed blob\n Name:{myQueueItem} \n Size: {myBlob.Length} bytes");

0 commit comments

Comments
 (0)