Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: avm/res/app/managed-environment #737

Merged
merged 22 commits into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 36 additions & 8 deletions avm/res/app/managed-environment/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ module managedEnvironment 'br/public:avm/res/app/managed-environment:<version>'
// Non-required parameters
dockerBridgeCidr: '172.16.0.1/28'
enableTelemetry: '<enableTelemetry>'
infrastructureResourceGroupName: '<infrastructureResourceGroupName>'
infrastructureResourceGroupName: 'me-dep-app.managedenvironments-amemax-rg'
infrastructureSubnetId: '<infrastructureSubnetId>'
internal: true
location: '<location>'
Expand All @@ -124,7 +124,14 @@ module managedEnvironment 'br/public:avm/res/app/managed-environment:<version>'
Env: 'test'
'hidden-title': 'This is visible in the resource name'
}
workloadProfiles: '<workloadProfiles>'
workloadProfiles: [
{
maximumCount: 3
minimumCount: 0
name: 'CAW01'
workloadProfileType: 'D4'
}
]
}
}
```
Expand Down Expand Up @@ -156,7 +163,7 @@ module managedEnvironment 'br/public:avm/res/app/managed-environment:<version>'
"value": "<enableTelemetry>"
},
"infrastructureResourceGroupName": {
"value": "<infrastructureResourceGroupName>"
"value": "me-dep-app.managedenvironments-amemax-rg"
},
"infrastructureSubnetId": {
"value": "<infrastructureSubnetId>"
Expand Down Expand Up @@ -186,7 +193,14 @@ module managedEnvironment 'br/public:avm/res/app/managed-environment:<version>'
}
},
"workloadProfiles": {
"value": "<workloadProfiles>"
"value": [
{
"maximumCount": 3,
"minimumCount": 0,
"name": "CAW01",
"workloadProfileType": "D4"
}
]
}
}
}
Expand Down Expand Up @@ -214,7 +228,7 @@ module managedEnvironment 'br/public:avm/res/app/managed-environment:<version>'
// Non-required parameters
dockerBridgeCidr: '172.16.0.1/28'
enableTelemetry: '<enableTelemetry>'
infrastructureResourceGroupName: '<infrastructureResourceGroupName>'
infrastructureResourceGroupName: 'me-dep-app.managedenvironments-amewaf-rg'
infrastructureSubnetId: '<infrastructureSubnetId>'
internal: true
location: '<location>'
Expand All @@ -228,7 +242,14 @@ module managedEnvironment 'br/public:avm/res/app/managed-environment:<version>'
Env: 'test'
'hidden-title': 'This is visible in the resource name'
}
workloadProfiles: '<workloadProfiles>'
workloadProfiles: [
{
maximumCount: 3
minimumCount: 0
name: 'CAW01'
workloadProfileType: 'D4'
}
]
}
}
```
Expand Down Expand Up @@ -260,7 +281,7 @@ module managedEnvironment 'br/public:avm/res/app/managed-environment:<version>'
"value": "<enableTelemetry>"
},
"infrastructureResourceGroupName": {
"value": "<infrastructureResourceGroupName>"
"value": "me-dep-app.managedenvironments-amewaf-rg"
},
"infrastructureSubnetId": {
"value": "<infrastructureSubnetId>"
Expand Down Expand Up @@ -290,7 +311,14 @@ module managedEnvironment 'br/public:avm/res/app/managed-environment:<version>'
}
},
"workloadProfiles": {
"value": "<workloadProfiles>"
"value": [
{
"maximumCount": 3,
"minimumCount": 0,
"name": "CAW01",
"workloadProfileType": "D4"
}
]
}
}
}
Expand Down
24 changes: 9 additions & 15 deletions avm/res/app/managed-environment/tests/e2e/max/main.test.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ metadata description = 'This instance deploys the module with most of its featur
@maxLength(90)
param resourceGroupName string = 'dep-${namePrefix}-app.managedenvironments-${serviceShort}-rg'

