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

Scripts to generate config from template, support JSON config intellisense in editors, fix bugs in deployment scripts #379

Merged
merged 29 commits into from
Jul 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
b1f0156
test config file set
skeeler Mar 30, 2023
4be2a87
debug settings for trigger subscription
skeeler Mar 30, 2023
23364eb
test trigger subscription
skeeler Mar 30, 2023
9d1eb2d
test 2 trigger subscription
skeeler Mar 30, 2023
59799d6
remove subscription config
skeeler Mar 30, 2023
ac5a1d9
trigger subscription config on add
skeeler Mar 30, 2023
b1db339
delete 2 subscription config
skeeler Mar 30, 2023
afd4e2f
add 2 subscription config
skeeler Mar 30, 2023
3b69bef
update rest api version
skeeler Mar 31, 2023
e761af8
trigger subscription pipeline
skeeler Mar 31, 2023
41edb99
fix Invoke-RestMethod call
skeeler Mar 31, 2023
21f61c2
remove sub for testing
skeeler Mar 31, 2023
1a48e48
trigger subscription pipeline by adding config
skeeler Mar 31, 2023
ce12674
trigger subscription pipeline by modifying config
skeeler Mar 31, 2023
e34167d
reset rest api version to original
skeeler Mar 31, 2023
1484180
revert deploy on to modified only
skeeler Mar 31, 2023
6e3d390
fix issues in deployment functions
skeeler Mar 31, 2023
bd0dc92
fix issues in onboarding scripts
skeeler Mar 31, 2023
836fe67
new automation scripts
skeeler Mar 31, 2023
80d5fa9
fix to remove identity configuration
skeeler Jun 8, 2023
3b6a2df
initial automation documentation
skeeler Jun 8, 2023
7234803
Merge branch 'main' into skeeler-quicksetup
skeeler Jun 8, 2023
77c60e7
rename `automation` to `configuration`
skeeler Jun 8, 2023
f4944cc
final draft
skeeler Jul 9, 2023
3d5f821
rename CanadaESLZ to CanadaPubSecALZ
skeeler Jul 9, 2023
b81e792
fix regex pattern
skeeler Jul 9, 2023
723a493
update toc
skeeler Jul 9, 2023
3b99142
CanadaPubSecALZ-main replaced CanadaESLZ-main
skeeler Jul 9, 2023
ea7fef6
reset to original trigger condition
skeeler Jul 10, 2023
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
2 changes: 1 addition & 1 deletion .github/workflows/0-everything.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ on:
required: false
environmentName:
type: string
description: Environment name (optional), e.g. CanadaESLZ-main
description: Environment name (optional), e.g. CanadaPubSecALZ-main
required: false

defaults:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/1-management-groups.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
inputs:
environmentName:
type: string
description: Environment name (optional), e.g. CanadaESLZ-main
description: Environment name (optional), e.g. CanadaPubSecALZ-main
required: false

defaults:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/2-roles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
inputs:
environmentName:
type: string
description: Environment name (optional), e.g. CanadaESLZ-main
description: Environment name (optional), e.g. CanadaPubSecALZ-main
required: false

defaults:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/3-logging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
inputs:
environmentName:
type: string
description: Environment name (optional), e.g. CanadaESLZ-main
description: Environment name (optional), e.g. CanadaPubSecALZ-main
required: false

defaults:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/4-policy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
inputs:
environmentName:
type: string
description: Environment name (optional), e.g. CanadaESLZ-main
description: Environment name (optional), e.g. CanadaPubSecALZ-main
required: false

defaults:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/5-azure-firewall-policy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
inputs:
environmentName:
type: string
description: Environment name (optional), e.g. CanadaESLZ-main
description: Environment name (optional), e.g. CanadaPubSecALZ-main
required: false

defaults:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/5-hub-network-with-azure-firewall.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
inputs:
environmentName:
type: string
description: Environment name (optional), e.g. CanadaESLZ-main
description: Environment name (optional), e.g. CanadaPubSecALZ-main
required: false

defaults:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/5-hub-network-with-nva.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
inputs:
environmentName:
type: string
description: Environment name (optional), e.g. CanadaESLZ-main
description: Environment name (optional), e.g. CanadaPubSecALZ-main
required: false

defaults:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/6-identity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
inputs:
environmentName:
type: string
description: Environment name (optional), e.g. CanadaESLZ-main
description: Environment name (optional), e.g. CanadaPubSecALZ-main
required: false

defaults:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/7-subscriptions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ on:
required: true
environmentName:
type: string
description: Environment name (optional), e.g. CanadaESLZ-main
description: Environment name (optional), e.g. CanadaPubSecALZ-main
required: false

defaults:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
experiments/*
**/*.swp
**/*.diff
.vscode/*
/*.sh
/*.ps1
Expand Down
6 changes: 5 additions & 1 deletion .pipelines/templates/jobs/trigger-subscriptions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,17 @@ jobs:
{
$url = "$($env:SYSTEM_TEAMFOUNDATIONCOLLECTIONURI)$env:SYSTEM_TEAMPROJECTID/_apis/pipelines/$($env:SYSTEM_DEFINITIONID)/runs?api-version=6.0-preview.1"
Write-Host "Invoking pipeline definition with URL: $url"
$paths = $env:SUBSCRIPTION_CHANGES -split ','
$guids = $paths -replace '.*?([0-9a-f]{8}[-]?([0-9a-f]{4}[-]?){3}[0-9a-f]{12}).*', '$1'
$changes = $guids -join ','
$body = @"
{
"templateParameters": {
"subscriptions":"[$env:SUBSCRIPTION_CHANGES]"
"subscriptions":"[$changes]"
},
}
"@
Write-Host "Invoking pipeline definition with body: $body"
$headers = @{ Authorization = "Bearer $env:SYSTEM_ACCESSTOKEN" }
$pipeline = Invoke-RestMethod -Uri $url -Headers $headers -Method Post -Body $body -ContentType application/json
Write-Host "Pipeline invocation result = $($pipeline | ConvertTo-Json -Depth 100)"
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ See the following onboarding guides for setup instructions:
* [Azure DevOps Setup](docs/onboarding/azure-devops-setup.md) provides guidance on considerations and recommended practices when creating and configuring your Azure DevOps Services environment.
* [Azure DevOps Scripts](docs/onboarding/azure-devops-scripts.md) provides guidance on the scripts available to help simplify the onboarding process to Azure Landing Zones design using Azure DevOps pipelines.
* [Azure DevOps Pipelines](docs/onboarding/azure-devops-pipelines.md) provides guidance on the manual steps for onboarding to the Azure Landing Zones design using Azure DevOps Pipelines.
* [Configuration Scripts](docs/onboarding/configuration-scripts.md) provides guidance on the scripts available to help simplify the configuration process of the Azure Landing Zones design.

## Goals

Expand Down
170 changes: 0 additions & 170 deletions config/identity/CanadaESLZ-main/identity.parameters.json

This file was deleted.

Loading