Skip to content

Commit 345b71d

Browse files
authored
Merge pull request #303129 from v-albemi/schedule-deletion
Freshness Edit: Azure Deployment Environments
2 parents c9826e4 + 2d10a9f commit 345b71d

File tree

7 files changed

+36
-36
lines changed

7 files changed

+36
-36
lines changed

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

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,106 +1,106 @@
11
---
2-
title: Schedule an environment for automatic deletion
3-
description: Learn how to schedule a deletion date and time for an environment. Set an expiration date, when the environment and all its resources are deleted.
2+
title: Schedule an Environment for Automatic Deletion
3+
description: Learn how to schedule a deletion date and time for an environment. Set an expiration date to specify when the environment and its resources are deleted.
44
author: RoseHJM
55
ms.author: rosemalcolm
66
ms.service: azure-deployment-environments
77
ms.topic: how-to
8-
ms.date: 02/23/2024
8+
ms.date: 07/25/2025
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

1212
---
1313

1414
# Schedule a deletion date for a deployment environment
1515

16-
In this article, you learn how to set an expiration, or end date for a deployment environment. On the expiration date, Azure Deployment Environments automatically deletes the environment and all its resources. If your timeline changes, you can change the expiration date.
16+
In this article, you learn how to set an expiration date for a deployment environment. On the expiration date, Azure Deployment Environments automatically deletes the environment and all its resources. If your timeline changes, you can change the expiration date.
1717

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.
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 expiration 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 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.
20+
As a developer, you can view and schedule the expiration dates for your environment in 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.
2121

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.
22+
Deployment Environments provides platform engineers with a centralized way of viewing and managing deletion schedules for environments in Azure portal. As a 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.
2323

2424
## Prerequisites
2525

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

2929
## Add an environment
3030

31-
Schedule an expiration date and time as you create an environment through the developer portal.
31+
You can schedule an expiration date and time when you create an environment via the developer portal.
3232

