Skip to content

Commit a5371c5

Browse files
authored
Update azure-functions-samples.md
1 parent fee931d commit a5371c5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/ai-services/agents/how-to/tools/azure-functions-samples.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ This function writes data to the output queue and hence needs to be authenticate
372372

373373
Now we will create the function itself. Install [.NET](https://dotnet.microsoft.com/download) and [Core Tools](https://go.microsoft.com/fwlink/?linkid=2174087) and create the function project using next commands.
374374

375-
```console
375+
```shell
376376
func init FunctionProj --worker-runtime dotnet-isolated --target-framework net8.0
377377
cd FunctionProj
378378
func new --name foo --template "HTTP trigger" --authlevel "anonymous"
@@ -384,9 +384,9 @@ Now we will create the function itself. Install [.NET](https://dotnet.microsoft.
384384
We have created a project, containing HTTP-triggered azure function with the logic in `Foo.cs` file. As far as we need to trigger Azure function by a new message in the queue, we will replace the content of a Foo.cs by the C# sample code above.
385385
To deploy the function run the command from dotnet project folder:
386386

387-
```console
388-
func azure functionapp publish function_name
389-
```
387+
```shell
388+
func azure functionapp publish function_name
389+
```
390390

391391
In the `storage_account_already_present_in_resource_group` select the `Queue service` and create two queues: `azure-function-foo-input` and `azure-function-tool-output`. Note that the same queues are used in our sample. To check that the function is working, place the next message into the `azure-function-foo-input` and replace `storage_account_already_present_in_resource_group` by the actual resource group name, or just copy the output queue address.
392392

0 commit comments

Comments
 (0)