Skip to content

Commit 2025143

Browse files
author
RoseHJM
committed
Update screenshots 1
1 parent 321e814 commit 2025143

10 files changed

+40
-12
lines changed

articles/dev-box/how-to-configure-project-policy.md

Lines changed: 40 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
---
2-
title: Use project policies to control resource use in Dev Box
2+
title: Use Project Policies to Control Resource Use in Dev Box
33
description: Simplify resource management in Microsoft Dev Box with project policies. Set guardrails for projects and ensure secure, efficient workflows.
44
author: RoseHJM
55
ms.author: rosemalcolm
66
ms.service: dev-box
77
ms.topic: how-to
8-
ms.date: 03/28/2025
8+
ms.date: 05/07/2025
99
ms.custom:
1010
- ai-gen-docs-bap
1111
- ai-gen-description
1212
- ai-seo-date:03/28/2025
13-
#customer intent: As a platform engineer, I want to set up project policies in Microsoft Dev Box to control resource use for my development teams.
13+
#customer intent: As a platform engineer, I want to set up project policies in Microsoft Dev Box to control resource use for my development teams.
1414
---
1515

1616
# Control resource use with project policies in Microsoft Dev Box
@@ -26,6 +26,7 @@ When policies are enforced, Dev Box evaluates the health of existing resource po
2626
This enforcement mechanism ensures projects access only the resources they're approved for, maintaining a secure-by-default environment with efficient operations across all projects in a dev center.
2727

2828
## Prerequisites
29+
2930
- Microsoft Dev Box configured with a dev center and projects.
3031

3132
## Create a default project policy
@@ -37,8 +38,11 @@ Projects apply the default policy unless they have a custom project policy. If a
3738
To create a default project policy:
3839

