Skip to content

Commit

Permalink
Merge branch 'main' into fix/sentinel-pricing
Browse files Browse the repository at this point in the history
  • Loading branch information
jtracey93 committed Jul 21, 2023
2 parents 5084ab8 + e594962 commit 693a84b
Show file tree
Hide file tree
Showing 16 changed files with 49 additions and 49 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ALZ-Bicep-1 Workflow
name: ALZ-Bicep-1-Core

trigger:
# YAML PR triggers are supported only in GitHub and Bitbucket Cloud.
Expand Down Expand Up @@ -34,7 +34,7 @@ variables:
IS_PULL_REQUEST: "false"

jobs:
- job: ALZ_Bicep_1_Workflow_Job
- job: ALZ_Bicep_1_Core
pool:
vmImage: ubuntu-latest
steps:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ALZ-Bicep-2 Workflow
name: ALZ-Bicep-2-PolicyAssignments

trigger:
# YAML PR triggers are supported only in GitHub and Bitbucket Cloud.
Expand All @@ -24,7 +24,7 @@ variables:
IS_PULL_REQUEST: "false"

jobs:
- job: ALZ_Bicep_2_Workflow_Job
- job: ALZ_Bicep_2_PolicyAssignments
pool:
vmImage: ubuntu-latest
steps:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ALZ-Bicep-3 Workflow
name: ALZ-Bicep-3-SubPlacement

trigger:
# YAML PR triggers are supported only in GitHub and Bitbucket Cloud.
Expand All @@ -24,7 +24,7 @@ variables:
IS_PULL_REQUEST: "false"

jobs:
- job: ALZ_Bicep_3_Workflow_Job
- job: ALZ_Bicep_3_SubPlacement
pool:
vmImage: ubuntu-latest
steps:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ALZ-Bicep-4a Workflow
name: ALZ-Bicep-4A-HubSpoke

trigger:
# YAML PR triggers are supported only in GitHub and Bitbucket Cloud.
Expand Down Expand Up @@ -26,7 +26,7 @@ variables:
IS_PULL_REQUEST: "false"

jobs:
- job: ALZ_Bicep_4a_Workflow_Job
- job: ALZ_Bicep_4A_HubSpoke
pool:
vmImage: ubuntu-latest
steps:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ALZ-Bicep-4b Workflow
name: ALZ-Bicep-4B-VWAN

trigger:
# YAML PR triggers are supported only in GitHub and Bitbucket Cloud.
Expand Down Expand Up @@ -26,7 +26,7 @@ variables:
IS_PULL_REQUEST: "false"

jobs:
- job: ALZ_Bicep_4b_Workflow_Job
- job: ALZ_Bicep_4b_VWAN
pool:
vmImage: ubuntu-latest
steps:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ALZ-Bicep-PR-1 Workflow
name: ALZ-Bicep-PR1-Build

trigger: none
# YAML PR triggers are supported only in GitHub and Bitbucket Cloud.
Expand All @@ -14,8 +14,8 @@ pr:
- "**.bicep"

jobs:
- job: pr_lint
displayName: Bicep Build & Lint All Modules
- job: ALZ_Bicep_PR1_Build
displayName: Bicep Build & Lint All Bicep Modules
pool:
vmImage: ubuntu-latest
steps:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ALZ-Bicep-PR-2 Workflow
name: ALZ-Bicep-PR2-Lint

trigger: none
# YAML PR triggers are supported only in GitHub and Bitbucket Cloud.
Expand All @@ -10,7 +10,7 @@ pr:
- "main"

jobs:
- job: pr_lint
- job: ALZ_Bicep_PR2_Lint
displayName: Lint Code Base (except Bicep Modules and Files)
pool:
vmImage: ubuntu-latest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ALZ-Bicep-1 Workflow
name: ALZ-Bicep-1-Core

on:
push:
Expand Down Expand Up @@ -26,7 +26,7 @@ env:
IS_PULL_REQUEST: "${{ github.event_name == 'pull_request' }}"

jobs:
ALZ_Bicep_1_Workflow_Job:
ALZ_Bicep_1_Core:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ALZ-Bicep-2 Workflow
name: ALZ-Bicep-2-PolicyAssignments

on:
push:
Expand All @@ -21,7 +21,7 @@ env:
IS_PULL_REQUEST: "${{ github.event_name == 'pull_request' }}"

jobs:
ALZ_Bicep_2_Workflow_Job:
ALZ_Bicep_2_PolicyAssignments:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ALZ-Bicep-3 Workflow
name: ALZ-Bicep-3-SubPlacement

