Skip to content

Commit 40b8fd1

Browse files
committed
cleanup
1 parent 8dab214 commit 40b8fd1

File tree

1 file changed

+8
-40
lines changed

1 file changed

+8
-40
lines changed

articles/event-grid/blob-event-quickstart-template.md

Lines changed: 8 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -42,61 +42,28 @@ Two Azure resources are defined in the template:
4242
* **Microsoft.Storage/storageAccounts**: create an Azure Storage account.
4343
* **"Microsoft.Storage/storageAccounts/providers/eventSubscriptions**: create an Azure Event Grid subscription for the storage account.
4444

45-
You can find more Azure Key Vault template samples [here](https://azure.microsoft.com/resources/templates/?resourceType=Microsoft.Eventgrid).
46-
4745
1. Select the following image to sign in to Azure and open a template. The template creates a key vault and a secret.
4846

4947
<a href="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F101-event-grid-subscription-and-storage%2Fazuredeploy.json"><img src="./media/blob-event-quickstart-template/deploy-to-azure.png" alt="deploy to azure"/></a>
50-
2. Select or enter the following values.
51-
52-
- **Subscription**: select an Azure subscription.
53-
- **Resource group**: select the resource group that contains the web application that you deployed earlier.
54-
- **Location**: select a location. For example, **Central US**.
55-
- **Endpoint**: provide the URL of your web app and add `api/updates` to the home page URL.
48+
2. Specify the **endpoint**: provide the URL of your web app and add `api/updates` to the home page URL.
5649
3. Select **Purchase** to deploy the template.
5750

58-
The Azure portal is used to deploy the template. In addition to the Azure portal, you can also use the Azure PowerShell, Azure CLI, and REST API. To learn other deployment methods, see [Deploy templates](../azure-resource-manager/templates/deploy-powershell.md).
51+
The Azure portal is used here to deploy the template. You can also use the Azure PowerShell, Azure CLI, and REST API. To learn other deployment methods, see [Deploy templates](../azure-resource-manager/templates/deploy-powershell.md).
52+
53+
> [!NOTE]
54+
> You can find more Azure Event Grid template samples [here](https://azure.microsoft.com/resources/templates/?resourceType=Microsoft.Eventgrid).
5955
6056
## Validate the deployment
61-
1. View your web app again, and notice that a subscription validation event has been sent to it. Select the eye icon to expand the event data. Event Grid sends the validation event so the endpoint can verify that it wants to receive event data. The web app includes code to validate the subscription.
57+
View your web app again, and notice that a subscription validation event has been sent to it. Select the eye icon to expand the event data. Event Grid sends the validation event so the endpoint can verify that it wants to receive event data. The web app includes code to validate the subscription.
6258

63-
![View subscription event](./media/blob-event-quickstart-portal/view-subscription-event.png)
59+
![View subscription event](./media/blob-event-quickstart-portal/view-subscription-event.png)
6460

6561
Now, let's trigger an event to see how Event Grid distributes the message to your endpoint.
6662

67-
## Send an event to your endpoint
6863
You trigger an event for the Blob storage by uploading a file. The file doesn't need any specific content. The articles assumes you have a file named testfile.txt, but you can use any file.
6964

7065
When you upload the file to the Azure Blob storage, Event Grid sends a message to the endpoint you configured when subscribing. The message is in the JSON format and it contains an array with one or more events. In the following example, the JSON message contains an array with one event. View your web app and notice that a blob created event was received.
7166

72-
```json
73-
[{
74-
"topic": "/subscriptions/{subscription-id}/resourceGroups/eventgroup/providers/Microsoft.Storage/storageAccounts/demoblob0625",
75-
"subject": "/blobServices/default/containers/eventcontainer/blobs/testfile.txt",
76-
"eventType": "Microsoft.Storage.BlobCreated",
77-
"eventTime": "2018-06-25T22:50:41.1823131Z",
78-
"id": "0000000000-0000-0000-0000-000000000000",
79-
"data": {
80-
"api": "PutBlockList",
81-
"clientRequestId": "000000000-0000-0000-0000-000000000000",
82-
"requestId": "000000000-0000-0000-0000-000000000000",
83-
"eTag": "0x8D5DAEE13C8F9ED",
84-
"contentType": "text/plain",
85-
"contentLength": 4,
86-
"blobType": "BlockBlob",
87-
"url": "https://demoblob0625.blob.core.windows.net/eventcontainer/testfile.txt",
88-
"sequencer": "00000000000000000000000000001C24000000000004712b",
89-
"storageDiagnostics": {
90-
"batchId": "ef633252-32fd-464b-8f5a-0d10d68885e6"
91-
}
92-
},
93-
"dataVersion": "",
94-
"metadataVersion": "1"
95-
}]
96-
```
97-
98-
You see that the event data has been sent to the web app.
99-
10067
![View results](./media/blob-event-quickstart-portal/view-results.png)
10168

10269

@@ -111,3 +78,4 @@ For more information about Azure Resource Manager templates, see the following a
11178
- [Azure Resource Manager documentation](/azure/azure-resource-manager)
11279
- [Define resources in Azure Resource Manager templates](/azure/templates/)
11380
- [Azure Quickstart templates](https://azure.microsoft.com/resources/templates/)
81+
- [Azure Event Grid templates](https://azure.microsoft.com/resources/templates/?resourceType=Microsoft.Eventgrid).

0 commit comments

Comments
 (0)