Skip to content

Commit c1ea6cb

Browse files
Update main.bicep
1 parent e5ce6a9 commit c1ea6cb

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

infra/main.bicep

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,9 @@ var resourceToken = toLower(uniqueString(subscription().id, name, location))
151151
var prefix = '${toLower(name)}-${resourceToken}'
152152
var tags = { 'azd-env-name': name }
153153

154-
resource resourceGroup 'Microsoft.Resources/resourceGroups@2021-04-01' = {
155-
name: '${name}-rg'
156-
location: location
157-
tags: tags
154+
// ✅ Use existing ResourceGroup1 instead of creating a new one
155+
resource resourceGroup 'Microsoft.Resources/resourceGroups@2021-04-01' existing = {
156+
name: 'ResourceGroup1'
158157
}
159158

160159
var postgresServerName = '${prefix}-postgresql'

0 commit comments

Comments
 (0)