Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit 88fef1d

Browse files
authored
til: Update config of Azure sources (#245)
1 parent 4e22d1d commit 88fef1d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docs/til/Sources.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,10 @@ Secret class: [aws](Secret-References.md#aws-secret-class)
210210

211211
```hcl
212212
source azure_activity_logs "audit_logs" {
213-
event_hub_id = "/subscriptions/1234/resourceGroups/my-group/providers/Microsoft.EventHub/namespaces/mylogs"
213+
subscription_id = "1234"
214+
215+
event_hubs_namespace_id = "/subscriptions/1234/resourceGroups/my-group/providers/Microsoft.EventHub/namespaces/mylogs"
216+
event_hub_name = "activity-logs" //optional
214217
event_hubs_sas_policy = "RootManageSharedAccessKey" // optional
215218
216219
categories = ["Administrative", "Security", "Policy"] // optional
@@ -228,7 +231,9 @@ Secret class: [azure_sp](Secret-References.md#azure_sp-secret-class)
228231
```hcl
229232
source azure_blob_storage "my_files" {
230233
storage_account_id = "/subscriptions/1234/resourceGroups/my-group/providers/Microsoft.Storage/storageAccounts/myfiles"
231-
event_hub_id = "/subscriptions/1234/resourceGroups/my-group/providers/Microsoft.EventHub/namespaces/myevents"
234+
235+
event_hubs_namespace_id = "/subscriptions/1234/resourceGroups/my-group/providers/Microsoft.EventHub/namespaces/myevents"
236+
event_hub_name = "files-events" //optional
232237
233238
event_types = ["Microsoft.Storage.BlobCreated", "Microsoft.Storage.BlobDeleted"] // optional
234239

0 commit comments

Comments
 (0)