Skip to content

Commit 1a9d56a

Browse files
author
RoseHJM
committed
Post reviews
1 parent dae176b commit 1a9d56a

File tree

1 file changed

+29
-25
lines changed

1 file changed

+29
-25
lines changed

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

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,26 @@ ms.custom:
1515

1616
# Control resource use with project policies in Microsoft Dev Box
1717

18-
Efficient resource management is critical for development teams working on diverse projects. Microsoft Dev Box uses **project policies** to help platform engineers enforce governance while maintaining flexibility. With project policies, you can define guardrails for resource usage on a per-project basis across your organization. This article explains how to set up and manage project policies in Dev Box to optimize resource control and governance.
18+
Efficient resource management is critical for development teams working on diverse projects. Microsoft Dev Box uses *project policies* to help platform engineers enforce governance while maintaining flexibility. With project policies, you can define guardrails for resource usage on a per-project basis across your organization. This article explains how to set up and manage project policies in Dev Box to optimize resource control and governance.
1919

2020
When policies are enforced, Dev Box evaluates the health of existing resource pools against the new policy settings:
2121

2222
- **Pool health check**: Dev Box evaluates each resource pool to check compliance with the enforced policies.
23-
- **Unhealthy pools**: If a pool doesn't meet the enforced requirements, it's marked as unhealthy, blocking the creation of new Dev Boxes in that pool.
24-
- **Existing Dev Boxes remain active**: Dev Boxes already created in an unhealthy pool continue to function normally, so your teams can keep working without disruption.
23+
- **Unhealthy pools**: A pool that doesn't meet the enforced requirements is marked as unhealthy, blocking the creation of new dev boxes in that pool.
24+
- **Existing dev boxes remain active**: dev boxes already created in an unhealthy pool continue to function normally, so your teams can keep working without disruption.
2525

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 the Dev Center.
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.
2727

2828
## Prerequisites
2929
- Microsoft Dev Box configured with a dev center and projects.
3030

31-
## Create a default policy
32-
The first policy you create is the default policy, which applies to all projects in the dev center. This is a good way to set up a baseline for your projects, ensuring that all projects have a minimum level of governance and control over the resources they can access. In a default policy, you select resources to restrict, such as networks, images, and SKUs.
31+
## Create a default project policy
3332

34-
Projects apply the default policy unless they have a custom project policy. This means that projects with a custom policy can access resources that aren't available to projects without a custom policy. In other words, projects with a custom policy can access resources that aren't available to all projects in the dev center.
33+
The first policy you create is the default project policy, which applies to all projects in the dev center. A default policy is an effective way to set up a baseline for your projects, ensuring that all projects have a minimum level of governance and control over the resources they can access. In a default project policy, you select resources to allow, like networks, images, and SKUs.
3534

36-
To create a default policy:
35+
Projects apply the default policy unless they have a custom project policy. If a project has custom policy applied, then only the resources defined in custom policy are available to the project. If there's no custom policy assigned to the project, then the resources defined in the Default policy are available to the project. A project can only have one policy applied to it.
36+
37+
To create a default project policy:
3738

3839
1. Sign in to the [Azure portal](https://portal.azure.com).
3940
1. Navigate to your dev center.
@@ -42,32 +43,37 @@ To create a default policy:
4243

4344
:::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.":::
4445

45-
1. The name of the policy is **default**.
46+
1. The name of the policy is **Default**.
4647

4748
:::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.":::
4849

49-
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. To restrict SKU usage, select **Select SKUs**.
50-
51-
:::image type="content" source="media/how-to-configure-project-policy/project-policy-select-skus.png" alt-text="Screenshot showing the Select SKUs pane in the Azure portal, with options to restrict SKU usage for a project.":::
52-
53-
1. In the **Select SKUs** pane, select **A specific SKU or group of SKUs**, and then select the SKUs you want to allow. In this example, you can select all the **16 vCPU** SKUs. To confirm your selection, select **Select**.
54-
55-
:::image type="content" source="media/how-to-configure-project-policy/project-policy-select-multiple-skus.png" alt-text="Screenshot showing the Select SKUs pane in the Azure portal, with multiple SKUs selected for a project policy.":::
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.
5651

5752
1. Select **Select images**.
53+
5854
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**.
55+
5956
1. Select **Select networks**.
57+
6058
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**.
6159

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

62+
1. To allow specific SKU usage, select **Select SKUs**.
63+
64+
:::image type="content" source="media/how-to-configure-project-policy/project-policy-select-skus.png" alt-text="Screenshot showing the Select SKUs pane in the Azure portal, with options to allow SKU usage for a project.":::
65+
66+
1. In the **Select SKUs** pane, select **A specific SKU or group of SKUs**, and then select the SKUs you want to allow. In this example, you can select all the **16 vCPU** SKUs. To confirm your selection, select **Select**.
67+
68+
:::image type="content" source="media/how-to-configure-project-policy/project-policy-select-multiple-skus.png" alt-text="Screenshot showing the Select SKUs pane in the Azure portal, with multiple SKUs selected for a project policy.":::
69+
6470
1. When you finish selecting the resources, select **Create**.
65-
1. To confirm that the default policy applies the resources, expand **default**.
71+
1. To confirm that the default project policy applies the resources, expand **Default**.
6672

6773
:::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.":::
6874

69-
## Create a Project policy
70-
Custom project policies enable you to control resources for specific projects. These policies allow you to control and restrict resources 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. These policies allow you to control and restrict resources available to projects, ensuring better governance and resource management.
75+
## Create a custom project policy
76+
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.
7177

7278
To create and apply a custom project policy:
7379

@@ -90,8 +96,8 @@ To create and apply a custom project policy:
9096

9197
:::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.":::
9298

93-
1. Under **Allow resources**, select the resources you want to restrict for the project.
94-
For example, to restrict 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**.
99+
1. Under **Allow resources**, select the resources you want to allow for the project.
100+
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**.
95101

96102
:::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.":::
97103

@@ -111,8 +117,7 @@ To confirm that the project policy is applied to the project:
111117

112118
:::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.":::
113119

114-
The default policy and the project policy restrictions are combined. For example, if the default policy restricts the project to only use 16 vCPU SKUs, and the project policy restricts the project to only use Visual Studio 2022, the project can use both 16 vCPU SKUs and Visual Studio 2022 images.
115-
120+
Once you create a custom project policy and apply it to the target project, the default project policy no longer applies to that project. The custom project policy must define all the resources you want to allow in the project.
116121

117122
## Edit a project policy
118123

@@ -127,5 +132,4 @@ The default policy and the project policy restrictions are combined. For example
127132

128133
## Related content
129134

130-
- [Autostop your Dev Boxes on schedule](how-to-configure-stop-schedule.md)
131-
- [Control costs by setting dev box limits on a project](tutorial-dev-box-limits.md)
135+
- [Key concepts for Microsoft Dev Box](concept-dev-box-concepts.md)

0 commit comments

Comments
 (0)