Skip to content

Commit 498e911

Browse files
authored
Merge pull request #50546 from v-thpra/azure-triage-fix-1055010
Technical Review 1055010: Execute an Azure Function with trigger
2 parents 3011aac + 2daf2f9 commit 498e911

19 files changed

+259
-264
lines changed
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.execute-azure-function-with-triggers.1-introduction
3-
title: Introduction
4-
metadata:
5-
title: Introduction
6-
description: Introduction
7-
ms.date: 09/25/2023
8-
author: ggailey777
9-
ms.author: glenga
10-
ms.topic: unit
11-
durationInMinutes: 2
12-
content: |
13-
[!include[](includes/1-introduction.md)]
14-
1+
### YamlMime:ModuleUnit
2+
uid: learn.execute-azure-function-with-triggers.1-introduction
3+
title: Introduction
4+
metadata:
5+
title: Introduction
6+
description: Introduction
7+
ms.date: 05/19/2025
8+
author: ggailey777
9+
ms.author: glenga
10+
ms.topic: unit
11+
durationInMinutes: 2
12+
content: |
13+
[!include[](includes/1-introduction.md)]
14+
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.execute-azure-function-with-triggers.2-determine-best-trigger
3-
title: Determine the best trigger for your Azure function
4-
metadata:
5-
title: Determine the best trigger for your Azure function
6-
description: Determine the best trigger for your Azure function
7-
ms.date: 09/25/2023
8-
author: ggailey777
9-
ms.author: glenga
10-
ms.topic: unit
11-
durationInMinutes: 4
12-
content: |
13-
[!include[](includes/2-determine-best-trigger.md)]
14-
1+
### YamlMime:ModuleUnit
2+
uid: learn.execute-azure-function-with-triggers.2-determine-best-trigger
3+
title: Determine the best trigger for your Azure function
4+
metadata:
5+
title: Determine the best trigger for your Azure function
6+
description: Determine the best trigger for your Azure function
7+
ms.date: 05/19/2025
8+
author: ggailey777
9+
ms.author: glenga
10+
ms.topic: unit
11+
durationInMinutes: 4
12+
content: |
13+
[!include[](includes/2-determine-best-trigger.md)]
14+
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.execute-azure-function-with-triggers.3-timer-trigger
3-
title: Run an Azure Function on a schedule
4-
metadata:
5-
title: Run an Azure Function on a schedule
6-
description: Run function on a schedule
7-
ms.date: 09/25/2023
8-
author: ggailey777
9-
ms.author: glenga
10-
ms.topic: unit
11-
durationInMinutes: 10
12-
content: |
13-
[!include[](includes/3-timer-trigger.md)]
14-
1+
### YamlMime:ModuleUnit
2+
uid: learn.execute-azure-function-with-triggers.3-timer-trigger
3+
title: Run an Azure Function on a schedule
4+
metadata:
5+
title: Run an Azure Function on a schedule
6+
description: Run function on a schedule
7+
ms.date: 05/19/2025
8+
author: ggailey777
9+
ms.author: glenga
10+
ms.topic: unit
11+
durationInMinutes: 10
12+
content: |
13+
[!include[](includes/3-timer-trigger.md)]
14+
Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.execute-azure-function-with-triggers.4-create-timer-trigger
3-
title: Exercise - Create a timer trigger
4-
metadata:
5-
title: Exercise - Create a timer trigger
6-
description: Create a timer trigger
7-
ms.date: 04/09/2024
8-
author: ggailey777
9-
ms.author: glenga
10-
ms.topic: unit
11-
azureSandbox: true
12-
durationInMinutes: 15
13-
content: |
14-
[!include[](includes/4-create-timer-trigger.md)]
15-
# NOTE: Task validation is failing for learners, so that is disabled for now.
16-
# tasks:
17-
# - action: exists
18-
# environment: azure
19-
# azure:
20-
# resource:
21-
# type: "Microsoft.Web/sites"
22-
# kind: functionapp
23-
# hint: "Use the portal to create your function app and timer-triggered function using the instructions above."
24-
1+
### YamlMime:ModuleUnit
2+
uid: learn.execute-azure-function-with-triggers.4-create-timer-trigger
3+
title: Exercise - Create a timer trigger
4+
metadata:
5+
title: Exercise - Create a timer trigger
6+
description: Create a timer trigger
7+
ms.date: 05/19/2025
8+
author: ggailey777
9+
ms.author: glenga
10+
ms.topic: unit
11+
azureSandbox: true
12+
durationInMinutes: 15
13+
content: |
14+
[!include[](includes/4-create-timer-trigger.md)]
15+
# NOTE: Task validation is failing for learners, so that is disabled for now.
16+
# tasks:
17+
# - action: exists
18+
# environment: azure
19+
# azure:
20+
# resource:
21+
# type: "Microsoft.Web/sites"
22+
# kind: functionapp
23+
# hint: "Use the portal to create your function app and timer-triggered function using the instructions above."
24+
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.execute-azure-function-with-triggers.5-http-trigger
3-
title: Execute an Azure function with an HTTP request
4-
metadata:
5-
title: Execute an Azure function with an HTTP request
6-
description: Execute an Azure function with an HTTP request
7-
ms.date: 09/25/2023
8-
author: ggailey777
9-
ms.author: glenga
10-
ms.topic: unit
11-
durationInMinutes: 10
12-
content: |
13-
[!include[](includes/5-http-trigger.md)]
14-
1+
### YamlMime:ModuleUnit
2+
uid: learn.execute-azure-function-with-triggers.5-http-trigger
3+
title: Execute an Azure function with an HTTP request
4+
metadata:
5+
title: Execute an Azure function with an HTTP request
6+
description: Execute an Azure function with an HTTP request
7+
ms.date: 05/19/2025
8+
author: ggailey777
9+
ms.author: glenga
10+
ms.topic: unit
11+
durationInMinutes: 10
12+
content: |
13+
[!include[](includes/5-http-trigger.md)]
14+
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.execute-azure-function-with-triggers.6-create-http-trigger
3-
title: Exercise - Create an HTTP trigger
4-
metadata:
5-
title: Exercise - Create an HTTP trigger and run an Azure Function with an HTTP request
6-
description: Create an HTTP trigger
7-
ms.date: 09/25/2023
8-
author: ggailey777
9-
ms.author: glenga
10-
ms.topic: unit
11-
azureSandbox: true
12-
durationInMinutes: 15
13-
content: |
14-
[!include[](includes/6-create-http-trigger.md)]
15-
1+
### YamlMime:ModuleUnit
2+
uid: learn.execute-azure-function-with-triggers.6-create-http-trigger
3+
title: Exercise - Create an HTTP trigger
4+
metadata:
5+
title: Exercise - Create an HTTP trigger and run an Azure Function with an HTTP request
6+
description: Create an HTTP trigger
7+
ms.date: 05/19/2025
8+
author: ggailey777
9+
ms.author: glenga
10+
ms.topic: unit
11+
azureSandbox: true
12+
durationInMinutes: 15
13+
content: |
14+
[!include[](includes/6-create-http-trigger.md)]
15+
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.execute-azure-function-with-triggers.7-blob-trigger
3-
title: Execute an Azure function when a blob is created
4-
metadata:
5-
title: Execute an Azure function when a blob is created
6-
description: Execute an Azure function when a blob is created
7-
ms.date: 09/25/2023
8-
author: ggailey777
9-
ms.author: glenga
10-
ms.topic: unit
11-
durationInMinutes: 10
12-
content: |
13-
[!include[](includes/7-blob-trigger.md)]
14-
1+
### YamlMime:ModuleUnit
2+
uid: learn.execute-azure-function-with-triggers.7-blob-trigger
3+
title: Execute an Azure function when a blob is created
4+
metadata:
5+
title: Execute an Azure function when a blob is created
6+
description: Execute an Azure function when a blob is created
7+
ms.date: 05/19/2025
8+
author: ggailey777
9+
ms.author: glenga
10+
ms.topic: unit
11+
durationInMinutes: 10
12+
content: |
13+
[!include[](includes/7-blob-trigger.md)]
14+
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.execute-azure-function-with-triggers.8-create-blob-trigger
3-
title: Exercise - Create a Blob trigger
4-
metadata:
5-
title: Exercise - Create a Blob trigger
6-
description: Create a Blob trigger and run an Azure Function when a blob is created
7-
ms.date: 09/25/2023
8-
author: ggailey777
9-
ms.author: glenga
10-
ms.topic: unit
11-
azureSandbox: true
12-
durationInMinutes: 15
13-
content: |
14-
[!include[](includes/8-create-blob-trigger.md)]
15-
1+
### YamlMime:ModuleUnit
2+
uid: learn.execute-azure-function-with-triggers.8-create-blob-trigger
3+
title: Exercise - Create a Blob trigger
4+
metadata:
5+
title: Exercise - Create a Blob trigger
6+
description: Create a Blob trigger and run an Azure Function when a blob is created
7+
ms.date: 05/19/2025
8+
author: ggailey777
9+
ms.author: glenga
10+
ms.topic: unit
11+
azureSandbox: true
12+
durationInMinutes: 15
13+
content: |
14+
[!include[](includes/8-create-blob-trigger.md)]
15+
Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,55 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.execute-azure-function-with-triggers.9-summary
3-
title: Summary
4-
metadata:
5-
title: Summary
6-
description: Summary
7-
ms.date: 09/25/2023
8-
author: ggailey777
9-
ms.author: glenga
10-
ms.topic: unit
11-
durationInMinutes: 2
12-
content: |
13-
[!include[](includes/9-summary.md)]
14-
quiz:
15-
title: Check your knowledge
16-
questions:
17-
- content: 'A CRON expression is a string that consists of six fields that represent a set of times. The order of the six fields in Azure is: {second} {minute} {hour} {day} {month} {day of the week}. Suppose you needed a CRON expression that meant "every day", what special character would you put in the {day of the week} position?'
18-
choices:
19-
- content: "/"
20-
isCorrect: false
21-
explanation: "A slash specifies an increment. For example, a */5 in the {seconds} field means every five seconds."
22-
- content: "*"
23-
isCorrect: true
24-
explanation: "An asterisk specifies that every possible value should be selected. Having an asterisk in the {day of the week} field means that every day should be selected."
25-
- content: ","
26-
isCorrect: false
27-
explanation: "A comma separates items in a list. For example, a 1,2,3 in the {month} field means select January, February, and March."
28-
- content: "‐"
29-
isCorrect: false
30-
explanation: "A hyphen specifies a range. For example, a 1-3 in the {month} field means select January, February, and March."
31-
32-
- content: 'Suppose your Azure Function has a blob trigger associated with it and you want it to execute only when *png* images are uploaded. Which of the following blob trigger *Path* values should you use?'
33-
choices:
34-
- content: "samples-workitems/{name}"
35-
isCorrect: false
36-
explanation: "The Path tells the blob trigger where it should monitor for changes, and if there are any filters applied. Adding a file extension to the Path specifies that uploaded files must have that file extension in order for the trigger to invoke the function."
37-
- content: "samples-workitems/{name}/png"
38-
isCorrect: false
39-
explanation: "The Path tells the blob trigger where it should monitor for changes, and if there are any filters applied. Adding a file extension to the Path specifies that uploaded files must have that file extension in order for the trigger to invoke the function."
40-
- content: "samples-workitems/{name}?png"
41-
isCorrect: false
42-
explanation: "The Path tells the blob trigger where it should monitor for changes, and if there are any filters applied. Adding a file extension to the Path specifies that uploaded files must have that file extension in order for the trigger to invoke the function."
43-
- content: "samples-workitems/{name}.png"
44-
isCorrect: true
45-
explanation: "The Path tells the blob trigger where it should monitor for changes, and if there are any filters applied. Adding a file extension to the Path specifies that uploaded files must have that file extension in order for the trigger to invoke the function."
46-
47-
- content: 'True or false: an Azure Function can have multiple triggers associated with it?'
48-
choices:
49-
- content: "True"
50-
isCorrect: false
51-
explanation: "Every Azure Function must have exactly one trigger associated with it. If you want to use multiple triggers, you must create multiple functions."
52-
- content: "False"
53-
isCorrect: true
54-
explanation: "Every Azure Function must have exactly one trigger associated with it. If you want to use multiple triggers, you must create multiple functions."
55-
1+
### YamlMime:ModuleUnit
2+
uid: learn.execute-azure-function-with-triggers.9-summary
3+
title: Summary
4+
metadata:
5+
title: Summary
6+
description: Summary
7+
ms.date: 05/19/2025
8+
author: ggailey777
9+
ms.author: glenga
10+
ms.topic: unit
11+
durationInMinutes: 2
12+
content: |
13+
[!include[](includes/9-summary.md)]
14+
quiz:
15+
title: Check your knowledge
16+
questions:
17+
- content: 'A CRON expression is a string that consists of six fields that represent a set of times. The order of the six fields in Azure is: {second} {minute} {hour} {day} {month} {day of the week}. Suppose you needed a CRON expression that meant "every day", what special character would you put in the {day of the week} position?'
18+
choices:
19+
- content: "/"
20+
isCorrect: false
21+
explanation: "A slash specifies an increment. For example, a */5 in the {seconds} field means every five seconds."
22+
- content: "*"
23+
isCorrect: true
24+
explanation: "An asterisk specifies that every possible value should be selected. Having an asterisk in the {day of the week} field means that every day should be selected."
25+
- content: ","
26+
isCorrect: false
27+
explanation: "A comma separates items in a list. For example, a 1,2,3 in the {month} field means select January, February, and March."
28+
- content: "‐"
29+
isCorrect: false
30+
explanation: "A hyphen specifies a range. For example, a 1-3 in the {month} field means select January, February, and March."
31+
32+
- content: 'Suppose your Azure Function has a blob trigger associated with it and you want it to execute only when PNG images are uploaded. Which of the following blob trigger *Path* values should you use?'
33+
choices:
34+
- content: "`samples-workitems/{name}`"
35+
isCorrect: false
36+
explanation: "The Path tells the blob trigger where it should monitor for changes, and if there are any filters applied. Adding a file extension to the Path specifies that uploaded files must have that file extension in order for the trigger to invoke the function."
37+
- content: "`samples-workitems/{name}/png`"
38+
isCorrect: false
39+
explanation: "The Path tells the blob trigger where it should monitor for changes, and if there are any filters applied. Adding a file extension to the Path specifies that uploaded files must have that file extension in order for the trigger to invoke the function."
40+
- content: "`samples-workitems/{name}?png`"
41+
isCorrect: false
42+
explanation: "The Path tells the blob trigger where it should monitor for changes, and if there are any filters applied. Adding a file extension to the Path specifies that uploaded files must have that file extension in order for the trigger to invoke the function."
43+
- content: "`samples-workitems/{name}.png`"
44+
isCorrect: true
45+
explanation: "The Path tells the blob trigger where it should monitor for changes, and if there are any filters applied. Adding a file extension to the Path specifies that uploaded files must have that file extension in order for the trigger to invoke the function."
46+
47+
- content: 'True or false: an Azure Function can have multiple triggers associated with it?'
48+
choices:
49+
- content: "True"
50+
isCorrect: false
51+
explanation: "Every Azure Function must have exactly one trigger associated with it. If you want to use multiple triggers, you must create multiple functions."
52+
- content: "False"
53+
isCorrect: true
54+
explanation: "Every Azure Function must have exactly one trigger associated with it. If you want to use multiple triggers, you must create multiple functions."
55+

