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/lab-services/resource-group-control.md
+20-19Lines changed: 20 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -17,32 +17,33 @@ ms.author: spelluru
17
17
---
18
18
19
19
# Specify a resource group for lab virtual machines in Azure DevTest Labs
20
-
As a lab owner, you can configure your lab virtual machines to be created in a specific resource group. This feature helps you in the following scenarios:
20
+
21
+
As a lab owner, you can configure your lab virtual machines to be created in a specific resource group. This feature helps you in the following scenarios:
21
22
22
23
- Have fewer resource groups created by labs in your subscription.
23
-
- Have your labs operate within a fixed set of resource groups configured by you
24
+
- Have your labs operate within a fixed set of resource groups that you configure.
24
25
- Work around restrictions and approvals required for creating resource groups within your Azure subscription.
25
-
- Consolidate all your lab resources within a single resource group to simplify tracking those resources and applying [policies](../governance/policy/overview.md) to manage them at the resource group level.
26
+
- Consolidate all your lab resources within a single resource group to simplify tracking those resources and applying [policies](../governance/policy/overview.md) to manage resources at the resource group level.
26
27
27
-
With this feature, you can use a script to specify a new or an existing resource group within your Azure subscription for all your lab VMs. Currently, DevTest Labs supports this feature through an API.
28
+
With this feature, you can use a script to specify a new or existing resource group within your Azure subscription for all your lab VMs. Currently, Azure DevTest Labs supports this feature through an API.
28
29
29
-
## API to configure a resource group for lab virtual machines
30
-
Now let’s walk through the options you have as a lab owner while using this API:
30
+
## API to configure a resource group for lab VMs
31
+
You have the following options as a lab owner when using this API:
31
32
32
-
-You can choose the **lab’s resource group** for all virtual machines.
33
-
-You can choose an **existing resource group** other than the lab's resource group for all virtual machines.
34
-
-You can enter a **new resource group** name for all virtual machines.
35
-
-You can continue with the existing behavior, that is, a resource group is created for each VM in the lab.
33
+
-Choose the **lab’s resource group** for all virtual machines.
34
+
-Choose an **existing resource group** other than the lab's resource group for all virtual machines.
35
+
-Enter a **new resource group** name for all virtual machines.
36
+
-Continue using the existing behavior, in which a resource group is created for each VM in the lab.
36
37
37
-
This setting applies to new virtual machines created in the lab. The older VMs in your lab that were created in their own resource groups continue to remain unaffected. Environments created in your lab continue to remain in their own resource groups.
38
+
This setting applies to new virtual machines created in the lab. The older VMs in your lab that were created in their own resource groups remain unaffected. Environments that are created in your lab continue to remain in their own resource groups.
38
39
39
-
### How to use this API:
40
-
- Use the API version **2018_10_15_preview** while using this API.
41
-
- If you specify a new resource group, ensure that you have **write permissions on resource groups**within your subscription. Without write permissions, creating new virtual machines in the specified resource group result in a failure.
42
-
- While using the API, pass in the **full resource group ID**. For example: `/subscriptions/<SubscriptionID>/resourceGroups/<ResourceGroupName>`. Ensure that the resource group is in the same subscription as that of the lab.
40
+
How to use this API:
41
+
- Use API version **2018_10_15_preview**.
42
+
- If you specify a new resource group, ensure that you have **write permissions on resource groups**in your subscription. If you lack write permissions, creating new virtual machines in the specified resource group will fail.
43
+
- While using the API, pass in the **full resource group ID**. For example: `/subscriptions/<SubscriptionID>/resourceGroups/<ResourceGroupName>`. Ensure that the resource group is in the same subscription as the lab.
43
44
44
45
## Use PowerShell
45
-
Following example describes how to create all lab virtual machines in a new resource group using a PowerShell script.
46
+
The following example shows how to use a PowerShell script to create all lab virtual machines in a new resource group.
If you are using Azure Resource Manager template to create a lab, use the **vmCreationResourceGroupId** property in the lab properties section of your Resource Manager template as shown in the following example:
76
+
## Use an Azure Resource Manager template
77
+
If you're using an Azure Resource Manager template to create a lab, use the **vmCreationResourceGroupId** property in the lab properties section of your template, as shown in the following example:
0 commit comments