Skip to content

Commit 9eaa150

Browse files
authored
Merge pull request #1 from seesharprun/explicit-location
Set location explicitly in Bicep
2 parents e7e7d2d + dea9c62 commit 9eaa150

2 files changed

Lines changed: 3 additions & 13 deletions

File tree

infra/main.parameters.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

infra/mongo.bicep

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ resource mongoCluster 'Microsoft.DocumentDB/mongoClusters@2025-04-01-preview' =
5959
resource mongoClusterUserManagedIdentity 'Microsoft.DocumentDB/mongoClusters/users@2025-04-01-preview' = {
6060
parent: mongoCluster
6161
name: managedIdentityPrincipalId
62+
location: location
6263
properties: {
6364
identityProvider: {
6465
type: 'MicrosoftEntraID'
@@ -78,6 +79,7 @@ resource mongoClusterUserManagedIdentity 'Microsoft.DocumentDB/mongoClusters/use
7879
resource mongoClusterUserDeploymentIdentity 'Microsoft.DocumentDB/mongoClusters/users@2025-04-01-preview' = if (!pipeline) {
7980
parent: mongoCluster
8081
name: deploymentIdentityPrincipalId
82+
location: location
8183
properties: {
8284
identityProvider: {
8385
type: 'MicrosoftEntraID'
@@ -114,4 +116,4 @@ resource mongoClusterFirewallAllowAll 'Microsoft.DocumentDB/mongoClusters/firewa
114116

115117
output name string = mongoCluster.name
116118
output resourceId string = mongoCluster.id
117-
output endpoint string = '${mongoCluster.name}.global.mongocluster.cosmos.azure.com'
119+
output endpoint string = '${mongoCluster.name}.global.mongocluster.cosmos.azure.com'

0 commit comments

Comments
 (0)