learn-pr/azure/execute-azure-function-with-triggers/includes/1-introduction.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
Imagine a scenario where a busy hair salon has a recurring problem: customers commonly miss their appointments. Appointments are reserved time slots, so if a customer misses an appointment, the salon loses money. To fix this problem, the salon reaches out to you, a software developer. To improve the situation, you decide to send two types of reminder text messages, one that's sent as soon as the appointment is scheduled or changed, and a text message sent each morning to each customer who has an appointment that day.
1+
Imagine a scenario where a busy hair salon has a recurring problem: customers commonly miss their appointments. Appointments are reserved time slots, so if a customer misses an appointment, the salon loses money. To fix this problem, the salon reaches out to you, a software developer. To improve the situation, you decide to send two types of reminder text messages. One message is sent as soon as the appointment is scheduled or changed. Another text message is sent each morning to each customer who has an appointment that day.
22

3-
You need to create a service that can be easily scheduled, updated, and scaled. You decide to solve this problem using Azure Functions. You already know how to implement the logic to send a text message. Now you need to learn how to send the message at a specific time or when a specific event occurs. Luckily, Azure Functions supports a feature called _triggers_. Triggers are used to invoke your function code in Azure.
3+
You need to create a service that can be easily scheduled, updated, and scaled. You decide to solve this problem using Azure Functions. You already know how to implement the logic to send a text message. Now you need to learn how to send the message at a specific time or when a specific event occurs. Luckily, Azure Functions supports a feature called *triggers*. Triggers are used to invoke your function code in Azure.
44

55
## Learning objectives
66

@@ -13,7 +13,7 @@ In this module, you will:
1313

1414
## Supported languages
1515

16-
This module uses the Azure portal to create and test your function code. Functions supports in-portal development for the following languages:
16+
This module uses the Azure portal to create and test your function code. Azure Functions supports in-portal development for the following languages:
1717

1818
- C# Script (.csx)
1919
- JavaScript (Node.js v3)

0 commit comments

Comments
 (0)