Skip to content

Commit 79c7cf1

Browse files
committed
update resource url - removed replace commannd.
1 parent a2b3383 commit 79c7cf1

1 file changed

Lines changed: 5 additions & 25 deletions

File tree

infra/main.bicep

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1405,23 +1405,11 @@ module avmAppConfig 'br/public:avm/res/app-configuration/configuration-store:0.6
14051405
}
14061406
{
14071407
name: 'APP_STORAGE_BLOB_URL'
1408-
value: (deployment_param.enable_waf)
1409-
? replace(
1410-
avmStorageAccount.outputs.serviceEndpoints.blob,
1411-
'blob.core.windows.net',
1412-
'privatelink.blob.core.windows.net'
1413-
)
1414-
: avmStorageAccount.outputs.serviceEndpoints.blob //TODO: replace with actual blob URL
1408+
value: avmStorageAccount.outputs.serviceEndpoints.blob //TODO: replace with actual blob URL
14151409
}
14161410
{
14171411
name: 'APP_STORAGE_QUEUE_URL'
1418-
value: (deployment_param.enable_waf)
1419-
? replace(
1420-
avmStorageAccount.outputs.serviceEndpoints.queue,
1421-
'queue.core.windows.net',
1422-
'privatelink.queue.core.windows.net'
1423-
)
1424-
: avmStorageAccount.outputs.serviceEndpoints.queue //TODO: replace with actual queue URL
1412+
value: avmStorageAccount.outputs.serviceEndpoints.queue //TODO: replace with actual queue URL
14251413
}
14261414
{
14271415
name: 'APP_AI_PROJECT_CONN_STR'
@@ -1430,13 +1418,7 @@ module avmAppConfig 'br/public:avm/res/app-configuration/configuration-store:0.6
14301418
}
14311419
{
14321420
name: 'APP_COSMOS_CONNSTR'
1433-
value: (deployment_param.enable_waf)
1434-
? replace(
1435-
avmCosmosDB.outputs.primaryReadWriteConnectionString,
1436-
'mongo.cosmos.azure.com',
1437-
'privatelink.mongo.cosmos.azure.com'
1438-
)
1439-
: avmCosmosDB.outputs.primaryReadWriteConnectionString
1421+
value: avmCosmosDB.outputs.primaryReadWriteConnectionString
14401422
}
14411423
]
14421424

@@ -1562,9 +1544,7 @@ module avmContainerApp_update 'br/public:avm/res/app/container-app:0.16.0' = {
15621544
env: [
15631545
{
15641546
name: 'APP_CONFIG_ENDPOINT'
1565-
value: (deployment_param.enable_waf)
1566-
? replace(avmAppConfig.outputs.endpoint, 'azconfig.io', 'privatelink.azconfig.io')
1567-
: avmAppConfig.outputs.endpoint
1547+
value: avmAppConfig.outputs.endpoint
15681548
}
15691549
]
15701550
}
@@ -1619,7 +1599,7 @@ module avmContainerApp_API_update 'br/public:avm/res/app/container-app:0.16.0' =
16191599
env: [
16201600
{
16211601
name: 'APP_CONFIG_ENDPOINT'
1622-
value: replace(avmAppConfig.outputs.endpoint, 'azconfig.io', 'privatelink.azconfig.io')
1602+
value: avmAppConfig.outputs.endpoint
16231603
}
16241604
]
16251605
probes: [

0 commit comments

Comments
 (0)