3940
1. Sign in to the [Azure portal](https://portal.azure.com).
41+
4042
1. Navigate to your dev center.
43+
4144
1. In the left pane, expand **Manage**, and then select **Project policy**.
45+
4246
1. On the **Project policy** page, select **Create a policy**.
4347

4448
:::image type="content" source="media/how-to-configure-project-policy/project-policy-page.png" alt-text="Screenshot of the Project policy page in the Azure portal, showing options to create a new project policy.":::
@@ -47,19 +51,21 @@ To create a default project policy:
4751

4852
:::image type="content" source="media/how-to-configure-project-policy/project-policy-default-name.png" alt-text="Screenshot showing the default project policy name field in the Azure portal.":::
4953

50-
1. Under **Allow resources**, select the resources you want to allow for the project. You must select at least one resource for each category: images, networks, and SKUs.
54+
1. Under **Allow resources**, select the resources you want to allow for the project. You must select at least one resource for each category: images, networks, and SKUs.
5155

5256
1. Select **Select images**.
53-
54-
:::image type="content" source="media/how-to-configure-project-policy/project-policy-select-images.png" alt-text="Screenshot showing the Create project policy page, with Select images highlighted.":::
57+
58+
:::image type="content" source="media/how-to-configure-project-policy/project-policy-select-images.png" alt-text="Screenshot showing the Create project policy page, with Select images highlighted.":::
5559

5660
1. In the **Select images** pane, to allow all current and future images for projects, select **All current and future images**, and then select **Select**.
5761

5862
:::image type="content" source="media/how-to-configure-project-policy/project-policy-select-current-future-images.png" alt-text="Screenshot showing the Select images pane in the Azure portal, with All current and future images selected.":::
5963

6064
1. Select **Select networks**.
6165

62-
1. In the **Select networks** pane, to allow all current and future networks for projects, select **All current and future networks**, and then select **Select**.
66+
:::image type="content" source="media/how-to-configure-project-policy/project-policy-select-networks.png" alt-text="Screenshot showing the Create project policy page, with Select networks highlighted.":::
67+
68+
1. In the **Select networks** pane, to allow all current and future networks for projects, select **All current and future networks**, and then select **Select**.
6369

6470
1. To allow specific SKU usage, select **Select SKUs**.
6571

@@ -78,18 +84,22 @@ To create a default project policy:
7884
:::image type="content" source="media/how-to-configure-project-policy/project-policy-summary.png" alt-text="Screenshot showing the summary of a default project policy in the Azure portal.":::
7985

8086
## Create a custom project policy
81-
Custom project policies enable you to control resources for specific projects. These policies allow you to control which resources are available to projects, ensuring better governance and resource management. Each project can have only one custom policy, but the same policy can be applied to multiple projects.
87+
88+
Custom project policies enable you to control resources for specific projects. These policies allow you to control which resources are available to projects, ensuring better governance and resource management. Each project can have only one custom policy, but the same policy can be applied to multiple projects.
8289

8390
To create and apply a custom project policy:
8491

8592
1. Sign in to the [Azure portal](https://portal.azure.com).
93+
8694
1. Navigate to your dev center.
95+
8796
1. In the left pane, expand **Manage**, and then select **Project policy**.
97+
8898
1. On the **Project policy** page, select **Create**.
8999

90100
:::image type="content" source="media/how-to-configure-project-policy/project-policy-create-custom.png" alt-text="Screenshot showing the Create button for a custom project policy in the Azure portal.":::
91101

92-
1. On the **Create project policy** page, enter a name for the project policy.
102+
1. On the **Create project policy** page, enter a name for the project policy.
93103

94104
:::image type="content" source="media/how-to-configure-project-policy/project-policy-custom-name.png" alt-text="Screenshot showing the name field for a custom project policy in the Azure portal.":::
95105

@@ -101,23 +111,24 @@ To create and apply a custom project policy:
101111

102112
:::image type="content" source="media/how-to-configure-project-policy/project-policy-target-projects.png" alt-text="Screenshot showing the selected target projects for a custom project policy in the Azure portal.":::
103113

104-
1. Under **Allow resources**, select the resources you want to allow for the project.
105-
For example, to allow a project to only use Visual Studio 2022 images, select **Select images**, and then select all Visual Studio 2022 images. To confirm your selection, select **Select**.
114+
1. Under **Allow resources**, select the resources you want to allow for the project. For example, to allow a project to only use Visual Studio 2022 images, select **Select images**, and then select all Visual Studio 2022 images. To confirm your selection, select **Select**.
106115

107116
:::image type="content" source="media/how-to-configure-project-policy/project-policy-custom-select-images.png" alt-text="Screenshot showing the Select images pane for a custom project policy in the Azure portal.":::
108117

109118
1. You can select more resources. When you finish selecting resources, select **Create**.
110119

111120
:::image type="content" source="media/how-to-configure-project-policy/project-policy-custom-summary-create.png" alt-text="Screenshot showing the summary of a custom project policy before creation in the Azure portal.":::
112121

113-
114122
## View policies for a project
115123

116124
To confirm that the project policy is applied to the project:
117125

118126
1. Sign in to the [Azure portal](https://portal.azure.com).
127+
119128
1. Navigate to your dev center.
129+
120130
1. In the left pane, expand **Manage**, and then select **Project policy**.
131+
121132
1. On the **Project policy** page, expand the project policy you created.
122133

123134
:::image type="content" source="media/how-to-configure-project-policy/project-policy-custom-summary.png" alt-text="Screenshot showing the summary of an applied custom project policy in the Azure portal.":::
@@ -127,14 +138,31 @@ Once you create a custom project policy and apply it to the target project, the
127138
## Edit a project policy
128139

129140
1. Sign in to the [Azure portal](https://portal.azure.com).
141+
130142
1. Navigate to your dev center.
143+
131144
1. In the left pane, expand **Manage**, and then select **Project policy**.
145+
132146
1. For the project policy you want to edit, scroll to the right and select **Edit**.
133147

134148
:::image type="content" source="media/how-to-configure-project-policy/project-policy-edit.png" alt-text="Screenshot showing the Edit button for a project policy in the Azure portal.":::
135149

136150
1. When you finish making changes, select **Apply**.
137151

152+
## Delete a project policy
153+
154+
1. Sign in to the [Azure portal](https://portal.azure.com).
155+
156+
1. Navigate to your dev center.
157+
158+
1. In the left pane, expand **Manage**, and then select **Project policy**.
159+
160+
1. Select the project policy you want to delete, and then select **Delete**.
161+
162+
:::image type="content" source="media/how-to-configure-project-policy/project-policy-delete.png" alt-text="Screenshot showing the Delete button for a project policy in the Azure portal.":::
163+
164+
1. In the **Delete project policy** read the message: *"Deleting a custom policy will cause a pool to become unhealthy if the pool resources are allowed by the custom policy, but not allowed by the default policy."* , and then select **OK**.
165+
138166
## Related content
139167

140168
- [Key concepts for Microsoft Dev Box](concept-dev-box-concepts.md)
-19 Bytes
Loading
-140 Bytes
Loading
48 Bytes
Loading
-159 Bytes
Loading
56.4 KB
Loading
148 Bytes
Loading
57.3 KB
Loading
-193 Bytes
Loading
-66 Bytes
Loading

0 commit comments

Comments
 (0)