Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2cd3676

Browse files
committed
cognitive services sample
1 parent 32bc6e2 commit 2cd3676

File tree

2 files changed

+82
-2
lines changed

2 files changed

+82
-2
lines changed

‎README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ Work in progress
2929

3030
### [Power BI](./power-bi.ipynb)
3131

32-
The notebook shows DAX querie can be executed from Azure SQL DB using the `executeQueries` REST endpoint provided by Power BI datasets
32+
The notebook shows how DAX queries can be executed from Azure SQL DB using the `executeQueries` REST endpoint provided by Power BI datasets
3333

3434
- Execute DAX queries in Power BI
3535

3636
### [Azure Cognitive Services]
3737

38-
Work in progress
38+
The notebook shows how to send data back and forth between an Azure Cognitive services, configured to perform Anomaly Detection.
3939

4040
### [Azure SignalR]
4141

‎azure-cognitive-services.ipynb

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
{
2+
"metadata": {
3+
"kernelspec": {
4+
"name": "SQL",
5+
"display_name": "SQL",
6+
"language": "sql"
7+
},
8+
"language_info": {
9+
"name": "sql",
10+
"version": ""
11+
}
12+
},
13+
"nbformat_minor": 2,
14+
"nbformat": 4,
15+
"cells": [
16+
{
17+
"cell_type": "markdown",
18+
"source": [
19+
"# Call an Azure Cognitive Services\n",
20+
"\n",
21+
"Make sure to have an Azure Cognitive Service Anomaly Detector running. [Create an Anomaly Detector resource](https://portal.azure.com/#create/Microsoft.CognitiveServicesAnomalyDetector) in the Azure portal to get your key and endpoint. Wait for it to deploy and select the Go to resource button. You can use the free pricing tier (F0) to try the service, and upgrade later to a paid tier for production. For more details please refer to the documentation here: [Anomaly Detector API Documentation](https://learn.microsoft.com/en-us/azure/cognitive-services/anomaly-detector/)\n",
22+
"\n",
23+
"In the next samples is assumed that the Anomaly Detector's endpoint is available at `https://azure-sql-anomaly-detector.cognitiveservices.azure.com/`. To have the samples working in your environment make sure to use the endpoint of your Anomaly Detector"
24+
],
25+
"metadata": {
26+
"azdata_cell_guid": "cba5ef59-eaf6-468e-9e78-6281339299df"
27+
},
28+
"attachments": {}
29+
},
30+
{
31+
"cell_type": "markdown",
32+
"source": [
33+
"## Load sample data"
34+
],
35+
"metadata": {
36+
"azdata_cell_guid": "efd662c7-6f56-49b3-8c4d-dab1f013ea74"
37+
},
38+
"attachments": {}
39+
},
40+
{
41+
"cell_type": "markdown",
42+
"source": [
43+
"## Securely store the API Key"
44+
],
45+
"metadata": {
46+
"azdata_cell_guid": "941d1c14-daad-4ab6-8591-2efdfeb46f44"
47+
},
48+
"attachments": {}
49+
},
50+
{
51+
"cell_type": "markdown",
52+
"source": [
53+
"## Use `OPENJSON` to shape the JSON document as requested by Cognitive Services"
54+
],
55+
"metadata": {
56+
"azdata_cell_guid": "61155428-6203-4a3d-a13f-03fafb71fc98"
57+
},
58+
"attachments": {}
59+
},
60+
{
61+
"cell_type": "markdown",
62+
"source": [
63+
"## Invoke Anomaly Detector's API from Azure SQL"
64+
],
65+
"metadata": {
66+
"azdata_cell_guid": "8b15e26b-4f9e-449f-9ed3-3e6af6396176"
67+
},
68+
"attachments": {}
69+
},
70+
{
71+
"cell_type": "markdown",
72+
"source": [
73+
"## Join result with stored data to identify anomalies"
74+
],
75+
"metadata": {
76+
"azdata_cell_guid": "d48993a2-9cc2-4aa2-b7b4-692773b6aecb"
77+
}
78+
}
79+
]
80+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /