Skip to content

Commit 528f592

Browse files
committed
Create new storage account type and add parameter to top-level bicep files
1 parent 70952d3 commit 528f592

3 files changed

Lines changed: 18 additions & 0 deletions

File tree

bicep/ccw.bicep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ param adminUsername string
1414
param adminPassword string
1515
param adminSshPublicKey string
1616
param storedKey types.storedKey_t
17+
param storageAccount types.storageAccount_t
1718
param ccVMName string
1819
param ccVMSize string
1920
param resourceGroup string

bicep/mainTemplate.bicep

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ param storedKey types.storedKey_t = {id: 'foo', location: 'foo', name:'foo'}
1212
param ccVMName string
1313
param ccVMSize string
1414
param resourceGroup string
15+
param storageAccount types.storageAccount_t
1516
param sharedFilesystem types.sharedFilesystem_t
1617
param additionalFilesystem types.additionalFilesystem_t = { type: 'disabled' }
1718
param network types.vnet_t
@@ -60,6 +61,7 @@ module makeCCWresources 'ccw.bicep' = {
6061
adminUsername: adminUsername
6162
adminPassword: adminPassword
6263
adminSshPublicKey: adminSshPublicKey
64+
storageAccount: storageAccount
6365
sharedFilesystem: sharedFilesystem
6466
additionalFilesystem: additionalFilesystem
6567
network: network

bicep/types.bicep

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,3 +317,18 @@ type cluster_init_t = github_cluster_init_t | prestaged_cluster_init_t
317317

318318
@export()
319319
type cluster_init_param_t = cluster_init_t[]
320+
321+
type storageAccount_new_t = {
322+
type: 'new'
323+
}
324+
325+
type storageAccount_existing_t = {
326+
type: 'existing'
327+
storageAccountId: string
328+
vmManagedIdentityId: string
329+
vmssManagedIdentityId: string
330+
}
331+
332+
@export()
333+
@discriminator('type')
334+
type storageAccount_t = storageAccount_new_t | storageAccount_existing_t

0 commit comments

Comments
 (0)