Skip to content

Commit 23285c4

Browse files
Parameterize blob name, set supported infrastructures
1 parent 4e69c23 commit 23285c4

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

samples/secure-blob-access/create.ipynb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
"\n",
1010
"This sample demonstrates implementing the **valet key pattern** with Azure API Management (APIM) to provide direct, secure, time-limited access to blob storage without exposing storage account keys. While APIM provides the key, it is deliberately not the conduit for downloading the actual blob.\n",
1111
"\n",
12-
"⚙️ **Supported infrastructures**: TBD\n",
12+
"⚙️ **Supported infrastructures**: All infrastructures\n",
1313
"\n",
14-
"⌚ **Expected *Run All* runtime (excl. infrastructure prerequisite): ~TBD minutes**\n",
14+
"⌚ **Expected *Run All* runtime (excl. infrastructure prerequisite): ~3 minutes**\n",
1515
"\n",
1616
"## 🎯 Objectives\n",
1717
"\n",
@@ -165,7 +165,8 @@
165165
" 'apis': {'value': [api.to_dict() for api in apis]},\n",
166166
" 'namedValues': {'value': [nv.to_dict() for nv in nvs]},\n",
167167
" 'policyFragments': {'value': [pf.to_dict() for pf in pfs]},\n",
168-
" 'containerName': {'value': container_name}\n",
168+
" 'containerName': {'value': container_name},\n",
169+
" 'blobName': {'value': file_name}\n",
169170
"}\n",
170171
"\n",
171172
"# 2) Infrastructure must be in place before samples can be layered on top\n",

samples/secure-blob-access/main.bicep

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,14 @@ param storageAccountName string = 'st${take(replace(resourceSuffix, '-', ''), 18
1414
param apis array = []
1515
param namedValues array = []
1616
param policyFragments array = []
17+
18+
@description('Container name where files will be uploaded')
19+
@minLength(3)
20+
@maxLength(63)
1721
param containerName string
1822

23+
param blobName string
24+
1925

2026
// ------------------------------
2127
// RESOURCES
@@ -74,7 +80,7 @@ module uploadSampleFilesModule 'upload-sample-files.bicep' = {
7480
resourceSuffix: resourceSuffix
7581
storageAccountName: storageAccount.name
7682
containerName: containerName
77-
blobName: 'hr.txt'
83+
blobName: blobName
7884
}
7985
dependsOn: [
8086
blobContainer

0 commit comments

Comments
 (0)