on:
push:
Expand All @@ -21,7 +21,7 @@ env:
IS_PULL_REQUEST: "${{ github.event_name == 'pull_request' }}"

jobs:
ALZ_Bicep_3_Workflow_Job:
ALZ_Bicep_3_SubPlacement:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ALZ-Bicep-4a Workflow
name: ALZ-Bicep-4A-HubSpoke

on:
push:
Expand All @@ -22,7 +22,7 @@ env:
IS_PULL_REQUEST: "${{ github.event_name == 'pull_request' }}"

jobs:
ALZ_Bicep_4a_Workflow_Job:
ALZ_Bicep_4a_HubSpoke:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ALZ-Bicep-4b Workflow
name: ALZ-Bicep-4B-VWAN

on:
push:
Expand All @@ -22,7 +22,7 @@ env:
IS_PULL_REQUEST: "${{ github.event_name == 'pull_request' }}"

jobs:
ALZ_Bicep_4b_Workflow_Job:
ALZ_Bicep_4b_VWAN:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ALZ-Bicep-PR-1 Workflow
name: ALZ-Bicep-PR1-Build

on:
pull_request:
Expand All @@ -14,7 +14,7 @@ permissions:
contents: read

jobs:
pr_lint:
ALZ_Bicep_PR1_Build:
name: Bicep Build & Lint All Modules
runs-on: ubuntu-latest
steps:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ALZ-Bicep-PR-2 Workflow
name: ALZ-Bicep-PR2-Lint

on:
pull_request:
Expand All @@ -7,7 +7,7 @@ on:
workflow_dispatch: {}

jobs:
pr_lint:
ALZ_Bicep_PR2_Lint:
name: Lint Code Base (except Bicep Modules and Files)
runs-on: ubuntu-latest
steps:
Expand Down
40 changes: 20 additions & 20 deletions docs/wiki/Accelerator.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ We attempted to make the pipelines as flexible as possible while also reducing o
The only thing that differs across the workflows is which ALZ Bicep modules are deployed as shown in the following table:

| Workflow Name | Modules Deployed |
| Workflow/Pipeline Name | Modules Deployed |
|------------------------- |-------------------------------|
| ALZ-Bicep-1 Workflow | Management Groups Deployment, Logging and Sentinel Resource Group Deployment, Logging and Sentinel Deployment, Custom Policy Definitions Deployment, Custom Management Group Diagnostic Settings
| ALZ-Bicep-2 Workflow | Built-in and Custom Policy Assignments Deployment
| ALZ-Bicep-3 Workflow | Deploy Subscription Placement
| ALZ-Bicep-4a Workflow | Connectivity Resource Group Deployment, Hub (Hub-and-Spoke) Deployment
| ALZ-Bicep-4b Workflow | Connectivity Resource Group Deployment, Hub (VWAN) Deployment
| ALZ-Bicep-1-Core | Management Groups Deployment, Logging and Sentinel Resource Group Deployment, Logging and Sentinel Deployment, Custom Policy Definitions Deployment, Custom Management Group Diagnostic Settings
| ALZ-Bicep-2-PolicyAssignments | Built-in and Custom Policy Assignments Deployment
| ALZ-Bicep-3-SubPlacement| Deploy Subscription Placement
| ALZ-Bicep-4A-HubSpoke| Connectivity Resource Group Deployment, Hub (Hub-and-Spoke) Deployment
| ALZ-Bicep-4B-VWAN | Connectivity Resource Group Deployment, Hub (VWAN) Deployment

### Getting Started if you're using GitHub Actions

