Skip to content

Commit e957a94

Browse files
Merge pull request #228531 from RoseHJM/ade-manage-env-developer-portal
ADE - new article - how to manage environments
2 parents 62bb141 + c5c6057 commit e957a94

13 files changed

+141
-1
lines changed
Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
---
2+
title: Manage your environment
3+
titleSuffix: Azure Deployment Environments
4+
description: Learn how to manage your deployment environments in the developer portal or by using the Azure CLI.
5+
author: RoseHJM
6+
ms.author: rosemalcolm
7+
ms.service: deployment-environments
8+
ms.topic: how-to
9+
ms.date: 02/28/2023
10+
---
11+
12+
# Manage your environment
13+
14+
In Azure Deployment Environments Preview, a dev infrastructure manager gives developers access to projects and the environment types associated with them. Once a developer has access, they can create deployments environments based on the pre-configured environment types. The dev infrastructure manager can also give management permissions to the creator of the environment, like Owner or Contributor.
15+
16+
As a developer, you can create and manage your environments from the developer portal or from the Azure CLI.
17+
18+
## Prerequisites
19+
20+
- Access to a project that has at least one environment type.
21+
- The [Deployment Environments User](how-to-configure-deployment-environments-user.md) role, the [DevCenter Project Admin](how-to-configure-project-admin.md) role, or a [built-in role](../role-based-access-control/built-in-roles.md) that has appropriate permissions.
22+
23+
## Manage an environment by using the developer portal
24+
25+
The developer portal provides a graphical interface for creation and management tasks and provides a visual status for your environments and dev boxes. You can create, redeploy, and delete your environments as needed.
26+
27+
### Create an environment by using the developer portal
28+
29+
1. Sign in to the [developer portal](https://devportal.microsoft.com).
30+
1. From the **New** menu at the top right, select **New environment**.
31+
32+
:::image type="content" source="media/how-to-manage-environments/new-environment.png" alt-text="Screenshot showing the new menu with new environment highlighted.":::
33+
34+
1. In the Add an environment pane, select the following information:
35+
36+
|Field |Value |
37+
|---------|---------|
38+
|Name | Enter a descriptive name for your environment. |
39+
|Project | Select the project you want to create the environment in. If you have access to more than one project, you see a list of the available projects. |
40+
|Type | Select the environment type you want to create. If you have access to more than one environment type, you see a list of the available types. |
41+
|Catalog item | Select the catalog item you want to use to create the environment. You see a list of the catalog items available from the catalogs associated with your dev center. |
42+
43+
:::image type="content" source="media/how-to-manage-environments/add-environment.png" alt-text="Screenshot showing add environment pane.":::
44+
45+
If parameters are defined on the catalog item, you're prompted to enter them on a separate pane. If your environment doesn't use parameters, select Create.
46+
47+
:::image type="content" source="media/how-to-manage-environments/parameter-pane.png" alt-text="Screenshot showing the parameter pane.":::
48+
49+
1. Select **Create**. You see the environment tile in the developer portal immediately, displaying the **Creating...** status while creation is in progress.
50+
51+
1. To view the resources created for the environment, select **Environment Resources**.
52+
53+
:::image type="content" source="media/how-to-manage-environments/environment-resources-link.png" alt-text="Screenshot showing an environment tile with the Environment Resources link highlighted. ":::
54+
55+
1. The environment resources display in the Azure portal.
56+
57+
:::image type="content" source="media/how-to-manage-environments/environment-resources.png" alt-text="Screenshot showing environment resources in the Azure portal.":::
58+
59+
### Redeploy an environment by using the developer portal
60+
61+
When you need to update your environment parameters, you can redeploy it. The redeployment process updates any existing resources with changed properties and creates any new resources from the catalog item in the environment resource group.
62+
63+
1. Sign in to the [developer portal](https://devportal.microsoft.com).
64+
65+
1. On the environment you want to redeploy, from the options menu, select **Redeploy**.
66+
67+
:::image type="content" source="media/how-to-manage-environments/option-redeploy.png" alt-text="Screenshot showing an environment tile with the options menu expanded and the redeploy option selected.":::
68+
69+
1. If parameters are defined on the catalog item, you're prompted to make any changes you want. When you've made your changes, select **Redeploy**.
70+
71+
:::image type="content" source="media/how-to-manage-environments/redeploy-parameters.png" alt-text="Screenshot showing the redeploy parameters pane.":::
72+
73+
1. If your environment doesn't include configurable parameters, you see the Redeploy *environment name* message. Select **Redeploy**.
74+
75+
:::image type="content" source="media/how-to-manage-environments/confirm-redeploy.png" alt-text="Screenshot showing redeploy confirmation message with redeploy highlighted.":::
76+
77+
1. The environment displays the **Redeploying...** status while the redeployment takes place.
78+
79+
1. To view the redeployed resources, select **Environment Resources**.
80+
81+
1. The environment resources display in the Azure portal.
82+
83+
:::image type="content" source="media/how-to-manage-environments/redeployed-resources.png" alt-text="Screenshot showing redeployed resources in the Azure portal.":::
84+
85+
### Delete an environment by using the developer portal
86+
87+
You can delete your environment completely when you don't need it anymore.
88+
89+
1. Sign in to the [developer portal](https://devportal.microsoft.com).
90+
91+
1. On the environment you want to redeploy, from the options menu, select **Delete**.
92+
93+
:::image type="content" source="media/how-to-manage-environments/option-delete.png" alt-text="Screenshot showing an environment tile with the options menu expanded and the delete option selected.":::
94+
95+
1. In the confirmation message, select **Delete**
96+
97+
:::image type="content" source="media/how-to-manage-environments/confirm-delete.png" alt-text="Screenshot showing a confirm deletion message with Delete highlighted.":::
98+
99+
1. The environment tile displays the status **Deleting...** while the deletion is in progress.
100+
101+
## Manage an environment by using the Azure CLI
102+
103+
The Azure CLI provides a command line interface for speed and efficiency when creating multiple similar environments, or for platforms where resources like memory are limited. You can use the following commands to create, list, deploy, or delete an environment.
104+
105+
To learn how to Deployment Environments Azure CLI Extension, refer to [Configure Azure Deployment Environments service using Azure CLI](how-to-configure-use-cli.md).
106+
107+
### Create an environment
108+
109+
```azurecli
110+
az devcenter dev environment create --dev-center-name <devcenter-name> \
111+
--project-name <project-name> --environment-name <environment-name> --environment-type <environment-type-name> \
112+
--catalog-item-name <catalog-item-name> ---catalog-name <catalog-name> \
113+
--parameters <deployment-parameters-json-string>
114+
```
115+
116+
### List environments in a project
117+
118+
```azurecli
119+
az devcenter dev environment list --dev-center-name <devcenter-name> --project-name <project-name>
120+
```
121+
122+
### Deploy an environment
123+
124+
```azurecli
125+
az devcenter dev environment deploy-action --action-id "deploy" --dev-center-name <devcenter-name> \
126+
-g <resource-group-name> --project-name <project-name> --environment-name <environment-name> --parameters <parameters-json-string>
127+
```
128+
129+
### Delete an environment
130+
131+
```azurecli
132+
az devcenter dev environment delete --dev-center-name <devcenter-name> --project-name <project-name> --environment-name <environment-name> --user-id "me"
133+
```
134+
135+
## Next steps
136+
137+
- Learn about configuring Azure Deployment Environments: [Quickstart: Create and configure a dev center](quickstart-create-and-configure-devcenter.md)
138+
- Learn more about managing your environments with the CLI: [Create and access an environment by using the Azure CLI](how-to-create-access-environments.md)
20.1 KB
Loading
11.4 KB
Loading
12.4 KB
Loading
59.8 KB
Loading
85.5 KB
Loading
6.71 KB
Loading
62.6 KB
Loading
62.9 KB
Loading
19.3 KB
Loading

0 commit comments

Comments
 (0)