Skip to content

Commit 7a7c08b

Browse files
committed
2 parents 6cc6aea + 8e20cd8 commit 7a7c08b

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,24 @@ By following these steps, you'll have a serverless API in Azure that uses Servic
213213
|nosqlmessage|Create a Subscription|
214214
|sqlmessage|Create a Subscription|
215215

216+
## Script provsion an Event Grid
217+
```powershell
218+
$subscriptions = ""
219+
$resourceGroups = ""
220+
$storageAccounts = ""
221+
$functionAppName = ""
222+
$function = ""
223+
$containerName = ""
224+
az eventgrid event-subscription create `
225+
--name blob-monitor-subscription `
226+
--source-resource-id "/subscriptions/$subscriptions/resourceGroups/$resourceGroups/providers/Microsoft.Storage/storageAccounts/$storageAccounts" `
227+
--included-event-types Microsoft.Storage.BlobCreated `
228+
--endpoint-type azurefunction `
229+
--endpoint "/subscriptions/4501a4d3-74c8-4703-9948-8c405a64daf0/resourceGroups/training20250625/providers/Microsoft.Web/sites/$functionAppName/functions/$function" `
230+
--advanced-filter data.blobType StringContains BlockBlob `
231+
--advanced-filter subject StringBeginsWith "/blobServices/default/containers/$containerName/"
232+
233+
```
216234
## Create Azure Container Instance for SFTP
217235
> User the following link to create a Azure Container Instance(ACI for SFTP)
218236
>

0 commit comments

Comments
 (0)