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/cognitive-services/Anomaly-Detector/tutorials/multivariate-anomaly-detection-synapse.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ In this section, you'll create the following resources in the Azure portal:
40
40
*[Create an Anomaly Detector](https://portal.azure.com/#create/Microsoft.CognitiveServicesAnomalyDetector) resource in the Azure portal.
41
41
* Sign in to [Azure Synapse Analytics](https://web.azuresynapse.net/) using your subscription and Workspace name.
42
42
43
-

43
+

44
44
45
45
### Create a storage account resource
46
46
@@ -49,26 +49,26 @@ In this section, you'll create the following resources in the Azure portal:
49
49
> [!NOTE]
50
50
> For the purposes of this example only we are setting the security on the container to allow anonymous read access for containers and blobs since it will only contain our example .csv data. For anything other than demo purposes this is **not recommended**.
51
51
52
-

52
+

53
53
54
54
### Create a Key Vault to hold Anomaly Detector Key and storage account connection string
55
55
56
56
* Create a key vault and configure secrets and access
57
57
1. Create a [key vault](https://portal.azure.com/#create/Microsoft.KeyVault) in the Azure portal.
58
58
2. Go to Key Vault > Access policies, and grant the [Azure Synapse workspace](/azure/data-factory/data-factory-service-identity?context=/azure/synapse-analytics/context/context&tabs=synapse-analytics) permission to read secrets from Azure Key Vault.
59
59
60
-

60
+

61
61
62
62
* Create a secret in Key Vault to hold the Anomaly Detector key
63
63
1. Go to your Anomaly Detector resource, **Anomaly Detector** > **Keys and Endpoint**. Then copy either of the two keys to the clipboard.
64
64
2. Go to **Key Vault** > **Secret** to create a new secret. Specify the name of the secret, and then paste the key from the previous step into the **Value** field. Finally, select **Create**.
65
65
66
-

66
+

67
67
68
68
* Create a secret in Key Vault to hold Connection String of Storage account
69
69
1. Go to your Storage account resource, select **Access keys** to copy one of your Connection strings.
70
70
71
-

71
+

72
72
73
73
2. Then go to **Key Vault** > **Secret** to create a new secret. Specify the name of the secret (like *myconnectionstring*), and then paste the Connection string from the previous step into the **Value** field. Finally, select **Create**.
74
74
@@ -78,11 +78,11 @@ In this section, you'll create the following resources in the Azure portal:
78
78
79
79
1. Sign in [Azure Synapse Analytics](https://web.azuresynapse.net/) and create a new Notebook for coding.
80
80
81
-

81
+

82
82
83
83
2. Select **Manage pools** in the page of notebook to create a new Apache Spark pool if you don’t have one.
84
84
85
-

85
+

86
86
87
87
### Writing code in notebook
88
88
@@ -144,11 +144,11 @@ In this section, you'll create the following resources in the Azure portal:
144
144
df.show(10)
145
145
```
146
146
147
-

147
+

148
148
149
149
4. Train a multivariate anomaly detection model.
150
150
151
-

151
+

152
152
153
153
```python
154
154
#Input your key vault name and anomaly key name in key vault.
@@ -219,7 +219,7 @@ In this section, you'll create the following resources in the Azure portal:
219
219
```
220
220
221
221
The inference results will look as followed. The `severity`is a number between 0and1, showing the severe degree of an anomaly. The last three columns indicate the `contribution score` of each sensor, the higher the number is, the more anomalous the sensor is.
222
-

222
+

0 commit comments