You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/machine-learning/how-to-use-event-grid.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,15 +21,15 @@ For more information, see [Azure Machine Learning integration with Event Grid](c
21
21
22
22
Use Event Grid to enable common scenarios such as:
23
23
24
-
* Triggering pipelines for retraining
24
+
* Send emails on run completion
25
+
* Use an azure function after a model is registered
25
26
* Streaming events from Azure Machine Learning to various of endpoints
27
+
* Trigger an ML pipeline when drift is detected
26
28
27
29
## Prerequisites
28
-
29
30
* Contributor or owner access to the Azure Machine Learning workspace you will create events for.
30
-
* Select an event handler endpoint such as a webhook or Event Hub. For more information, see [event handlers](https://docs.microsoft.com/azure/event-grid/event-handlers).
31
31
32
-
## Configure machine learning events using the Azure portal
32
+
###Configure EventGrid using the Azure portal
33
33
34
34
1. Open the [Azure portal](https://portal.azure.com) and go to your Azure Machine Learning workspace.
35
35
@@ -47,7 +47,7 @@ Use Event Grid to enable common scenarios such as:
47
47
48
48
Once you have confirmed your selection, click __Create__. After configuration, these events will be pushed to your endpoint.
49
49
50
-
##Set up Azure Event Grid using CLI
50
+
### Configure EventGrid using the CLI
51
51
52
52
You can either install the latest [Azure CLI](https://docs.microsoft.com/cli/azure/install-azure-cli?view=azure-cli-latest), or use the Azure Cloud Shell that is provided as part of your Azure subscription.
53
53
@@ -57,7 +57,7 @@ To install the Event Grid extension, use the following command from the CLI:
57
57
az add extension --name eventgrid
58
58
```
59
59
60
-
The following example demonstrates how to select an Azure subscription, and then create a new event subscription for Azure Machine Learning:
60
+
The following example demonstrates how to select an Azure subscription and creates e a new event subscription for Azure Machine Learning:
61
61
62
62
```azurecli-interactive
63
63
# Select the Azure subscription that contains the workspace
@@ -74,6 +74,12 @@ az eventgrid event-subscription create \
74
74
75
75
## Sample scenarios
76
76
77
+
### Use Azure Functions to deploy a model based on tags
78
+
79
+
An Azure Machine Learning model object contains parameters you can pivot deployments on such as model name, version, tag, and property. The model registration event can trigger an endpoint and you can use an Azure Function to deploy a model based on the value of those parameters.
80
+
81
+
For an example, see the [https://github.com/Azure-Samples/MachineLearningSamples-NoCodeDeploymentTriggeredByEventGrid](https://github.com/Azure-Samples/MachineLearningSamples-NoCodeDeploymentTriggeredByEventGrid) repository and follow the steps in the **readme** file.
82
+
77
83
### Use a Logic App to send email alerts
78
84
79
85
Leverage [Azure Logic Apps](https://docs.microsoft.com/azure/logic-apps/) to configure emails for all your events. Customize with conditions and specify recipients to enable collaboration and awareness across teams working together.
@@ -155,12 +161,6 @@ Now the data factory pipeline is triggered when drift occurs. View details on yo
### Use Azure Functions to deploy a model based on tags
159
-
160
-
An Azure Machine Learning model object contains parameters you can pivot deployments on such as model name, version, tag, and property. The model registration event can trigger an endpoint and you can use an Azure Function to deploy a model based on the value of those parameters.
161
-
162
-
For an example, see the [https://github.com/Azure-Samples/MachineLearningSamples-NoCodeDeploymentTriggeredByEventGrid](https://github.com/Azure-Samples/MachineLearningSamples-NoCodeDeploymentTriggeredByEventGrid) repository and follow the steps in the **readme** file.
163
-
164
164
## Next steps
165
165
166
166
* To learn more about available events, see the [Azure Machine Learning event schema](/azure/event-grid/event-schema-machine-learning)
0 commit comments