Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
krbar committed Oct 7, 2024
2 parents a9be954 + 1769664 commit 6e336b7
Show file tree
Hide file tree
Showing 245 changed files with 46,531 additions and 894 deletions.
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
/avm/res/dev-test-lab/lab/ @Azure/avm-res-devtestlab-lab-module-owners-bicep @Azure/avm-module-reviewers-bicep
/avm/res/digital-twins/digital-twins-instance/ @Azure/avm-res-digitaltwins-digitaltwinsinstance-module-owners-bicep @Azure/avm-module-reviewers-bicep
/avm/res/document-db/database-account/ @Azure/avm-res-documentdb-databaseaccount-module-owners-bicep @Azure/avm-module-reviewers-bicep
/avm/res/document-db/mongo-cluster/ @Azure/avm-res-documentdb-mongocluster-module-owners-bicep @Azure/avm-module-reviewers-bicep
/avm/res/event-grid/domain/ @Azure/avm-res-eventgrid-domain-module-owners-bicep @Azure/avm-module-reviewers-bicep
/avm/res/event-grid/namespace/ @Azure/avm-res-eventgrid-namespace-module-owners-bicep @Azure/avm-module-reviewers-bicep
/avm/res/event-grid/system-topic/ @Azure/avm-res-eventgrid-systemtopic-module-owners-bicep @Azure/avm-module-reviewers-bicep
Expand Down Expand Up @@ -146,6 +147,7 @@
/avm/res/search/search-service/ @Azure/avm-res-search-searchservice-module-owners-bicep @Azure/avm-module-reviewers-bicep
/avm/res/service-bus/namespace/ @Azure/avm-res-servicebus-namespace-module-owners-bicep @Azure/avm-module-reviewers-bicep
/avm/res/service-fabric/cluster/ @Azure/avm-res-servicefabric-cluster-module-owners-bicep @Azure/avm-module-reviewers-bicep
/avm/res/service-networking/traffic-controller/ @Azure/avm-res-servicenetworking-trafficcontroller-module-owners-bicep @Azure/avm-module-reviewers-bicep
/avm/res/signal-r-service/signal-r/ @Azure/avm-res-signalrservice-signalr-module-owners-bicep @Azure/avm-module-reviewers-bicep
/avm/res/signal-r-service/web-pub-sub/ @Azure/avm-res-signalrservice-webpubsub-module-owners-bicep @Azure/avm-module-reviewers-bicep
/avm/res/sql/instance-pool/ @Azure/avm-res-sql-instancepool-module-owners-bicep @Azure/avm-module-reviewers-bicep
Expand Down
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/avm_module_issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ body:
- "avm/res/dev-test-lab/lab"
- "avm/res/digital-twins/digital-twins-instance"
- "avm/res/document-db/database-account"
- "avm/res/document-db/mongo-cluster"
- "avm/res/event-grid/domain"
- "avm/res/event-grid/namespace"
- "avm/res/event-grid/system-topic"
Expand Down Expand Up @@ -181,6 +182,7 @@ body:
- "avm/res/search/search-service"
- "avm/res/service-bus/namespace"
- "avm/res/service-fabric/cluster"
- "avm/res/service-networking/traffic-controller"
- "avm/res/signal-r-service/signal-r"
- "avm/res/signal-r-service/web-pub-sub"
- "avm/res/sql/instance-pool"
Expand Down
88 changes: 88 additions & 0 deletions .github/workflows/avm.res.document-db.mongo-cluster.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
name: "avm.res.document-db.mongo-cluster"

on:
workflow_dispatch:
inputs:
staticValidation:
type: boolean
description: "Execute static validation"
required: false
default: true
deploymentValidation:
type: boolean
description: "Execute deployment validation"
required: false
default: true
removeDeployment:
type: boolean
description: "Remove deployed module"
required: false
default: true
customLocation:
type: string
description: "Default location overwrite (e.g., eastus)"
required: false
push:
branches:
- main
paths:
- ".github/actions/templates/avm-**"
- ".github/workflows/avm.template.module.yml"
- ".github/workflows/avm.res.document-db.mongo-cluster.yml"
- "avm/res/document-db/mongo-cluster/**"
- "avm/utilities/pipelines/**"
- "!avm/utilities/pipelines/platform/**"
- "!*/**/README.md"

