Skip to content

Commit

Permalink
Refactor storage account deployment workflow: Update storage name gen…
Browse files Browse the repository at this point in the history
…eration
  • Loading branch information
crlsocro committed Sep 17, 2024
1 parent bd2e07d commit 9c2c12c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 44 deletions.
7 changes: 2 additions & 5 deletions infra/main.bicep
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
@minLength(3)
@maxLength(11)
param storagePrefix string

@allowed([
'Standard_LRS'
Expand All @@ -16,10 +13,10 @@ param storageSKU string = 'Standard_LRS'

param location string = 'norwayeast'

var uniqueStorageName = '${storagePrefix}${uniqueString(resourceGroup().id)}'
var storageName = 'teststorageaccount'

resource stg 'Microsoft.Storage/storageAccounts@2023-04-01' = {
name: uniqueStorageName
name: storageName
location: location
sku: {
name: storageSKU
Expand Down
39 changes: 0 additions & 39 deletions infra/modules/storage-account.bicep

This file was deleted.

0 comments on commit 9c2c12c

Please sign in to comment.