From 907f286c279ae5917ed987c4990991a35358c39e Mon Sep 17 00:00:00 2001 From: Alexander Pajer Date: Thu, 13 Jul 2023 15:18:10 +0200 Subject: [PATCH] eventhub script updated (#159) --- .../01-event-hub/demo-01/create-event-hub-cli.azcli | 2 +- .../01-event-hub/demo-02/capture-graph-events.azcli | 2 +- .../01-event-hub/demo-02/graph-processor/local.settings.json | 2 +- .../01-event-hub/demo-02/subscribe-change-notification.http | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/demos/09-event-based-solutions/01-event-hub/demo-01/create-event-hub-cli.azcli b/demos/09-event-based-solutions/01-event-hub/demo-01/create-event-hub-cli.azcli index 85a20c12..fc6c224b 100644 --- a/demos/09-event-based-solutions/01-event-hub/demo-01/create-event-hub-cli.azcli +++ b/demos/09-event-based-solutions/01-event-hub/demo-01/create-event-hub-cli.azcli @@ -11,7 +11,7 @@ az group create --name $grp --location $loc # Create Group & Hub, List permissions az eventhubs namespace create -n $namespace -g $grp -l $loc --sku Basic nsconStr=$(az eventhubs namespace authorization-rule keys list --name RootManageSharedAccessKey --namespace-name $namespace -g $grp --query primaryConnectionString -o tsv) -az eventhubs eventhub create -n $hub -g $grp --namespace-name $namespace --partition-count 2 --message-retention 1 +az eventhubs eventhub create -n $hub -g $grp --namespace-name $namespace --cleanup-policy Delete --partition-count 2 --retention-time 1 # Create Storage Acct az storage account create --name $storage -g $grp --sku Standard_RAGRS --encryption-services blob diff --git a/demos/09-event-based-solutions/01-event-hub/demo-02/capture-graph-events.azcli b/demos/09-event-based-solutions/01-event-hub/demo-02/capture-graph-events.azcli index 0dd7dfb9..c8c6b1e8 100644 --- a/demos/09-event-based-solutions/01-event-hub/demo-02/capture-graph-events.azcli +++ b/demos/09-event-based-solutions/01-event-hub/demo-02/capture-graph-events.azcli @@ -11,7 +11,7 @@ kvsecret=graphConStr az group create -l $loc -n $grp az eventhubs namespace create --name $evns -g $grp --sku Basic -l $loc -az eventhubs eventhub create --name $hub --namespace-name $evns -g $grp --partition-count 2 --message-retention 1 +az eventhubs eventhub create --name $hub --namespace-name $evns -g $grp --cleanup-policy Delete --partition-count 2 --retention-time 1 az eventhubs eventhub authorization-rule create --name $evhpolicyname --eventhub-name $hub --namespace-name $evns -g $grp --rights Send evtHubConStr=`az eventhubs eventhub authorization-rule keys list --name $evhpolicyname --eventhub-name $hub --namespace-name $evns -g $grp --query "primaryConnectionString" --output tsv` diff --git a/demos/09-event-based-solutions/01-event-hub/demo-02/graph-processor/local.settings.json b/demos/09-event-based-solutions/01-event-hub/demo-02/graph-processor/local.settings.json index 843fc0ad..f35db937 100644 --- a/demos/09-event-based-solutions/01-event-hub/demo-02/graph-processor/local.settings.json +++ b/demos/09-event-based-solutions/01-event-hub/demo-02/graph-processor/local.settings.json @@ -3,6 +3,6 @@ "Values": { "AzureWebJobsStorage": "UseDevelopmentStorage=true", "FUNCTIONS_WORKER_RUNTIME": "dotnet", - "EventHubKey": "Endpoint=sb://graphevents-ns-23196.servicebus.windows.net/;SharedAccessKeyName=grapheventspolicy;SharedAccessKey=u26ZiUE15pT9lNj1DTjFazXackIhv3Z1SjeMo2voycc=;EntityPath=graphevents-hub-23196" + "EventHubKey": "Endpoint=sb://graphevents-ns-15780.servicebus.windows.net/;SharedAccessKeyName=grapheventspolicy;SharedAccessKey=7AtYRGwMDg0qi8EMHrSLvQRprg0J1n6is+AEhCqqjRM=;EntityPath=graphevents-hub-15780" } } diff --git a/demos/09-event-based-solutions/01-event-hub/demo-02/subscribe-change-notification.http b/demos/09-event-based-solutions/01-event-hub/demo-02/subscribe-change-notification.http index 71551446..f1d71a82 100644 --- a/demos/09-event-based-solutions/01-event-hub/demo-02/subscribe-change-notification.http +++ b/demos/09-event-based-solutions/01-event-hub/demo-02/subscribe-change-notification.http @@ -1,5 +1,5 @@ @user="alexander.pajer@integrations.at" -@notificationUrl="EventHub:https://m10-graphevents-23196.vault.azure.net/secrets/graphConStr?tenantId=integrations.at" +@notificationUrl="EventHub:https://m10-graphevents-15780.vault.azure.net/secrets/graphConStr?tenantId=integrations.at" # @name auth POST https://login.microsoftonline.com/{{tenantId}}/oauth2/v2.0/token HTTP/1.1 @@ -19,6 +19,6 @@ Content-Type: application/json "changeType": "created,updated", "notificationUrl": {{notificationUrl}}, "resource": "/users/alexander.pajer@integrations.at/mailfolders('inbox')/messages", - "expirationDateTime": "2022-10-07T11:00:00.0000000Z", + "expirationDateTime": "2023-07-14T11:00:00.0000000Z", "clientState": "SecretClientState" } \ No newline at end of file