env:
modulePath: "avm/res/document-db/mongo-cluster"
workflowPath: ".github/workflows/avm.res.document-db.mongo-cluster.yml"

concurrency:
group: ${{ github.workflow }}

jobs:
###########################
# Initialize pipeline #
###########################
job_initialize_pipeline:
runs-on: ubuntu-latest
name: "Initialize pipeline"
steps:
- name: "Checkout"
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: "Set input parameters to output variables"
id: get-workflow-param
uses: ./.github/actions/templates/avm-getWorkflowInput
with:
workflowPath: "${{ env.workflowPath}}"
- name: "Get module test file paths"
id: get-module-test-file-paths
uses: ./.github/actions/templates/avm-getModuleTestFiles
with:
modulePath: "${{ env.modulePath }}"
outputs:
workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }}
moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }}
psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }}
modulePath: "${{ env.modulePath }}"

##############################
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: "Run"
permissions:
id-token: write # For OIDC
contents: write # For release tags
needs:
- job_initialize_pipeline
uses: ./.github/workflows/avm.template.module.yml
with:
workflowInput: "${{ needs.job_initialize_pipeline.outputs.workflowInput }}"
moduleTestFilePaths: "${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}"
psRuleModuleTestFilePaths: "${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}"
modulePath: "${{ needs.job_initialize_pipeline.outputs.modulePath}}"
secrets: inherit
123 changes: 120 additions & 3 deletions avm/ptn/aca-lza/hosting-environment/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ module hostingEnvironment 'br/public:avm/ptn/aca-lza/hosting-environment:<versio

<details>

<summary>via JSON Parameter file</summary>
<summary>via JSON parameters file</summary>

