Skip to content

Commit 36c5fd6

Browse files
committed
edits
1 parent 55aa311 commit 36c5fd6

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

articles/container-instances/container-instances-tutorial-azure-function-trigger.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ az functionapp identity assign \
6060
--role contributor --scope $rgID
6161
```
6262

63-
## Update HttpTrigger function
63+
## Modify HttpTrigger function
6464

65-
Update the PowerShell code for the **HttpTrigger** function to create a container group. In file `run.ps1` for the function, find the following code block. This code displays a name value, if one is passed as a query string in the function URL:
65+
Modify the PowerShell code for the **HttpTrigger** function to create a container group. In file `run.ps1` for the function, find the following code block. This code displays a name value, if one is passed as a query string in the function URL:
6666

6767
```powershell
6868
[...]
@@ -92,7 +92,7 @@ This example creates a container group consisting of a single container instance
9292

9393
## Test function app locally
9494

95-
Ensure that the function runs properly locally before republishing the function app project to Azure. As in the [PowerShell quickstart](../azure-functions/functions-create-first-function-powershell.md), insert a local breakpoint in the PowerShell script and a `Wait-Debugger` call above it. For debugging guidance, see [Debug PowerShell Azure Functions locally](../azure-functions/functions-debug-powershell-local.md).
95+
Ensure that the function runs properly locally before republishing the function app project to Azure. As shown in the [PowerShell quickstart](../azure-functions/functions-create-first-function-powershell.md), insert a local breakpoint in the PowerShell script and a `Wait-Debugger` call above it. For debugging guidance, see [Debug PowerShell Azure Functions locally](../azure-functions/functions-debug-powershell-local.md).
9696

9797

9898
## Republish Azure function app
@@ -120,7 +120,7 @@ https://myfunctionapp.azurewebsites.net/api/HttpTrigger?code=bmF/GljyfFWISqO0Gng
120120

121121
### Run function without passing a name
122122

123-
As a first test, run the `curl` command and pass the function URL without appending a `name` query string.
123+
As a first test, run the `curl` command and pass the function URL without appending a `name` query string. Make sure to include your function's unique code.
124124

125125
```bash
126126
curl --verbose "https://myfunctionapp.azurewebsites.net/api/HttpTrigger?code=bmF/GljyfFWISqO0GngDPCtCQF4meRcBiHEoaQGeRv/Srx6dRcrk2M=="
@@ -145,7 +145,7 @@ The function returns status code 400 and the text `Please pass a name on the que
145145
Please pass a name on the query string or in the request body.
146146
```
147147

148-
### Run function and pass a name of a container group
148+
### Run function and pass the name of a container group
149149

150150
Now run the `curl` command by appending the name of a container group (*mycontainergroup*) as a query string `&name=mycontainergroup`:
151151

@@ -185,7 +185,6 @@ Sample output:
185185
Hello from an Azure container instance triggered by an Azure function
186186
```
187187

188-
189188
## Clean up resources
190189

191190
If you no longer need any of the resources you created in this tutorial, you can execute the [az group delete][az-group-delete] command to remove the resource group and all resources it contains. This command deletes the container registry you created, as well as the running container, and all related resources.

0 commit comments

Comments
 (0)