Create a dynamic device group containing your Cloud PCs
You can create a dynamic device group that contains your Cloud PCs. Policies targeting this device group will target all or some Cloud PCs, depending on the rules you configure. There are three different categories of groups you can create for Cloud PCs:
- All Cloud PCs: This type of group is useful for applying policies and configurations to all Cloud PCs in your organization.
- All Cloud PCs from a specific provisioning policy: This type of group is useful for applying policies and configurations to Cloud PCs based on the same image and location.
- All Cloud PCs with a specific configuration: This type of group is useful for applying policies and configurations to Cloud PCs based on computing power (vCPU and RAM) or internal storage.
Create a dynamic device group for all Cloud PCs
In these steps, you’ll use the Device Model device property to create the dynamic device group.
- Sign in to the Microsoft Intune admin center > Groups > New Group.
- Select Security for Group type.
- Enter the following information:
- Group name = "All Cloud PCs" (or some other name indicating it will contain all Cloud PCs).
- Group description = "A dynamic device group containing all Cloud PC devices"
- For Membership type, choose Dynamic Device.
- Select Add dynamic query.
- On the Dynamic membership rules page, enter the following:
- Property = "deviceModel"
- Operator = "Starts With"
- Value = "Cloud PC"
- To validate that it works, select Validate Rules (Preview) > +Add devices > select some Cloud PCs and non-Cloud PC devices.
- After the validation completes, select Save > Create.
Create a dynamic device group for all Cloud PCs from a specific provisioning policy
For the example below, we use "UX Engineering" as the name of the provisioning policy. Anywhere you see "UX Engineering" replace it with the name of your provisioning policy.
In these steps, you’ll use the Enrollment Profile Name device property to create the dynamic device group.
- Sign in to the Microsoft Intune admin center > Groups > New Group.
- Select Security for Group type.
- Enter the following information:
- Group name = "All UX Engineering Cloud PC devices"
- Group description = "A dynamic device group containing all UX Engineering Cloud PC devices."
- For Membership type, choose Dynamic Device.
- Select Add dynamic query.
- On the Dynamic membership rules page, enter the following:
- Property = "enrollmentProfileName"
- Operator = "Equals"
- Value = "UX Engineering"
- To validate that it works, select Validate Rules (Preview) > Add devices > select some Cloud PCs that were provisioned from the "UX Engineering" provisioning policy, some Cloud PCs that were provisioned from a different provisioning policy, and some non-Cloud PCs.
- After the validation completes, select Save > Create.
Create a dynamic device group for all Cloud PCs with a specific configuration
For the example below, we use 2 vCPU and 4-GB RAM as the configuration. Anywhere you see "2vCPU/4GB" replace it with the desired configuration. You can also target a specific Cloud PC size by adding the OS storage as part of the configuration. You can follow the below steps and create a filter for any of the configurations that make up Cloud PC sizes.
In these steps, you'll use the Device Model device property to create the dynamic device group.
- Sign in to the Microsoft Intune admin center > Groups > New Group.
- Select Security for Group type.
- Enter the following information:
- Group name = “All 2vCPU/4GB RAM Cloud PCs".
- Group description = “A dynamic device group containing all Cloud PCs with the 2vCPU/4GB RAM configuration.
- For Membership type, choose Dynamic Device.
- Select Add dynamic query.
- On the Dynamic membership rules page, enter the following:
- Property = “deviceModel”
- Operator = “Starts With”
- Value = “Cloud PC”
- Select Add expression and enter the following:
- Property = “deviceModel”
- Operator = “Contains”
- Value = “2vCPU/4GB”
- To validate that it works, select Validate Rules (Preview) > Add devices > select some Cloud PCs that have the 2vCPU/4GB RAM configuration, some Cloud PCs that have a different configuration, and some non-Cloud PC devices.
- After the validation completes, select Save > Create.