```json
{
Expand Down Expand Up @@ -215,6 +215,41 @@ module hostingEnvironment 'br/public:avm/ptn/aca-lza/hosting-environment:<versio
</details>
<p>

<details>

<summary>via Bicep parameters file</summary>

```bicep-params
using 'br/public:avm/ptn/aca-lza/hosting-environment:<version>'
// Required parameters
param applicationGatewayCertificateKeyName = 'appgwcert'
param enableApplicationInsights = true
param enableDaprInstrumentation = false
param spokeApplicationGatewaySubnetAddressPrefix = '10.1.3.0/24'
param spokeInfraSubnetAddressPrefix = '10.1.0.0/23'
param spokePrivateEndpointsSubnetAddressPrefix = '10.1.2.0/27'
param spokeVNetAddressPrefixes = [
'10.1.0.0/22'
]
param vmAdminPassword = '<vmAdminPassword>'
param vmAdminUsername = 'vmadmin'
param vmJumpBoxSubnetAddressPrefix = '10.1.2.32/27'
param vmLinuxSshAuthorizedKey = 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC9QWdPia7CYYWWX/+eRrLKzGtQ+tjelZfDlbHy/Dg98 [email protected]'
param vmSize = 'Standard_B1s'
// Non-required parameters
param location = '<location>'
param tags = {
environment: 'test'
}
param vmAuthenticationType = 'sshPublicKey'
param vmJumpboxOSType = 'linux'
param workloadName = '<workloadName>'
```

</details>
<p>

### Example 2: _Using a hub and spoke deployment._

This instance deploys the module including a Hub to peer to.
Expand Down Expand Up @@ -267,7 +302,7 @@ module hostingEnvironment 'br/public:avm/ptn/aca-lza/hosting-environment:<versio

<details>

<summary>via JSON Parameter file</summary>
<summary>via JSON parameters file</summary>

```json
{
Expand Down Expand Up @@ -359,6 +394,48 @@ module hostingEnvironment 'br/public:avm/ptn/aca-lza/hosting-environment:<versio
</details>
<p>

<details>

<summary>via Bicep parameters file</summary>

```bicep-params
using 'br/public:avm/ptn/aca-lza/hosting-environment:<version>'
// Required parameters
param applicationGatewayCertificateKeyName = 'appgwcert'
param enableApplicationInsights = true
param enableDaprInstrumentation = false
param spokeApplicationGatewaySubnetAddressPrefix = '10.1.3.0/24'
param spokeInfraSubnetAddressPrefix = '10.1.0.0/23'
param spokePrivateEndpointsSubnetAddressPrefix = '10.1.2.0/27'
param spokeVNetAddressPrefixes = [
'10.1.0.0/22'
]
param vmAdminPassword = '<vmAdminPassword>'
param vmAdminUsername = 'vmadmin'
param vmJumpBoxSubnetAddressPrefix = '10.1.2.32/27'
param vmLinuxSshAuthorizedKey = 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC9QWdPia7CYYWWX/+eRrLKzGtQ+tjelZfDlbHy/Dg98 [email protected]'
param vmSize = 'Standard_B1s'
// Non-required parameters
param deployZoneRedundantResources = true
param enableDdosProtection = true
param environment = 'dev'
param exposeContainerAppsWith = 'applicationGateway'
param hubVirtualNetworkResourceId = '<hubVirtualNetworkResourceId>'
param location = '<location>'
param networkApplianceIpAddress = '<networkApplianceIpAddress>'
param storageAccountType = 'Premium_LRS'
param tags = {
environment: 'test'
}
param vmAuthenticationType = 'sshPublicKey'
param vmJumpboxOSType = 'linux'
param workloadName = '<workloadName>'
```

</details>
<p>

### Example 3: _Using all the available options in WAF aligned values._

This instance deploys the module with the all the available parameters in WAF aligned values.
Expand Down Expand Up @@ -409,7 +486,7 @@ module hostingEnvironment 'br/public:avm/ptn/aca-lza/hosting-environment:<versio

<details>

<summary>via JSON Parameter file</summary>
<summary>via JSON parameters file</summary>

```json
{
Expand Down Expand Up @@ -495,6 +572,46 @@ module hostingEnvironment 'br/public:avm/ptn/aca-lza/hosting-environment:<versio
</details>
<p>

<details>

<summary>via Bicep parameters file</summary>

```bicep-params
using 'br/public:avm/ptn/aca-lza/hosting-environment:<version>'
// Required parameters
param applicationGatewayCertificateKeyName = 'appgwcert'
param enableApplicationInsights = true
param enableDaprInstrumentation = false
param spokeApplicationGatewaySubnetAddressPrefix = '10.1.3.0/24'
param spokeInfraSubnetAddressPrefix = '10.1.0.0/23'
param spokePrivateEndpointsSubnetAddressPrefix = '10.1.2.0/27'
param spokeVNetAddressPrefixes = [
'10.1.0.0/22'
]
param vmAdminPassword = '<vmAdminPassword>'
param vmAdminUsername = 'vmadmin'
param vmJumpBoxSubnetAddressPrefix = '10.1.2.32/27'
param vmLinuxSshAuthorizedKey = 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC9QWdPia7CYYWWX/+eRrLKzGtQ+tjelZfDlbHy/Dg98 [email protected]'
param vmSize = 'Standard_B1s'
// Non-required parameters
param deployZoneRedundantResources = true
param enableDdosProtection = true
param environment = 'dev'
param exposeContainerAppsWith = 'applicationGateway'
param location = '<location>'
param storageAccountType = 'Premium_LRS'
param tags = {
environment: 'test'
}
param vmAuthenticationType = 'sshPublicKey'
param vmJumpboxOSType = 'linux'
param workloadName = '<workloadName>'
```

</details>
<p>

## Parameters

**Required parameters**
Expand Down
Loading

0 comments on commit 6e336b7

Please sign in to comment.