-
Notifications
You must be signed in to change notification settings - Fork 579
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #500 from spelluru/ehubegridfuncdemo0727
Event Hubs -> Event Grid -> Functions sample
- Loading branch information
Showing
32 changed files
with
316 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
#Step 1- first step is to get the bearer token using client credential flow. We should set the resource to be URL encoded string for eventhubs.azure.net | ||
response=$(curl -X POST -d 'grant_type=client_credentials&client_id=<Application_ID>&client_secret=<Application_Secret>&resource=https%3A%2F%2Feventhubs.azure.net' https://login.microsoftonline.com/<Tenant_Id>/oauth2/token) | ||
|
||
#formatting token to drop "" quotes and suffixing bearer for final use | ||
token="Bearer `echo $response | jq ."access_token" | tr -d '"'`" | ||
|
||
#Step 2-Making a REST call to dataplane endpoint to add schema to schema groups | ||
curl -X PUT -d '{"namespace": "com.azure.schemaregistry.samples","type": "record","name": "Order","fields": [{"name": "id","type": "string"},{"name": "amount","type": "double"}]}' -H "Content-Type:application/json" -H "Authorization:$token" -H "Serialization-Type:Avro" \ | ||
#Step 1- first step is to get the bearer token using client credential flow. We should set the resource to be URL encoded string for eventhubs.azure.net | ||
response=$(curl -X POST -d 'grant_type=client_credentials&client_id=<Application_ID>&client_secret=<Application_Secret>&resource=https%3A%2F%2Feventhubs.azure.net' https://login.microsoftonline.com/<Tenant_Id>/oauth2/token) | ||
|
||
#formatting token to drop "" quotes and suffixing bearer for final use | ||
token="Bearer `echo $response | jq ."access_token" | tr -d '"'`" | ||
|
||
#Step 2-Making a REST call to dataplane endpoint to add schema to schema groups | ||
curl -X PUT -d '{"namespace": "com.azure.schemaregistry.samples","type": "record","name": "Order","fields": [{"name": "id","type": "string"},{"name": "amount","type": "double"}]}' -H "Content-Type:application/json" -H "Authorization:$token" -H "Serialization-Type:Avro" \ | ||
'https://<Namespace_Name>.servicebus.windows.net/$schemagroups/<SchemaGroup_Name>/schemas/<Schema_Name>?api-version=2020-09-01-preview' |
This file was deleted.
Oops, something went wrong.
Binary file added
BIN
+45.4 KB
...idDemo/media/event-grid-event-hubs-functions-synapse-analytics/azure-portal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+73.1 KB
...a/event-grid-event-hubs-functions-synapse-analytics/cloud-shell-initialized.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+76.6 KB
...vent-grid-event-hubs-functions-synapse-analytics/confirm-event-subscription.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+39.5 KB
...event-grid-event-hubs-functions-synapse-analytics/confirm-function-creation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+55.4 KB
...vent-grid-event-hubs-functions-synapse-analytics/create-storage-cloud-shell.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+41.7 KB
...d-event-hubs-functions-synapse-analytics/dependency-storage-changes-summary.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+48.6 KB
...event-hubs-functions-synapse-analytics/dependency-storage-connection-string.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+59.4 KB
...grid-event-hubs-functions-synapse-analytics/event-hub-add-subscription-link.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+32.2 KB
...hubs-functions-synapse-analytics/event-hub-namespace-shared-access-policies.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+85.7 KB
...d-event-hubs-functions-synapse-analytics/event-subscription-select-function.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+58.7 KB
...edia/event-grid-event-hubs-functions-synapse-analytics/function-invocations.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+48 KB
.../event-grid-event-hubs-functions-synapse-analytics/function-runtime-version.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+37.5 KB
...media/event-grid-event-hubs-functions-synapse-analytics/get-publish-profile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+18.1 KB
...Demo/media/event-grid-event-hubs-functions-synapse-analytics/import-profile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+50.6 KB
.../media/event-grid-event-hubs-functions-synapse-analytics/launch-cloud-shell.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+15 KB
...ntGridDemo/media/event-grid-event-hubs-functions-synapse-analytics/overview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+46.5 KB
...ent-grid-event-hubs-functions-synapse-analytics/publish-select-function-app.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+107 KB
...-grid-event-hubs-functions-synapse-analytics/publish-storage-configure-link.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+98 KB
...dDemo/media/event-grid-event-hubs-functions-synapse-analytics/query-results.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+65.9 KB
...ent-grid-event-hubs-functions-synapse-analytics/resources-in-resource-group.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+49.8 KB
...dDemo/media/event-grid-event-hubs-functions-synapse-analytics/run-sql-query.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+38.2 KB
...event-grid-event-hubs-functions-synapse-analytics/select-dependency-storage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+86.8 KB
...media/event-grid-event-hubs-functions-synapse-analytics/select-function-app.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+72.1 KB
...Demo/media/event-grid-event-hubs-functions-synapse-analytics/select-publish.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+59.5 KB
...dia/event-grid-event-hubs-functions-synapse-analytics/select-resource-group.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+58 KB
...a/event-grid-event-hubs-functions-synapse-analytics/sql-data-warehouse-page.png
Oops, something went wrong.
Binary file added
BIN
+72.6 KB
...event-grid-event-hubs-functions-synapse-analytics/sql-server-authentication.png
Oops, something went wrong.
Binary file added
BIN
+16 KB
...edia/event-grid-event-hubs-functions-synapse-analytics/start-publish-button.png
Oops, something went wrong.
Binary file added
BIN
+62 KB
...dia/event-grid-event-hubs-functions-synapse-analytics/storage-captured-file.png
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.