Skip to content

Commit

Permalink
eventhub script updated (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-kastil authored Jul 13, 2023
1 parent d468449 commit 907f286
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@user="[email protected]"
@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
Expand All @@ -19,6 +19,6 @@ Content-Type: application/json
"changeType": "created,updated",
"notificationUrl": {{notificationUrl}},
"resource": "/users/[email protected]/mailfolders('inbox')/messages",
"expirationDateTime": "2022-10-07T11:00:00.0000000Z",
"expirationDateTime": "2023-07-14T11:00:00.0000000Z",
"clientState": "SecretClientState"
}

0 comments on commit 907f286

Please sign in to comment.