@description('Optional. The name of the infrastructre resource group to deploy for testing purposes.')
param infrastructureResourceGroupName string = 'me-dep-${namePrefix}-app.managedenvironments-${serviceShort}-rg'

@description('Optional. The location to deploy resources to.')
param location string = deployment().location

Expand All @@ -25,16 +22,6 @@ param enableTelemetry bool = true
@description('Optional. A token to inject into the name of each resource.')
param namePrefix string = '#_namePrefix_#'

@description('Optional. WorkloadProfile')
param workloadProfiles array = [
{
workloadProfileType: 'D4'
name: 'CAW01'
minimumCount: 0
maximumCount: 3
}
]

// =========== //
// Deployments //
// =========== //
Expand Down Expand Up @@ -69,13 +56,20 @@ module testDeployment '../../../main.bicep' = [for iteration in [ 'init', 'idem'
name: '${namePrefix}${serviceShort}001'
logAnalyticsWorkspaceResourceId: nestedDependencies.outputs.logAnalyticsWorkspaceResourceId
location: location
workloadProfiles: workloadProfiles
workloadProfiles: [
{
workloadProfileType: 'D4'
name: 'CAW01'
minimumCount: 0
maximumCount: 3
}
]
internal: true
dockerBridgeCidr: '172.16.0.1/28'
platformReservedCidr: '172.17.17.0/24'
platformReservedDnsIP: '172.17.17.17'
infrastructureSubnetId: nestedDependencies.outputs.subnetResourceId
infrastructureResourceGroupName: infrastructureResourceGroupName
infrastructureResourceGroupName: 'me-dep-${namePrefix}-app.managedenvironments-${serviceShort}-rg'
AlexanderSehr marked this conversation as resolved.
Show resolved Hide resolved
lock: {
kind: 'CanNotDelete'
name: 'myCustomLockName'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ metadata description = 'This instance deploys the module in alignment with the b
@maxLength(90)
param resourceGroupName string = 'dep-${namePrefix}-app.managedenvironments-${serviceShort}-rg'

@description('Optional. The name of the infrastructre resource group to deploy for testing purposes.')
param infrastructureResourceGroupName string = 'me-dep-${namePrefix}-app.managedenvironments-${serviceShort}-rg'

@description('Optional. The location to deploy resources to.')
param location string = deployment().location

Expand All @@ -25,15 +22,6 @@ param enableTelemetry bool = true
@description('Optional. A token to inject into the name of each resource.')
param namePrefix string = '#_namePrefix_#'

@description('Optional. WorkloadProfile')
param workloadProfiles array = [
{
workloadProfileType: 'D4'
name: 'CAW01'
minimumCount: 0
maximumCount: 3
}
]
// =========== //
// Deployments //
// =========== //
Expand Down Expand Up @@ -68,13 +56,20 @@ module testDeployment '../../../main.bicep' = [for iteration in [ 'init', 'idem'
name: '${namePrefix}${serviceShort}001'
logAnalyticsWorkspaceResourceId: nestedDependencies.outputs.logAnalyticsWorkspaceResourceId
location: location
workloadProfiles: workloadProfiles
workloadProfiles: [
{
workloadProfileType: 'D4'
name: 'CAW01'
minimumCount: 0
maximumCount: 3
}
]
internal: true
dockerBridgeCidr: '172.16.0.1/28'
platformReservedCidr: '172.17.17.0/24'
platformReservedDnsIP: '172.17.17.17'
infrastructureSubnetId: nestedDependencies.outputs.subnetResourceId
infrastructureResourceGroupName: infrastructureResourceGroupName
infrastructureResourceGroupName: 'me-dep-${namePrefix}-app.managedenvironments-${serviceShort}-rg'
AlexanderSehr marked this conversation as resolved.
Show resolved Hide resolved
lock: {
kind: 'CanNotDelete'
name: 'myCustomLockName'
Expand Down