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/dev-box/how-to-configure-project-policy.md
+40-12Lines changed: 40 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,16 @@
1
1
---
2
-
title: Use project policies to control resource use in Dev Box
2
+
title: Use Project Policies to Control Resource Use in Dev Box
3
3
description: Simplify resource management in Microsoft Dev Box with project policies. Set guardrails for projects and ensure secure, efficient workflows.
4
4
author: RoseHJM
5
5
ms.author: rosemalcolm
6
6
ms.service: dev-box
7
7
ms.topic: how-to
8
-
ms.date: 03/28/2025
8
+
ms.date: 05/07/2025
9
9
ms.custom:
10
10
- ai-gen-docs-bap
11
11
- ai-gen-description
12
12
- 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.
14
14
---
15
15
16
16
# 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
26
26
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.
27
27
28
28
## Prerequisites
29
+
29
30
- Microsoft Dev Box configured with a dev center and projects.
30
31
31
32
## Create a default project policy
@@ -37,8 +38,11 @@ Projects apply the default policy unless they have a custom project policy. If a
37
38
To create a default project policy:
38
39
39
40
1. Sign in to the [Azure portal](https://portal.azure.com).
41
+
40
42
1. Navigate to your dev center.
43
+
41
44
1. In the left pane, expand **Manage**, and then select **Project policy**.
45
+
42
46
1. On the **Project policy** page, select **Create a policy**.
43
47
44
48
:::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:
47
51
48
52
:::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.":::
49
53
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.
51
55
52
56
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.":::
55
59
56
60
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**.
57
61
58
62
:::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.":::
59
63
60
64
1. Select **Select networks**.
61
65
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**.
63
69
64
70
1. To allow specific SKU usage, select **Select SKUs**.
65
71
@@ -78,18 +84,22 @@ To create a default project policy:
78
84
:::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.":::
79
85
80
86
## 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.
82
89
83
90
To create and apply a custom project policy:
84
91
85
92
1. Sign in to the [Azure portal](https://portal.azure.com).
93
+
86
94
1. Navigate to your dev center.
95
+
87
96
1. In the left pane, expand **Manage**, and then select **Project policy**.
97
+
88
98
1. On the **Project policy** page, select **Create**.
89
99
90
100
:::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.":::
91
101
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.
93
103
94
104
:::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.":::
95
105
@@ -101,23 +111,24 @@ To create and apply a custom project policy:
101
111
102
112
:::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.":::
103
113
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**.
106
115
107
116
:::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.":::
108
117
109
118
1. You can select more resources. When you finish selecting resources, select **Create**.
110
119
111
120
:::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.":::
112
121
113
-
114
122
## View policies for a project
115
123
116
124
To confirm that the project policy is applied to the project:
117
125
118
126
1. Sign in to the [Azure portal](https://portal.azure.com).
127
+
119
128
1. Navigate to your dev center.
129
+
120
130
1. In the left pane, expand **Manage**, and then select **Project policy**.
131
+
121
132
1. On the **Project policy** page, expand the project policy you created.
122
133
123
134
:::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
127
138
## Edit a project policy
128
139
129
140
1. Sign in to the [Azure portal](https://portal.azure.com).
141
+
130
142
1. Navigate to your dev center.
143
+
131
144
1. In the left pane, expand **Manage**, and then select **Project policy**.
145
+
132
146
1. For the project policy you want to edit, scroll to the right and select **Edit**.
133
147
134
148
:::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.":::
135
149
136
150
1. When you finish making changes, select **Apply**.
137
151
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
+
138
166
## Related content
139
167
140
168
-[Key concepts for Microsoft Dev Box](concept-dev-box-concepts.md)
0 commit comments