Skip to content

Commit 8e5c3bd

Browse files
authored
Merge pull request #66442 from jborsecnik/resource-group-control
edit pass: resource-group-control
2 parents 504d14b + 2d6e2fc commit 8e5c3bd

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

articles/lab-services/resource-group-control.md

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,32 +17,33 @@ ms.author: spelluru
1717
---
1818

1919
# 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:
2122

2223
- 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.
2425
- 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.
2627

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.
2829

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:
3132

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.
3637

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.
3839

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.
4344

4445
## 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.
4647

4748
```PowerShell
4849
[CmdletBinding()]
@@ -66,14 +67,14 @@ az resource update -g $labRg -n $labName --resource-type "Microsoft.DevTestLab/l
6667
"Done. New virtual machines will now be created in the resource group '$vmRg'."
6768
```
6869

69-
Invoke the script using the following command (ResourceGroup.ps1 is the file that contains the preceding script):
70+
Invoke the script by using the following command. ResourceGroup.ps1 is the file that contains the preceding script:
7071

7172
```PowerShell
7273
.\ResourceGroup.ps1 -subId <subscriptionID> -labRg <labRGNAme> -labName <LanName> -vmRg <RGName>
7374
```
7475

75-
## Use Azure Resource Manager template
76-
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:
7778

7879
```json
7980
{

0 commit comments

Comments
 (0)