Skip to content
Open
Show file tree
Hide file tree
Changes from 23 commits
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
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
/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/edge/site/ @Azure/avm-res-edge-site-module-owners-bicep @Azure/avm-module-reviewers-bicep
/avm/res/elastic-san/elastic-san/ @Azure/avm-res-elasticsan-elasticsan-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
Expand Down
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/avm_module_issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ body:
- "avm/res/digital-twins/digital-twins-instance"
- "avm/res/document-db/database-account"
- "avm/res/document-db/mongo-cluster"
- "avm/res/edge/site"
- "avm/res/elastic-san/elastic-san"
- "avm/res/event-grid/domain"
- "avm/res/event-grid/namespace"
Expand Down
89 changes: 89 additions & 0 deletions .github/workflows/avm.res.edge.site.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
name: "avm.res.edge.site"

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.edge.site.yml"
- "avm/res/edge/site/**"
- "utilities/pipelines/**"
- "!utilities/pipelines/platform/**"
- "!*/**/child-module-publish-allowed-list.json"
- "!*/**/README.md"

env:
modulePath: "avm/res/edge/site"
workflowPath: ".github/workflows/avm.res.edge.site.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
34 changes: 34 additions & 0 deletions avm/res/edge/site/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Microsoft Edge Site (Multi-Scope) `[Microsoft.Edge/sites]`

This module's child-modules deploy a Microsoft Edge Site at a Subscription (sub-scope) or Resource Group (rg-scope) scope.

> While this template is **not** published, you can find the actual published modules in the subfolders
> - `sub-scope`
> - `rg-scope`



## Navigation

- [Resource Types](#Resource-Types)
- [Usage examples](#Usage-examples)
- [Parameters](#Parameters)
- [Outputs](#Outputs)

## Resource Types

_None_

## Usage examples

**Note**: This is a multi-scoped module. This means, you will find the 'Usage Examples' in the documentation of the correspondingly scoped child modules:
- `/rg-scope/README.md`
- `/sub-scope/README.md`

## Parameters

_None_

## Outputs

_None_
13 changes: 13 additions & 0 deletions avm/res/edge/site/main.bicep
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
targetScope = 'subscription'

// This module supports both subscription and resource group scope deployments
// Use the deploymentScope parameter to specify which scope to use
metadata name = 'Microsoft Edge Site (Multi-Scope)'
metadata description = '''
This module's child-modules deploy a Microsoft Edge Site at a Subscription (sub-scope) or Resource Group (rg-scope) scope.

> While this template is **not** published, you can find the actual published modules in the subfolders
> - `sub-scope`
> - `rg-scope`

'''
14 changes: 14 additions & 0 deletions avm/res/edge/site/main.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.37.4.10188",
"templateHash": "109047849730473759"
},
"name": "Microsoft Edge Site (Multi-Scope)",
"description": "This module's child-modules deploy a Microsoft Edge Site at a Subscription (sub-scope) or Resource Group (rg-scope) scope.\n\n> While this template is **not** published, you can find the actual published modules in the subfolders\n> - `sub-scope`\n> - `rg-scope`\n\n"
},
"resources": []
}
13 changes: 13 additions & 0 deletions avm/res/edge/site/rg-scope/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Changelog

The latest version of the changelog can be found [here](https://github.com/Azure/bicep-registry-modules/blob/main/avm/res/edge/site/rg-scope/CHANGELOG.md).

## 0.1.0

### Changes

- Initial version

### Breaking Changes

- None
Loading