Skip to content

Commit 5633827

Browse files
oZakaripicccardjtracey93
authored
Feature: Add Support for Azure DevOps Pipelines (#60)
# Pull Request ## Issue Add option to choose CI/CD platform (Github | Azure Devops). Default being Github. Issue #, if available: ## Description Description of changes: - added new parameter `alzCicdPlatform` to New-ALZEnvironment.ps1 @picccard - moved accelerator readme to be the first reference @picccard @picccard - moved yml files for CI/CD to its own property in the config file @picccard - added v0.15.0 config file and updated all references within module - updated readme.md with example for New-ALZEnvironment with Azure Pipelines ## Breaking changes This feature will not break any functionality, as the parameter has 'github' as default. If you were to run the accelerator with the parameter set to 'azuredevops' you would only see the [this warning](https://github.com/Azure/ALZ-PowerShell-Module/blob/11c0b6f66bc3f31de660167f237ddbc28370f553/src/ALZ/Private/Copy-ALZParametersFile.ps1#L29) telling you the files are not found and end up without any .azuredevops folder in the desired OutputDirectory / alzEnvironmentDestination ## License By submitting this pull request, I confirm that my contribution is made under the terms of the projects associated license. --------- Co-authored-by: Eskil Uhlving Larsen <7443949+picccard@users.noreply.github.com> Co-authored-by: Jack Tracey <41163455+jtracey93@users.noreply.github.com>
1 parent 7205552 commit 5633827

9 files changed

Lines changed: 595 additions & 9 deletions

File tree

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,19 @@ Currently this tests for:
4646
* Azure CLI
4747
* Bicep
4848

49-
#### Create a new Azure Landing Zone Environment
49+
#### Create a new Azure Landing Zone Environment with GitHub Actions Workflows
5050

5151
```powershell
5252
New-ALZEnvironment -o <output_directory>
5353
```
5454

55+
#### Azure Landing Zone Environment with Azure DevOps Pipelines
56+
```powershell
57+
New-ALZEnvironment -o <output_directory> -cicd "azuredevops"
58+
```
59+
> **Note**
60+
> Azure Devops Pipelines are only supported in v0.2.6 or later.
61+
5562
## Additonal Cmdlets
5663

5764
### Update an existing Azure Landing Zone Environment
@@ -60,14 +67,14 @@ New-ALZEnvironment -o <output_directory>
6067

6168

6269
```powershell
63-
Get-ALZGithubRelease -githubRepoUrl "https://github.com/Azure/ALZ-Bicep" -releases "v0.13.0" -directoryForReleases "C:\Repos\ALZ\accelerator\upstream-releases\"
70+
Get-ALZGithubRelease -githubRepoUrl "https://github.com/Azure/ALZ-Bicep" -releases "v0.14.0" -directoryForReleases "C:\Repos\ALZ\accelerator\upstream-releases\"
6471
```
6572

6673
## Development
6774

6875
### Development Prerequisites
6976

70-
In order to develop this module you will need PowerShell 7.1 or higher.
77+
In order to develop this module you will need PowerShell 7.1 or later.
7178

7279
### Commands to install a build locally
7380

src/ALZ.Settings.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
[version]$script:requiredPSVersion = '5.1.0'
33

44
# specify the supported versions of ALZ-Bicep
5-
$script:ALZBicepSupportedReleases = @('v0.14.0')
5+
$script:ALZBicepSupportedReleases = @('v0.14.0', 'v0.15.0')

src/ALZ/Assets/alz-bicep-config/v0.14.0.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,4 +519,4 @@
519519
]
520520
}
521521
}
522-
}
522+
}

0 commit comments

Comments
 (0)