Expand Down Expand Up @@ -80,8 +80,8 @@ In order to setup the Accelerator framework with the production GitHub Action Wo
> **Note:**
> If the directory structure specified for the output location does not exist, the module will create the directory structure programatically.
1. Depending upon your preferred [network topology deployment](https://github.com/Azure/Enterprise-Scale/wiki/ALZ-Setup-azure#2-grant-access-to-user-andor-service-principal-at-root-scope--to-deploy-enterprise-scale-reference-implementation), remove the associated workflow file for each deployment model
- Traditional VNet Hub and Spoke = .github\workflows\alz-bicep-4a.yml
- Virtual WAN = .github\workflows\alz-bicep-4b.yml
- Traditional VNet Hub and Spoke = .github\workflows\alz-bicep-4a-hubspoke.yml
- Virtual WAN = .github\workflows\alz-bicep-4b-vwan.yml

> **Note:**
> These workflow files and associated deployment scripts will be programatically removed in the future.
Expand Down Expand Up @@ -131,10 +131,10 @@ In order to setup the Accelerator framework with the production GitHub Action Wo
1. [Create RBAC Assignment for the application/service principal](https://github.com/Azure/Enterprise-Scale/wiki/ALZ-Setup-azure#2-grant-access-to-user-andor-service-principal-at-root-scope--to-deploy-enterprise-scale-reference-implementation)

1. All workflows are now ready to be deployed! For the initial deployment, manually trigger each workflow in the following order
1. ALZ-Bicep-1 Workflow
1. ALZ-Bicep-2 Workflow
1. ALZ-Bicep-3 Workflow
1. ALZ-Bicep-4a Workflow or ALZ-Bicep-4b Workflow
1. ALZ-Bicep-1-Core
1. ALZ-Bicep-2-PolicyAssignments
1. ALZ-Bicep-3-SubPlacement
1. ALZ-Bicep-4A-HubSpoke or ALZ-Bicep-4B-VWAN

1. As part of the [branching strategy](#incoporating-a-branching-strategy), setup the branch protection rules against the main branch with the following selected as a starting point:

Expand Down Expand Up @@ -179,8 +179,8 @@ In order to setup the Accelerator framework with the production ready Azure DevO
> **Note:**
> If the directory structure specified for the output location does not exist, the module will create the directory structure programatically.
1. Depending upon your preferred [network topology deployment](https://github.com/Azure/Enterprise-Scale/wiki/ALZ-Setup-azure#2-grant-access-to-user-andor-service-principal-at-root-scope--to-deploy-enterprise-scale-reference-implementation), remove the associated workflow file for each deployment model
- Traditional VNet Hub and Spoke = .azuredevops\workflows\alz-bicep-4a.yml
- Virtual WAN = .azuredevops\workflows\alz-bicep-4b.yml
- Traditional VNet Hub and Spoke = .azuredevops\workflows\alz-bicep-4a-hubspoke.yml
- Virtual WAN = .azuredevops\workflows\alz-bicep-4b-vwan.yml

> **Note:**
> These workflow files and associated deployment scripts will be programatically removed in the future.
Expand Down Expand Up @@ -227,10 +227,10 @@ In order to setup the Accelerator framework with the production ready Azure DevO
1. [Assign pipeline permissions to access the Service Connection you created previously](https://learn.microsoft.com/en-us/azure/devops/pipelines/library/service-endpoints?view=azure-devops&tabs=yaml#pipeline-permissions) ```
1. All pipelines are now ready to be deployed! For the initial deployment, manually trigger each workflow in the following order
1. ALZ-Bicep-1 Workflow
1. ALZ-Bicep-2 Workflow
1. ALZ-Bicep-3 Workflow
1. ALZ-Bicep-4a Workflow or ALZ-Bicep-4b Workflow
1. ALZ-Bicep-1-Core
1. ALZ-Bicep-2-PolicyAssignments
1. ALZ-Bicep-3-SubPlacement
1. ALZ-Bicep-4A-HubSpoke or ALZ-Bicep-4B-VWAN
1. As part of the [branching strategy](#incoporating-a-branching-strategy), setup the branch protection rules against the main branch with the following selected as a starting point:
Expand All @@ -254,8 +254,8 @@ As part of the framework, we include two PR workflows. The pipelines will perfor
| Workflow Name | Trigger | Tasks |
|-------------------------|-----------|---------------------|
| ALZ-Bicep-PR-1 Workflow | Pull request against main branch and changes to any Bicep file or Bicep config file. | Checks to see if there are any modified or custom modules residing within the config\custom-modules directory and if so, the workflow will lint the modules and ensure they can compile.
| ALZ-Bicep-PR-2 Workflow | Pull request against main branch. | Using [Super-Linter](https://github.com/github/super-linter), the workflow will lint everything in the codebase apart from the Bicep modules/files.
| ALZ-Bicep-PR1-Build | Pull request against main branch and changes to any Bicep file or Bicep config file. | Checks to see if there are any modified or custom modules residing within the config\custom-modules directory and if so, the workflow will lint the modules and ensure they can compile.
| ALZ-Bicep-PR2-Lint | Pull request against main branch. | Using [Super-Linter](https://github.com/github/super-linter), the workflow will lint everything in the codebase apart from the Bicep modules/files.
### Upgrading ALZ-Bicep Versions
Expand Down
Binary file modified docs/wiki/media/alz-bicep-accelerator-tree-output.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 693a84b

Please sign in to comment.