forked from Azure/bicep-registry-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/Azure/bicep-registry-modules
- Loading branch information
Showing
245 changed files
with
46,531 additions
and
894 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains 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
This file contains 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
This file contains 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
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 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
{ | ||
|
@@ -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. | ||
|
@@ -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 | ||
{ | ||
|
@@ -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. | ||
|
@@ -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 | ||
{ | ||
|
@@ -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** | ||
|
Oops, something went wrong.