This is a PowerShell module that provides a set of cmdlets to create and manage Azure Landing Zones.
This module provides a set of cmdlets to create and manage Azure Landing Zones.
The goal of this project it is to make easy to get started with Azure Landing Zones and to speed up some basic tasks that you would need to perform whilst managing your Azure Landing Zones.
In order to use this module you will need PowerShell 7.1 or higher.
You can install this module using PowerShellGet.
Install-Module -Name ALZ
Whenever a new release from the module has been released, you can update it easily. The changelog can be found here.
# find out which version you have installed
PS C:\Users\you> Get-InstalledModule -Name ALZ
Version Name Repository Description
------- ---- ---------- -----------
0.2.6 ALZ PSGallery Azure Landing Zones Powershell Module
# update to the latest version
Update-Module -Name ALZ
Before you start you can utilize the functionality of the module to verify if you have all the prerequisites installed with the built in command.
Test-ALZRequirement -IaC "bicep"
Currently this tests for:
- Supported minimum PowerShell version (7.1)
- Supported minimum Az PowerShell module version (10.0.0)
- Git
- Azure CLI
- Bicep
- Visual Studio Code
Test-ALZRequirement -IaC "terraform"
This currently tests for:
- Supported minimum PowerShell version (7.1)
- Git
- Azure CLI
- Terraform CLI
New-ALZEnvironment -o <output_directory> -IaC "bicep" -cicd "github
New-ALZEnvironment -o <output_directory> -IaC "bicep" -cicd "azuredevops"
Note Azure Devops Pipelines are only supported in v0.2.6 or later.
New-ALZEnvironment -o <output_directory> -IaC "terraform" -cicd "github"
New-ALZEnvironment -o <output_directory> -IaC "terraform" -cicd "azuredevops"
Downloads and pulls down the specified release version from the remote GitHub repository to a local directory
Get-ALZGithubRelease -githubRepoUrl "https://github.com/Azure/ALZ-Bicep" -releases "v0.14.0" -directoryForReleases "C:\Repos\ALZ\accelerator\upstream-releases\"
In order to develop this module you will need PowerShell 7.1 or later.
# Required to run Invoke-Build
Install-Module -F PSScriptAnalyzer
Install-Module -F InvokeBuild
Install-Module -F Pester
# Build and test locally
Remove-Module "ALZ" -Force
Invoke-Build -File .\src\ALZ.build.ps1
# Install the module locally
Invoke-Build -File .\src\ALZ.build.ps1
Import-Module .\src\Artifacts\ALZ.psd1 -Force
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.