Skip to content

Commit a15e914

Browse files
committed
added more output
1 parent 93492ca commit a15e914

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

infra/samples/network-subnet-design.bicep

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,3 +241,17 @@ module network '../modules/network/main.bicep' = {
241241
enableTelemetry: enableTelemetry
242242
}
243243
}
244+
245+
246+
output vnetName string = network.outputs.vnetName
247+
output vnetResourceId string = network.outputs.vnetResourceId
248+
249+
output subnetWebResourceId string = first(filter(network.outputs.subnets, s => s.name == 'web')).?resourceId ?? ''
250+
output subnetPrivateEndpointsResourceId string = first(filter(network.outputs.subnets, s => s.name == 'peps')).?resourceId ?? ''
251+
output subnetAppResourceId string = first(filter(network.outputs.subnets, s => s.name == 'app')).?resourceId ?? ''
252+
output subnetAiResourceId string = first(filter(network.outputs.subnets, s => s.name == 'ai')).?resourceId ?? ''
253+
output subnetDataResourceId string = first(filter(network.outputs.subnets, s => s.name == 'data')).?resourceId ?? ''
254+
255+
output bastionHostResourceId string = bastionConfiguration != null ? network.outputs.bastionHostId : ''
256+
output bastionSubnetResourceId string = bastionConfiguration != null ? network.outputs.bastionSubnetId : ''
257+

0 commit comments

Comments
 (0)