You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/confidential-ledger/create-blob-managed-app.md
+17-10Lines changed: 17 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,9 +41,9 @@ Once a Managed Application is created, you're able to then connect the Managed A
41
41
42
42
### Create a topic and event subscription for the storage account
43
43
44
-
The Managed Application uses an Azure Service Bus Queue to track and record all **Create Blob** events. You can add this Queue as an Event Subscriber for any storage account that you're creating blobs for.
44
+
The Managed Application uses an Azure Service Bus Queue to track and record all **Create Blob** events. You will use the Queue created in the Managed Resource Group by the Managed Application and add it as an Event Subscriber for any storage account that you're creating blobs for.
45
45
46
-
#### Azure portal
46
+
###[Azure portal](#tab/azure-portal)
47
47
48
48
:::image type="content" source="./media/managed-application/managed-app-event-subscription-inline.png" alt-text="Screenshot of the Azure portal in a web browser, showing how to set up a storage event subscription." lightbox="./media/managed-application/managed-app-event-subscription-enhanced.png":::
49
49
@@ -53,11 +53,11 @@ On the Azure portal, you can navigate to the storage account that you would like
53
53
54
54
The queue uses sessions to maintain ordering across multiple storage accounts so you will also need to navigate to the `Delivery Properties` tab and to enter a unique session ID for this event subscription.
55
55
56
-
#### Azure CLI
56
+
###[CLI](#tab/cli-or-sdk)
57
57
58
58
**Creating the Event Topic:**
59
59
60
-
```bash
60
+
```azurecli
61
61
az eventgrid system-topic create \
62
62
--resource-group {resource_group} \
63
63
--name {sample_topic_name} \
@@ -76,7 +76,7 @@ az eventgrid system-topic create \
76
76
77
77
**Creating the Event Subscription:**
78
78
79
-
```bash
79
+
```azurecli
80
80
az eventgrid system-topic event-subscription create \
81
81
--name {sample_subscription_name} \
82
82
--system-topic-name {sample_topic_name} \
@@ -98,17 +98,19 @@ az eventgrid system-topic event-subscription create \
98
98
99
99
`endpoint` - Resource ID of the service bus queue that is subscribing to the storage account Topic
100
100
101
+
---
102
+
101
103
### Add required role to storage account
102
104
103
105
The Managed Application requires the `Storage Blob Data Owner` role to read and create hashes for each blob and this role is required to be added in order for the digest to be calculated correctly.
104
106
105
-
#### Azure portal
107
+
###[Azure portal](#tab/azure-portal)
106
108
107
109
:::image type="content" source="./media/managed-application/managed-app-managed-identity-inline.png" alt-text="Screenshot of the Azure portal in a web browser, showing how to set up a managed identity for the managed app." lightbox="./media/managed-application/managed-app-managed-identity-enhanced.png":::
108
110
109
-
#### Azure CLI
111
+
###[CLI](#tab/cli-or-sdk)
110
112
111
-
```bash
113
+
```azurecli
112
114
az role assignment create \
113
115
--role "Storage Blob Data Owner" \
114
116
--assignee-object-id {function_oid} \
@@ -120,6 +122,8 @@ az role assignment create \
120
122
121
123
`scope` - Resource ID of storage account to create the role for
122
124
125
+
---
126
+
123
127
> [!NOTE]
124
128
> Multiple storage accounts can be connected to a single Managed Application instance. We currently recommend a maximum of **10 storage accounts** that contain high usage blob containers.
125
129
@@ -139,6 +143,8 @@ The transaction table holds information about each blob and a unique hash that i
139
143
140
144
The block table holds information related to every digest this is created for the blob container and the associated transaction ID for the digest is stored in Azure Confidential Ledger.
141
145
146
+
> [!NOTE]
147
+
> Every blob creation event will not result in a digest being created. Digests are created after a certain block size is reached. Currently, a digest will be created for every **4 blob creation events**.
142
148
143
149
### Viewing digest on Azure Confidential Ledger
144
150
@@ -162,13 +168,13 @@ An audit can be triggered by including the following message to the Service Bus
162
168
}
163
169
```
164
170
165
-
#### Azure portal
171
+
###[Azure portal](#tab/azure-portal)
166
172
167
173
:::image type="content" source="./media/managed-application/managed-app-queue-trigger-audit-inline.png" alt-text="Screenshot of the Azure portal in a web browser, how to trigger an audit by adding a message to the queue." lightbox="./media/managed-application/managed-app-queue-trigger-audit-enhanced.png":::
168
174
169
175
Be sure to include a `Session ID` as the queue has sessions enabled.
0 commit comments