Skip to content

Commit

Permalink
Bicep syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
leahy268 committed Oct 5, 2023
1 parent 5d80e49 commit 95c6f85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions infra/StaticSiteStorage.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@minLength(3)
@maxLength(21)
param appName string

param environment string
param location string

@allowed([
Expand All @@ -22,7 +22,7 @@ param tags object


resource staticSiteStorage 'Microsoft.Storage/storageAccounts@2019-06-01' = {
name: replace(replace(replace(toLower(take('${appName}', 24)), '-', ''), '_', ''),'.','')
name: replace(replace(replace(toLower(take('${environment}-${appName}', 24)), '-', ''), '_', ''),'.','')
location: location
kind: 'StorageV2'
tags: tags
Expand Down
2 changes: 2 additions & 0 deletions infra/deploy.bicep
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

param projectName string
param environment string
param lastDeploymentDate string = utcNow()
param tags object = {
Deployed:'yes'
Expand All @@ -12,6 +13,7 @@ module staticSiteStorage 'StaticSiteStorage.bicep' = {
scope: resourceGroup()
params: {
appName: projectName
environment: environment
location: location
tags: tags
}
Expand Down

0 comments on commit 95c6f85

Please sign in to comment.