Skip to content
rjnmylife edited this page Nov 7, 2021 · 3 revisions

What is an Enterprise scale Azure Landing zone?

An Enterprise scale landing zone is an Azure environment which is created to quickly onboard applications. A landing zone can be broadly categorized as follows: Platform landing zone and Application landing zone.

A Platform Landing zone is created to set up the Azure Platform components, which comprises of the following:

  • Identity and Enterprise-scale Priviledged Access management
  • EA and Azure AD tenants
  • Management Groups ans Subscription organization
  • Network topology and connectivity
  • Management and Monitoring
  • Business Continuity and Disaster recovery
  • Security Governance and Compliance
  • Platform Automation and DevOps

The application infrastructure (compute resources, databases etc.), is deployed after the platform landing zone is created. We follow an iterative agile approach to create the baseline platform landing zone, prior to creating the application hosting infrastructure.

Layered approach

For ease of operations, we categorize the Enterprise-scale Landing zone into 'levels'. Broadly levels comprise of (but not limited to) the following components:

Level Type of resources
Level 0 - Components for manual to automation;
eg: storage of Terraform state files
- MSI, Service principals
- Azure AD Groups
- RBAC permissions
- Secrets storage
Level 1 - Management Groups
- Azure Policies
- Subscription organization
- Custom Azure RBAC roles
- Shared services
- DevOps integration
Level 2 - Networking resources
Level 3 - Application hosting servers
- Database layer
Level 4 - Application layer

Each level has its own respective Terraform states, identities with required RBAC to perform deployment.

Having individual Terraform states enables multiple deployments to run at once using their respective state files.

Having separate identities enables us to employ principle of least priviledge and avoid priviledge escalation between levels.

To learn more about layered approach, follow the published guidance for CAF Enterprise scale layered architecture.

Automation

The goal is to deploy the resources in Azure using an automated approach, which will make scalability and operations easier.

We need to integrate the repository with a DevOps platform of choice. Currently the CAF Terraform modules have integration with Azure DevOps, Github, Gitlab, Bamboo.

The deployment automation is achieved through implementing Continuous Integration/Continuous Deployment (CI/CD). We configure dedicated self-hosted environment in the DevOps solution, to run a CI/CD pipeline job.

Refer the code for Azure DevOps integration.

The repository shared within this project covers the deployment of Enterprise scale landing-zone from levels 0 till 2 (excludes the DevOps integration).

Getting Started

To start adopting your first landing zone in Azure, you will need the following:

  • An Azure subscription with credits
  • A Developement environment

For the Azure subscription, you can use the MSDN subscription or AIRS credits that is available for Microsoft FTEs.

As for the developer environment, for the demo envioronment, you can create a Windows 10 vurtual machine in Azure.

To setup the Dev environment we will need the following tools:

You can individually download and install the tools or use Chocolatey package to install using command line. The command to install using cmd line is:

choco install git vscode docker-desktop

Note:

Docker desktop v4 (latest) has a bug. This is why the recommended version to use is 3.5.2.

Post installation of tools, clone this repository to a directory within the VM using the Powershell command:

git clone https://github.com/rjnmylife/demo_landingzone.git

Next, go to the folder where you cloned the repository, right-click and open with VSCode.

Install the following extensions within VSCode:

  • Remote-Containers
  • Remote-WSL
  • Hashicorp Terraform

Make sure that Docker desktop is running before proceeding to the next step.

Next, click on the green button on the bottom left corner of the VSCode window, and click on 'Reopen in container'.

The VSCode extension will take a few seconds to load the docker-compose.yml file having the container image details.

VSCode will then pull the image and build the container with the rover image we have mentioned within docker-compose.yml file. This process usually takes several minutes when setting up the container for the repository the first time.

Next, we can open a new Bash terminal within VSCode and run the following command to login to Azure:

rover login

#Or use az:

az login --tenant "tenant-id"
az account set --subscription "subscription-id"

To proceed, follow the Deployment steps listed here.

Clone this wiki locally