Lesson 6 of 6 Infrastructure as Code

Understanding Azure Deployment Environments

This lesson explains the service, which is in the skills measured, and what replaces it after retirement.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe dev centers, projects, catalogs and environment types.
  • Identify the roles that the service uses.
  • State the retirement date.
  • Describe a replacement design.

The problem it addresses

Developers often need a temporary environment to test a branch or demonstrate a feature. If a platform team must build each one, developers wait. If developers are allowed to build whatever they like, costs rise and standards slip. Azure Deployment Environments offers a middle path: a platform team publishes approved templates, and developers create environments from them by themselves, with permissions and subscriptions already set.

Status note. Microsoft has announced that Azure Deployment Environments retires on 22 February 2027, and that create, deploy and redeploy operations are expected to be blocked at that date, with read and delete operations remaining available for a period of clean-up. The service remains in the skills measured at the time of writing, so the concepts below are needed for the exam.

Core concepts

Dev center

A dev center is a collection of projects that need similar settings. Catalogs and environment types are attached to it. It is usually managed by a platform team.

Project

A project represents a team or business function, and it belongs to a single dev center. Developer access is granted on a project.

Catalog

A catalog is a repository of curated IaC templates, stored in GitHub or Azure Repos. It can be attached to a dev center, which makes it available to all its projects, or to a single project.

Environment definition

An environment definition combines an IaC template with a manifest file, environment.yaml, which gives its name and parameters. Bicep and ARM templates are supported, and other tools can be used through custom container images.

Environment type

An environment type represents a stage, such as dev, test, sandbox or production. Dev center types are made available to a project as project environment types, each of which maps to a target subscription, with an identity and the permissions that developers receive in the environment.

Environment

An environment is the resulting collection of Azure resources, on which an application is deployed.

The following diagram shows where each item of Azure Deployment Environments is configured.

Where each Azure Deployment Environments item is configured. The GitHub template repository is a catalog on the dev center and the test stage is an environment type there; each project's project environment type maps it to the dedicated subscription, and developers hold Deployment Environments User on their project.
The scenario is illustrative.
Match the pairs

Azure Deployment Environments concepts

Exam skills 3.5.5

Match each Azure Deployment Environments concept with its definition.

Log in to try this activity Interactive activities are free with an account.

Roles and use

Azure Deployment Environments separates duties through built-in roles. The following table lists them.

RolePurpose
DevCenter OwnerManages the dev center and its catalogs and environment types
DevCenter Project AdminManages a project, and its environment types
Deployment Environments UserCreates and manages their own environments
Deployment Environments ReaderViews environments in a project

Developers create environments through the developer portal, the Azure CLI, or a CI/CD pipeline. A pipeline can create a temporary environment for each pull request, and delete it when the pull request closes. An expiry date can be set, which limits waste.

az devcenter dev environment create \
  --dev-center-name dc-contoso \
  --project-name proj-web \
  --environment-type dev \
  --environment-name feature-login \
  --catalog-name platform-templates \
  --environment-definition-name web-app
Scenario questions

Roles in Azure Deployment Environments

Exam skills 3.5.5

Choose the built-in role for each person.

Log in to try this activity Interactive activities are free with an account.

What to use instead

For new long-term designs, build the same self-service model from general tools. Microsoft's retirement guide points to Azure Resource Manager and Bicep, Azure Verified Modules, and Azure DevOps or GitHub workflows. In practice, a platform team publishes approved Bicep modules, and a workflow with inputs deploys them to a temporary resource group. A workflow_dispatch event gives developers a simple form, a federated identity removes credentials, and a scheduled workflow deletes expired environments. Microsoft Dev Box, sometimes mentioned alongside this service, has a separate retirement date of 18 September 2028.

Teams that already use the service should inventory environments, templates, catalogs and workflows, then move them before the retirement date.

Select all that apply

Self-service without the retiring service

Exam skills 3.5.5

Pick the parts of a replacement self-service design for new long-term work.

Log in to try this activity Interactive activities are free with an account.
Worked example

Reading the concepts

A platform team wants developers in three projects to create approved test environments, in a dedicated subscription, using templates stored in GitHub. Assume that the organization uses Azure Deployment Environments. Where is each item configured?

The GitHub repository of templates is attached as a catalog, normally on the dev center, so all three projects can use it. The test stage is an environment type on the dev center, and each project's project environment type maps it to the dedicated subscription. Developers receive the Deployment Environments User role on their project. If this were a new design, you should also point out that the service retires on 22 February 2027.

Check yourself

Which item maps an environment type to a target subscription?

Show answer

A project environment type. It also sets the identity and the permissions that developers receive.

Exam Tips

Remember for the exam

  • Azure Deployment Environments retires on 22 February 2027.
  • A dev center groups projects, catalogs and environment types.
  • A catalog is a Git repository of environment definitions.
  • A project environment type maps to a target subscription.
  • Developers need the Deployment Environments User role.