Skip to content

Commit fa39fcf

Browse files
Update route parama script
1 parent 22aaa9a commit fa39fcf

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

articles/azure-functions/functions-bindings-http-webhook-trigger.md

+14-4
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The following example shows a [C# function](functions-dotnet-class-library.md) t
3333
```cs
3434
[FunctionName("HttpTriggerCSharp")]
3535
public static async Task<IActionResult> Run(
36-
[HttpTrigger(AuthorizationLevel.Function, "get", "post", Route = null)]
36+
[HttpTrigger(AuthorizationLevel.Function, "get", "post", Route = null)]
3737
HttpRequest req, ILogger log)
3838
{
3939
log.LogInformation("C# HTTP trigger function processed a request.");
@@ -672,7 +672,17 @@ module.exports = function (context, req) {
672672

673673
# [PowerShell](#tab/powershell)
674674

675-
**TBD**
675+
```powershell
676+
$Category = $Request.Params.category
677+
$Id = $Request.Params.id
678+
679+
$Message = "Category:" + $Category + ", ID: " + $Id
680+
681+
Push-OutputBinding -Name Response -Value ([HttpResponseContext]@{
682+
StatusCode = [HttpStatusCode]::OK
683+
Body = $Message
684+
})
685+
```
676686

677687
# [Python](#tab/python)
678688

@@ -727,7 +737,7 @@ The following configuration shows how the `{id}` parameter is passed to the bind
727737

728738
## Working with client identities
729739

730-
If your function app is using [App Service Authentication / Authorization](../app-service/overview-authentication-authorization.md), you can view information about authenticated clients from your code. This information is available as [request headers injected by the platform](../app-service/app-service-authentication-how-to.md#access-user-claims).
740+
If your function app is using [App Service Authentication / Authorization](../app-service/overview-authentication-authorization.md), you can view information about authenticated clients from your code. This information is available as [request headers injected by the platform](../app-service/app-service-authentication-how-to.md#access-user-claims).
731741

732742
You can also read this information from binding data. This capability is only available to the Functions runtime in 2.x and higher. It is also currently only available for .NET languages.
733743

@@ -807,7 +817,7 @@ The authenticated user is available via [HTTP Headers](../app-service/app-servic
807817

808818
# [PowerShell](#tab/powershell)
809819

810-
TBD
820+
The authenticated user is available via [HTTP Headers](../app-service/app-service-authentication-how-to.md#access-user-claims).
811821

812822
# [Python](#tab/python)
813823

0 commit comments

Comments
 (0)