Skip to content

Commit

Permalink
clean up shared resources references (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
Physer authored Jun 7, 2024
1 parent 42d443f commit fd52949
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion infrastructure/shared-values.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"xprtz": "92f4e2a9-8f0a-4ecc-90fc-6c77c24a1b31"
},
"resourceGroups": {
"infrastructure": "rg-xprtzbv-website"
"infrastructure": "rg-xprtzbv-infrastructure",
"management": "xprtz-mgmt"
}
}
9 changes: 6 additions & 3 deletions infrastructure/websiteDeploy.bicep
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
targetScope = 'subscription'

param suffix string
param frontDoorProfileName string = 'afd-xprtzbv-website'
param frontDoorProfileName string = 'afd-xprtzbv-websites'
param rootDomain string = 'xprtz.dev'
param dotnetSubDomain string
param cloudSubDomain string
Expand All @@ -10,8 +10,11 @@ var dotnetApplicationName = 'dotnet'
var cloudApplicationName = 'cloud'

var sharedValues = json(loadTextContent('shared-values.json'))
var managementResourceGroup = resourceGroup(sharedValues.subscriptionIds.xprtz, 'xprtz-mgmt')
var infrastructureResourceGroup = resourceGroup(sharedValues.resourceGroups.infrastructure)
var managementResourceGroup = resourceGroup(sharedValues.subscriptionIds.xprtz, sharedValues.resourceGroups.management)
var infrastructureResourceGroup = resourceGroup(
sharedValues.subscriptionIds.xprtz,
sharedValues.resourceGroups.infrastructure
)

resource websiteResourceGroup 'Microsoft.Resources/resourceGroups@2024-03-01' = {
location: deployment().location
Expand Down

0 comments on commit fd52949

Please sign in to comment.