Skip to content

Commit 56f1566

Browse files
author
RoseHJM
committed
UX updates
1 parent e4b54ab commit 56f1566

15 files changed

+66
-51
lines changed

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

Lines changed: 66 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -28,39 +28,43 @@ This enforcement mechanism ensures projects access only the resources they're ap
2828
## Prerequisites
2929
- Microsoft Dev Box configured with a dev center and projects.
3030

31-
## Enforce project policy for a dev center
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.
3233

33-
By enforcing project policies for a resource type, you control which resources are available to all projects in the dev center. When you enforce project policies for a resource type, all resources of that type are disallowed unless explicitly allowed in the default or project policy.
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.
3435

35-
To enforce project policies:
36+
To create a default policy:
3637

3738
1. Sign in to the [Azure portal](https://portal.azure.com).
3839
1. Navigate to your dev center.
39-
1. In the left pane, expand **Settings**, and then select **Project policy (preview)**.
40-
1. Under **Enforce project policy**, select the resources you want to restrict for all projects in the dev center.
41-
For example, to restrict the SKUs available to projects in the dev center, select **SKUs**.
42-
1. To confirm your selection and enforce it, select **Apply**.
40+
1. In the left pane, expand **Manage**, and then select **Project policy**.
41+
1. On the **Project policy** page, select **Create a policy**.
4342

44-
## Create a default policy
45-
You should first create a 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.
43+
:::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.":::
4644

47-
When project policies are enforced, 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.
45+
1. The name of the policy is **default**.
4846

49-
To create a default policy:
47+
:::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.":::
5048

51-
1. Sign in to the [Azure portal](https://portal.azure.com).
52-
1. Navigate to your dev center.
53-
1. In the left pane, expand **Settings**, and then select **Project policy (preview)**.
54-
1. Under **Project policies**, select **Create project policy**.
55-
1. On the **Create project policy** page, for **Targeted projects**, select **All current and future projects**.
56-
1. The name of the policy is **default**.
57-
1. Under **Allow access to the following**, select the resources you want to restrict for the project.
58-
For example, to restrict SKU usage, select **SKUs**.
59-
1. In the **Select SKUs** pane, select **A specific SKU or group of SKUs**.
60-
For example, to restrict the project to only use 16 vCPU SKUs, select **SKUs**, and then select all 16 vCPU SKUs.
61-
1. To confirm your selection, select **Select**.
62-
1. You can select one or more resources: images, networks, and SKUs. When you finish selecting the resources, select **Create**.
63-
1. To confirm that the default policy is applied to all projects, under **Project policies** > **default**, select **Show selected**.
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.":::
56+
57+
1. Select **Select images**.
58+
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**.
59+
1. Select **Select networks**.
60+
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**.
61+
62+
:::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.":::
63+
64+
1. When you finish selecting the resources, select **Create**.
65+
1. To confirm that the default policy applies the resources, expand **default**.
66+
67+
:::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.":::
6468

6569
## Create a Project policy
6670
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.
@@ -69,46 +73,57 @@ To create and apply a custom project policy:
6973

7074
1. Sign in to the [Azure portal](https://portal.azure.com).
7175
1. Navigate to your dev center.
72-
1. In the left pane, expand **Settings**, and then select **Project policy (preview)**.
73-
1. Under **Project policies**, select **Create project policy**.
74-
1. On the **Create project policy** page, for **Targeted projects**, select **Select projects**.
76+
1. In the left pane, expand **Manage**, and then select **Project policy**.
77+
1. On the **Project policy** page, select **Create**.
78+
79+
:::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.":::
80+
81+
1. On the **Create project policy** page, enter a name for the project policy.
82+
83+
:::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.":::
84+
85+
1. Under **Target projects**, select **Select projects**.
86+
87+
:::image type="content" source="media/how-to-configure-project-policy/project-policy-custom-select-projects.png" alt-text="Screenshot showing the Select projects option for a custom project policy in the Azure portal.":::
88+
7589
1. In the **Select projects** pane, select the projects you want to apply the policy to, and then select **Select**.
76-
For example, select **AI-dev**, and then select **Select**.
77-
1. In the **Name** field, enter a name for the project policy.
78-
For example, enter **AI-dev policy**.
79-
1. Under **Allow access to the following**, select the resources you want to restrict for the project.
80-
For example, to restrict the AI-dev project to only use 32 vCPU SKUs, select **SKUs**, and then select all 32 vCPU SKUs.
81-
1. To confirm your selection, select **Select**.
82-
1. You can select one or more resources. When you finish selecting the resources, select **Create**.
8390

84-
## View policies for a project
91+
:::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.":::
8592

86-
1. To confirm that the project policy is applied to the project, under **Project policies**, select the name of the project policy you created.
87-
1. Under **Project policy**, select **Show selected**.
88-
1. The project policy shows the projects wo ahich it is appliedm and the resources that are restricted for the project.
89-
90-
1. To view the project policy for a specific project, select **Group by** > **Group by project**.
91-
1. Select the project you want to view the policy for, and then select **Show selected**.
92-
1. The project policy shows the resources that are restricted for the project. Note that 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 32 vCPU SKUs, the project can use both 16 vCPU SKUs and 32 vCPU SKUs.
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**.
9395

96+
:::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.":::
9497

95-
## Edit a project policy
98+
1. You can select more resources. When you finish selecting resources, select **Create**.
99+
100+
:::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.":::
101+
102+
103+
## View policies for a project
104+
105+
To confirm that the project policy is applied to the project:
96106

97107
1. Sign in to the [Azure portal](https://portal.azure.com).
98108
1. Navigate to your dev center.
99-
1. In the left pane, expand **Settings**, and then select **Project policy (preview)**.
100-
1. To view a specific project policy, select **Group by** > **Group by policy**.
101-
1. Under **Project policies**, on the project policy you want to edit, scroll to the right and select **...** > **Edit**.
102-
1. When you finish making changes, select **Apply**.
109+
1. In the left pane, expand **Manage**, and then select **Project policy**.
110+
1. On the **Project policy** page, expand the project policy you created.
111+
112+
:::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.":::
113+
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.
103115

104-
## Disable project policies
105116

106-
You can disable project policies to allow all projects in the dev center to access all resources. This is useful when you want to temporarily lift restrictions on resource usage for all projects in the dev center.
117+
## Edit a project policy
107118

108119
1. Sign in to the [Azure portal](https://portal.azure.com).
109120
1. Navigate to your dev center.
110-
1. In the left pane, expand **Settings**, and then select **Project policy (preview)**.
111-
1. Under **Enforce project policy**, clear the check boxes for the resources you want to allow all projects in the dev center to access.
121+
1. In the left pane, expand **Manage**, and then select **Project policy**.
122+
1. For the project policy you want to edit, scroll to the right and select **Edit**.
123+
124+
:::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.":::
125+
126+
1. When you finish making changes, select **Apply**.
112127

113128
## Related content
114129

26.1 KB
Loading
90.7 KB
Loading
21.1 KB
Loading
59 KB
Loading
21.2 KB
Loading
71.2 KB
Loading
61.1 KB
Loading
61.9 KB
Loading
61.1 KB
Loading

0 commit comments

Comments
 (0)