You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/deployment-environments/how-to-schedule-environment-deletion.md
+28-4Lines changed: 28 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ author: RoseHJM
5
5
ms.author: rosemalcolm
6
6
ms.service: deployment-environments
7
7
ms.topic: how-to
8
-
ms.date: 11/10/2023
8
+
ms.date: 02/23/2024
9
9
10
10
# Customer intent: As a developer, I want automatically delete my environment on a specific date so that I can keep resources current.
11
11
@@ -17,10 +17,14 @@ In this article, you learn how to set an expiration, or end date for a deploymen
17
17
18
18
Working with many deployment environments across multiple projects can be challenging. Scheduled deletion helps you manage your environments by automatically deleting them on a specific date at a specific time. Using automatic expiry and deletion helps you keep track of your active and inactive environments and helps you avoid paying for environments that you no longer need.
19
19
20
+
As a developer, you can view and schedule the expiration dates for your environment through the developer portal. You can schedule an environment for deletion when you create it, or at a later time. You can also change the expiration date and time for an environment that you created.
21
+
22
+
Deployment Environments provides platform engineers with a centralized way of viewing and managing deletion schedules for environments in Azure portal. As as user with Project Admin permissions, you can schedule any environment in your project for deletion, regardless of who created it. You can also change the expiration date and time for any environment in your project.
23
+
20
24
## Prerequisites
21
25
22
-
-Access to a project that has at least one environment type.
23
-
-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 the required permissions to create an environment.
26
+
-To schedule *your own* environment for automatic deletion, you must have the [Deployment Environments User](how-to-configure-deployment-environments-user.md) role.
27
+
-To schedule *any* environment in your project for automatic deletion, you must have the [DevCenter Project Admin](how-to-configure-project-admin.md) role.
24
28
25
29
## Add an environment
26
30
@@ -76,10 +80,30 @@ Plans change, projects change, and timelines change. If you need to change the e
76
80
- Select a new time for expiration.
77
81
- Select a new time zone for expiration.
78
82
79
-
:::image type="content" source="media/how-to-schedule-environment-deletion/change-expiration-date-time.png" alt-text="Screenshot of the developer portal, showing the options for scheduled deletion which you can change." lightbox="media/how-to-schedule-environment-deletion/change-expiration-date-time.png":::
83
+
:::image type="content" source="media/how-to-schedule-environment-deletion/change-expiration-date-time.png" alt-text="Screenshot of the developer portal, showing the options for scheduled deletion, which you can change." lightbox="media/how-to-schedule-environment-deletion/change-expiration-date-time.png":::
80
84
81
85
1. When you've set the new expiration date and time, select **Change**.
82
86
87
+
## Schedule an environment for deletion as a project admin
88
+
89
+
Developers might not always know when an environment is no longer needed. As a project admin, you can schedule any environment in your project for deletion, regardless of who created it.
90
+
91
+
1. Sign in to the [Azure portal](https://portal.azure.com), and select the project that contains the environment you want to schedule for deletion.
92
+
93
+
1. In the left-hand menu, select **Environments**.
94
+
95
+
1. In the list of environments, for the environment you want to schedule for deletion, scroll right, and then select **...** > **Change expiration**.
96
+
97
+
:::image type="content" source="media/how-to-schedule-environment-deletion/azure-portal-schedule-environment-deletion.png" alt-text="Screenshot of the Azure portal, showing the left-hand menu with Deployment Environments highlighted." lightbox="media/how-to-schedule-environment-deletion/azure-portal-schedule-environment-deletion.png":::
98
+
99
+
1. On the **Change expiration date** pane, select **Enable scheduled deletion**.
100
+
101
+
1. Select the date and time you want the environment to expire and be deleted, and then select **Save**.
102
+
103
+
:::image type="content" source="media/how-to-schedule-environment-deletion/azure-portal-change-expiration-date.png" alt-text="Screenshot of the Azure portal, showing the Change expiration date pane." lightbox="media/how-to-schedule-environment-deletion/azure-portal-change-expiration-date.png":::
104
+
105
+
The environment is now scheduled for deletion on the date and time you specified.
106
+
83
107
## Related content
84
108
85
109
*[Quickstart: Create and access Azure Deployment Environments by using the developer portal](quickstart-create-access-environments.md)
0 commit comments