Skip to content

Instantly share code, notes, and snippets.

@torosent
Last active July 17, 2023 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save torosent/ccdbf9ff93abe31e1441baab8c02cf95 to your computer and use it in GitHub Desktop.
Save torosent/ccdbf9ff93abe31e1441baab8c02cf95 to your computer and use it in GitHub Desktop.
internal env with WP 1/2
param location string
param environmentName string
resource environment 'Microsoft.App/managedEnvironments@2023-04-01-preview' = {
name: environmentName
location: location
properties: {
appLogsConfiguration: {
destination: 'azure-monitor'
logAnalyticsConfiguration: null
}
peerAuthentication: {
mtls: {
enabled: true
}
}
workloadProfiles: [
{
name: 'Consumption'
workloadProfileType: 'Consumption'
}
]
vnetConfiguration: {
infrastructureSubnetId: '/subscriptions/<subid>/resourceGroups/preview-RG/providers/Microsoft.Network/virtualNetworks/vnet-previewRG-9b4e/subnets/infra-subnet'
internal: true
}
zoneRedundant: false
}
dependsOn: [
newInfrastructureSubnetTemplate
]
}
module newInfrastructureSubnetTemplate './nested_newInfrastructureSubnetTemplate.bicep' = {
name: 'newInfrastructureSubnetTemplate'
scope: resourceGroup('<subid>', 'preview-RG')
params: {}
dependsOn: [
vnet_previewRG_9b4e
]
}
resource vnet_previewRG_9b4e 'Microsoft.Network/virtualNetworks@2020-07-01' = {
location: location
name: 'vnet-previewRG-9b4e'
properties: {
addressSpace: {
addressPrefixes: [
'10.0.0.0/16'
]
}
subnets: []
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment