File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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>
You can’t perform that action at this time.
0 commit comments