Skip to content

Commit 7101909

Browse files
author
RoseHJM
committed
Added Azure portal steps for project admin
1 parent 9545f85 commit 7101909

File tree

3 files changed

+28
-4
lines changed

3 files changed

+28
-4
lines changed

articles/deployment-environments/how-to-schedule-environment-deletion.md

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: RoseHJM
55
ms.author: rosemalcolm
66
ms.service: deployment-environments
77
ms.topic: how-to
8-
ms.date: 11/10/2023
8+
ms.date: 02/23/2024
99

1010
# Customer intent: As a developer, I want automatically delete my environment on a specific date so that I can keep resources current.
1111

@@ -17,10 +17,14 @@ In this article, you learn how to set an expiration, or end date for a deploymen
1717

1818
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.
1919

20+
As a developer, you can schedule an environment for deletion when you create it. You can also change the expiration date and time for an environment that you created.
21+
22+
As as dev team lead, 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+
2024
## Prerequisites
2125

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.
2428

2529
## Add an environment
2630

@@ -76,10 +80,30 @@ Plans change, projects change, and timelines change. If you need to change the e
7680
- Select a new time for expiration.
7781
- Select a new time zone for expiration.
7882

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":::
8084

8185
1. When you've set the new expiration date and time, select **Change**.
8286

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+
83107
## Related content
84108

85109
* [Quickstart: Create and access Azure Deployment Environments by using the developer portal](quickstart-create-access-environments.md)
Loading
Loading

0 commit comments

Comments
 (0)