Skip to content

Commit fae3bb3

Browse files
committed
modify
1 parent f80ad6e commit fae3bb3

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

articles/synapse-analytics/spark/apache-spark-azure-log-analytics.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ Gather the following values for the spark configuration:
3838
- `<LOG_ANALYTICS_WORKSPACE_ID>`: Log Analytics workspace ID.
3939
- `<LOG_ANALYTICS_WORKSPACE_KEY>`: Log Analytics key. To find this, in the Azure portal, go to **Azure Log Analytics workspace** > **Agents** > **Primary key**.
4040

41+
```properties
42+
spark.synapse.logAnalytics.enabled true
43+
spark.synapse.logAnalytics.workspaceId <LOG_ANALYTICS_WORKSPACE_ID>
44+
spark.synapse.logAnalytics.secret <LOG_ANALYTICS_WORKSPACE_KEY>
45+
```
46+
47+
Alternatively, to apply the same configuration as Fabric, use the following properties:
48+
4149
```properties
4250
spark.synapse.diagnostic.emitters: LA
4351
spark.synapse.diagnostic.emitter.LA.type: "AzureLogAnalytics"
@@ -66,6 +74,15 @@ To configure Azure Key Vault to store the workspace key, follow these steps:
6674
- `<AZURE_KEY_VAULT_NAME>`: The key vault name that you configured.
6775
- `<AZURE_KEY_VAULT_SECRET_KEY_NAME>` (optional): The secret name in the key vault for the workspace key. The default is `SparkLogAnalyticsSecret`.
6876

77+
```properties
78+
spark.synapse.logAnalytics.enabled true
79+
spark.synapse.logAnalytics.workspaceId <LOG_ANALYTICS_WORKSPACE_ID>
80+
spark.synapse.logAnalytics.keyVault.name <AZURE_KEY_VAULT_NAME>
81+
spark.synapse.logAnalytics.keyVault.key.secret <AZURE_KEY_VAULT_SECRET_KEY_NAME>
82+
```
83+
84+
Alternatively, to apply the same configuration as Fabric, use the following properties:
85+
6986
```properties
7087
spark.synapse.diagnostic.emitters LA
7188
spark.synapse.diagnostic.emitter.LA.type: "AzureLogAnalytics"
@@ -96,7 +113,17 @@ To configure a Key Vault linked service in Synapse Studio to store the workspace
96113

97114
d. Choose your key vault, and select **Create**.
98115

99-
1. Add a `spark.synapse.diagnostic.emitter.LA.secret.keyVault.linkedService` item to the Apache Spark configuration.
116+
1. Add a `spark.synapse.logAnalytics.keyVault.linkedServiceName` item to the Apache Spark configuration.
117+
118+
```properties
119+
spark.synapse.logAnalytics.enabled true
120+
spark.synapse.logAnalytics.workspaceId <LOG_ANALYTICS_WORKSPACE_ID>
121+
spark.synapse.logAnalytics.keyVault.name <AZURE_KEY_VAULT_NAME>
122+
spark.synapse.logAnalytics.keyVault.key.secret <AZURE_KEY_VAULT_SECRET_KEY_NAME>
123+
spark.synapse.logAnalytics.keyVault.linkedServiceName <LINKED_SERVICE_NAME>
124+
```
125+
126+
Alternatively, to apply the same configuration as Fabric, use the following properties:
100127

101128
```properties
102129
spark.synapse.diagnostic.emitters LA

0 commit comments

Comments
 (0)