Giter Club home page Giter Club logo

alz-powershell-module's Introduction

ALZ

license

Logo

Synopsis

This is a PowerShell module that provides a set of cmdlets to create and manage Azure Landing Zones.

Description

This module provides a set of cmdlets to create and manage Azure Landing Zones.

Why

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.

Getting Started

Prerequisites

In order to use this module you will need PowerShell 7.1 or higher. Download and install the latest version from the official PowerShell GitHub releases page: PowerShell Releases

To make PowerShell 7 your default instead of version 5, consider setting an alias. Open a PowerShell session and run the following command:

$PSVersionTable.PSVersion
Set-Alias powershell pwsh

Installation

You can install this module using PowerShellGet.

Install-Module -Name ALZ

Update

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

Quick start

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.

Bicep

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

Terraform

Test-ALZRequirement -IaC "terraform"

This currently tests for:

  • Supported minimum PowerShell version (7.1)
  • Azure CLI

NOTE: Terraform CLI is downloaded as part of the module if you don't already have the latest version.

Azure Landing Zone Environment with Bicep and GitHub Actions Workflows

New-ALZEnvironment -o <output_directory> -i "bicep" -c "github"

Azure Landing Zone Environment with Bicep and Azure DevOps Pipelines

New-ALZEnvironment -o <output_directory> -i "bicep" -c "azuredevops"

Note Azure Devops Pipelines are only supported in v0.2.6 or later.

Azure Landing Zone Environment with Terraform and GitHub Pipelines

New-ALZEnvironment -o <output_directory> -i "terraform" -c "github"

Azure Landing Zone Environment with Terraform and Azure DevOps Pipelines

New-ALZEnvironment -o <output_directory> -i "terraform" -c "azuredevops"

Additional Cmdlets

Update an existing Azure Landing Zone Environment

Downloads and pulls down the specified release version from the remote GitHub repository to a local directory

Get-ALZGithubRelease -i "bicep" -v "v0.14.0" -o "C:\Repos\ALZ\accelerator"

Development

Development Prerequisites

In order to develop this module you will need PowerShell 7.1 or later.

Pre-requisites

# Required to run Invoke-Build
Install-Module -F PSScriptAnalyzer
Install-Module -F InvokeBuild
Install-Module -F Pester

Commands to build locally

# Build and test locally
Remove-Module "ALZ" -Force
Invoke-Build -File .\src\ALZ.build.ps1

Commands to import a build locally

# Install the module locally
Invoke-Build -File .\src\ALZ.build.ps1
Import-Module .\src\Artifacts\ALZ.psd1 -Force

Contributing

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.

Trademarks

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.

alz-powershell-module's People

Contributors

jaredfholgate avatar jtracey93 avatar lovelysandwich avatar luke-taylor avatar microsoft-github-operations[bot] avatar microsoftopensource avatar milescameron-dms avatar nepomuceno avatar ozakari avatar renehezser avatar simone-bennett avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.