3333
1. Sign in to the [developer portal](https://devportal.microsoft.com).
3434
1. From the **New** menu at the top left, select **New environment**.
3535

36-
:::image type="content" source="media/how-to-schedule-environment-deletion/new-environment.png" alt-text="Screenshot of the developer portal showing the new menu with new environment highlighted." lightbox="media/how-to-schedule-environment-deletion/new-environment.png":::
36+
:::image type="content" source="media/how-to-schedule-environment-deletion/new-environment.png" alt-text="Screenshot of that shows the New menu. New environment is highlighted.":::
3737

38-
1. In the Add an environment pane, select the following information:
38+
1. In the **Add an environment** pane, enter or select the following values:
3939

4040
|Field |Value |
4141
|---------|---------|
42-
|Name | Enter a descriptive name for your environment. |
43-
|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. |
44-
|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. |
45-
|Definition | Select the environment definition you want to use to create the environment. You see a list of the environment definitions available from the catalogs associated with your dev center. |
46-
|Expiration | Select **Enable scheduled deletion**. |
42+
|**Name** | Enter a descriptive name for your environment. |
43+
|**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. |
44+
|**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. |
45+
|**Definition** | Select the environment definition you want to use to create the environment. You see a list of the environment definitions available from the catalogs associated with your dev center. |
46+
|**Expiration** | Select **Enable scheduled deletion**. |
4747

48-
:::image type="content" source="media/how-to-schedule-environment-deletion/add-environment-pane.png" alt-text="Screenshot showing the Add environment pane with Enable scheduled deletion highlighted." lightbox="media/how-to-schedule-environment-deletion/add-environment-pane.png":::
48+
:::image type="content" source="media/how-to-schedule-environment-deletion/add-environment-pane.png" alt-text="Screenshot showing the Add an environment pane. The Enable scheduled deletion checkbox is highlighted.":::
4949

50-
If your environment is configured to accept parameters, you're able to enter them on a separate pane. In this example, you don't need to specify any parameters.
50+
If your environment is configured to accept parameters, you can enter them on a separate pane. In this example, you don't need to specify any parameters.
5151

5252
1. Under **Expiration**, select a **deletion date**, and then select a **deletion time**.
5353
The date and time you select is the date and time that the environment and all its resources are deleted. If you want to change the date or time, you can do so later.
5454

55-
:::image type="content" source="media/how-to-schedule-environment-deletion/set-expiration-date-time.png" alt-text="Screenshot showing the Add environment pane with expiration date and time highlighted." lightbox="media/how-to-schedule-environment-deletion/set-expiration-date-time.png":::
55+
:::image type="content" source="media/how-to-schedule-environment-deletion/set-expiration-date-time.png" alt-text="Screenshot showing the Add an environment pane. The select deletion date and time boxes are highlighted.":::
5656

57-
You can also specify a time zone for the expiration date and time. Select **Time zones** to see a list of time zones.
57+
You can also specify a time zone for the expiration date and time. Select the time zones button to see a list of time zones.
5858

59-
:::image type="content" source="media/how-to-schedule-environment-deletion/select-time-zones.png" alt-text="Screenshot showing the Add environment pane with time zones link highlighted." lightbox="media/how-to-schedule-environment-deletion/select-time-zones.png":::
59+
:::image type="content" source="media/how-to-schedule-environment-deletion/select-time-zones.png" alt-text="Screenshot showing the Add an environment pane. The time zones button is highlighted.":::
6060

61-
1. Make sure that the time zone reflects the time zone you want to use for the expiration date and time. Select the time zone you want to use.
61+
1. Make sure that the time zone reflects the time zone you want to use for the expiration date and time. Select the time zone that you want to use.
6262

63-
:::image type="content" source="media/how-to-schedule-environment-deletion/set-time-zone.png" alt-text="Screenshot showing the Add environment pane with the selected time zone highlighted." lightbox="media/how-to-schedule-environment-deletion/set-time-zone.png":::
63+
:::image type="content" source="media/how-to-schedule-environment-deletion/set-time-zone.png" alt-text="Screenshot showing the Add an environment pane. A selected time zone is highlighted.":::
6464

65-
1. Select **Create**. You see your environment in the developer portal immediately, with an indicator that shows creation in progress.
65+
1. Select **Create**. You see your environment in the developer portal immediately. An indicator shows that the environment is being created.
6666

6767
## Change an environment expiration date and time
6868

6969
Plans change, projects change, and timelines change. If you need to change the expiration date and time for an environment, you can do so in the developer portal.
7070

7171
1. Sign in to the [developer portal](https://devportal.microsoft.com).
7272

73-
1. On the environment you want to change, select the Actions menu, and then select **Change expiration**.
73+
1. On the environment you want to change, select the **Actions** menu (**...**), and then select **Change expiration**.
7474

7575
:::image type="content" source="media/how-to-schedule-environment-deletion/environment-tile-actions.png" alt-text="Screenshot of the developer portal, showing an environment tile with the actions menu open, and Change expiration highlighted." lightbox="media/how-to-schedule-environment-deletion/environment-tile-actions.png":::
7676

77-
1. In Change expiration, you can change any of the following options:
77+
1. In the **Change \<environment> expiration** pane, you can change any of the following options:
7878
- Clear **Enable scheduled deletion** to disable scheduled deletion.
7979
- Select a new date for expiration.
8080
- Select a new time for expiration.
8181
- Select a new time zone for expiration.
8282

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":::
83+
:::image type="content" source="media/how-to-schedule-environment-deletion/change-expiration-date-time.png" alt-text="Screenshot showing the options for scheduled deletion." lightbox="media/how-to-schedule-environment-deletion/change-expiration-date-time.png":::
8484

85-
1. When you've set the new expiration date and time, select **Change**.
85+
1. After you set the new expiration date and time, select **Change**.
8686

87-
## Schedule an environment for deletion as a project admin
87+
## Schedule an environment deletion as a project admin
8888

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.
89+
Developers might not always know when an environment is no longer needed. As a project admin, you can schedule the deletion of any environment in your project, regardless of who created it.
9090

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.
91+
1. Sign in to the [Azure portal](https://portal.azure.com), and select the project that contains the environment that you want to schedule for deletion.
9292

93-
1. In the left-hand menu, select **Environments**.
93+
1. In the left pane, under **Manage**, select **Environments**.
9494

9595
1. In the list of environments, for the environment you want to schedule for deletion, scroll right, and then select **...** > **Change expiration**.
9696

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":::
97+
:::image type="content" source="media/how-to-schedule-environment-deletion/azure-portal-schedule-environment-deletion.png" alt-text="Screenshot showing the initial steps for changing an expiration." lightbox="media/how-to-schedule-environment-deletion/azure-portal-schedule-environment-deletion.png":::
9898

99-
1. On the **Change expiration date** pane, select **Enable scheduled deletion**.
99+
1. In the **Change \<environment> expiration date** pane, select **Enable scheduled deletion**.
100100

101101
1. Select the date and time you want the environment to expire and be deleted, and then select **Save**.
102102

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":::
103+
:::image type="content" source="media/how-to-schedule-environment-deletion/azure-portal-change-expiration-date.png" alt-text="Screenshot showing the change expiration date pane.":::
104104

105105
The environment is now scheduled for deletion on the date and time you specified.
106106

Loading
27.7 KB
Loading
8.89 KB
Loading
20.4 KB
Loading
20.7 KB
Loading
22.6 KB
Loading

0 commit comments

Comments
 (0)