Last active
July 17, 2023 15:33
-
-
Save torosent/ccdbf9ff93abe31e1441baab8c02cf95 to your computer and use it in GitHub Desktop.
internal env with WP 1/2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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