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/devtest-labs/deploy-nested-template-environments.md
+10-8Lines changed: 10 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -5,23 +5,25 @@ ms.topic: how-to
5
5
ms.date: 01/23/2022
6
6
---
7
7
8
-
# Deploy DevTest Labs environments with nested ARM templates
8
+
# Deploy DevTest Labs environments by using nested templates
9
9
10
-
This article shows an example of nesting Azure Resource Manager (ARM) templates to deploy an Azure DevTest Labs environment. A nested deployment runs secondary ARM templates from within a main ARM template. Decomposing a deployment into a set of targeted, purpose-specific templates provides testing, reuse, and readability benefits. For general information and code samples using nested templates, see [Using linked and nested templates when deploying Azure resources](../azure-resource-manager/templates/linked-templates.md).
10
+
This article shows an example of nesting Azure Resource Manager (ARM) templates to deploy an Azure DevTest Labs environment. DevTest Labs environments contain multiple infrastructure-as-a-service (IaaS) virtual machines (VMs) with platform-as-a-service (PaaS) resources installed. You can provision PaaS resources and VMs by using ARM templates.
11
+
12
+
A nested deployment runs secondary ARM templates from within a main template. Decomposing a deployment into a set of targeted, purpose-specific templates provides testing, reuse, and readability benefits. For general information about nested templates, including code samples, see [Using linked and nested templates when deploying Azure resources](../azure-resource-manager/templates/linked-templates.md).
11
13
12
14
## Deploy nested templates with Visual Studio
13
15
14
-
You can create ARM templates from scratch, but Visual Studio has an Azure Resource Group project template that makes it easy to develop and debug templates. When you add a nested deployment resource to the main *azuredeploy.json*ARM template, Visual Studio adds the following items to make the template more flexible:
16
+
The Azure Resource Group project template in Visual Studio makes it easy to develop and debug ARM templates. When you add a nested template to the main *azuredeploy.json* template file, Visual Studio adds the following items to make the template more flexible:
15
17
16
-
-The subfolder with the secondary template and parameters files
17
-
- Variable names within the main template file
18
-
- Two key parameters that DevTest Labs uses for the storage location for new files, `_artifactsLocation` and `_artifactsLocationSasToken`
18
+
-A subfolder with the secondary template and parameters files
19
+
- Variable names in the main template file
20
+
- Two key parameters, `_artifactsLocation` and `_artifactsLocationSasToken`, which DevTest Labs uses for its file storage location.
19
21
20
-
In DevTest Labs, you store ARM templates in a Git repository that you link to the lab. When you use a template to create a new environment, the files move into an Azure Storage container in the lab. DevTest Labs identifies the `_artifactsLocation` and `_artifactsLocationSasToken` values, copies the subfolders to the storage container, and automatically inserts the location and Shared Access Signature (SaS) token into the parameters files.
22
+
In DevTest Labs, you store ARM templates in a Git repository that you link to the lab. When you use one of the linked repository templates to create a new environment, the deployment copies the template files into an Azure Storage container in the lab. When you add a nested template resource to the repository and main template file, Visual Studio identifies the `_artifactsLocation` and `_artifactsLocationSasToken` values, copies the subfolders to the storage container, and inserts the location and Shared Access Signature (SaS) token into the parameters files.
21
23
22
24
## Nested template folder structure
23
25
24
-
The Git repository folder for the following template example has a subfolder, *nestedtemplates*, with the nested template files *NestOne.json* and *NestOne.parameters.json*. The *azuredeploy.json* main template file builds the URI for the secondary templates by using the artifacts location, nested template folder, and nested template filename. The URI for the parameters file uses the artifacts location, nested template folder, and nested template parameters file. You can add more subfolders in the primary folder, but only a single level.
26
+
In the following template example, the Git repository folder has a subfolder, *nestedtemplates*, with the nested template files *NestOne.json* and *NestOne.parameters.json*. The *azuredeploy.json* main template file builds the URI for the secondary templates by using the artifacts location, nested template folder, and nested template filename. The URI for the parameters file is the artifacts location, nested template folder, and nested template parameters file. You can add more nested template subfolders to the primary folder at the same nesting level.
25
27
26
28
The following screenshot shows the project structure in Visual Studio:
Copy file name to clipboardExpand all lines: articles/devtest-labs/devtest-lab-add-devtest-user.md
+9-6Lines changed: 9 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,9 @@ ms.date: 01/21/2022
6
6
ms.custom: devx-track-azurepowershell
7
7
---
8
8
9
-
# Azure DevTest Labs owners, contributors, and users
9
+
# Add lab owners, contributors, and users in Azure DevTest Labs
10
10
11
-
This article describes the three built-in Azure DevTest Labs roles: *Owner*, *Contributor*, and *DevTest Labs User*, and how to add users with these roles to labs. DevTest Labs uses Azure [role-based access control](../role-based-access-control/overview.md) (Azure RBAC) to define roles that have only the necessary access to do certain lab tasks. This article describes the tasks each role can do, and how to add users to lab roles by using the Azure portal or an Azure PowerShell script.
11
+
Azure DevTest Labs uses Azure [role-based access control](../role-based-access-control/overview.md) (Azure RBAC) to define roles that have only the access necessary to do specific lab tasks. DevTest Labs has three built-in roles: *Owner*, *Contributor*, and *DevTest Labs User*. This article describes the tasks each role can do, and how to add members to lab roles by using the Azure portal or an Azure PowerShell script.
12
12
13
13
## Actions each role can take
14
14
@@ -39,7 +39,7 @@ Artifact tasks:
39
39
40
40
### Contributor
41
41
42
-
The lab Contributor role can take all the same actions as lab Owner, except it can't add users to labs.
42
+
The lab Contributor role can take all the same actions as lab Owner, except can't add users to labs.
43
43
44
44
### DevTest Labs User
45
45
@@ -56,7 +56,7 @@ The DevTest Labs User role can take the following actions in DevTest Labs:
56
56
57
57
## Add Owners, Contributors, or DevTest Labs Users
58
58
59
-
A lab Owner can add members to lab roles by using the Azure portal or an Azure PowerShell script. The user to add can be an external user with a valid [Microsoft account (MSA)](./devtest-lab-faq.yml).
59
+
A lab owner can add members to lab roles by using the Azure portal or an Azure PowerShell script. The user to add can be an external user with a valid [Microsoft account (MSA)](./devtest-lab-faq.yml).
60
60
61
61
Azure permissions propagate from parent scope to child scope. Owners of an Azure subscription that contains labs are automatically owners of the subscription's DevTest Labs service, the labs, and the VMs and other resources they contain. Subscription owners can add Owners, Contributors, and DevTest Labs Users to labs in the subscription.
62
62
@@ -65,10 +65,12 @@ Azure permissions propagate from parent scope to child scope. Owners of an Azure
65
65
66
66
### Prerequisites
67
67
68
+
To add members to a lab:
69
+
68
70
- You must be an Owner of the lab, either directly or by inheritance as a subscription owner.
69
71
- Sign in to the [Azure portal](https://portal.azure.com) as an [Owner](../role-based-access-control/built-in-roles.md#owner) or [User Access Administrator](../role-based-access-control/built-in-roles.md#user-access-administrator).
70
72
71
-
### Add a member to a lab by using the Azure portal
73
+
### Add a lab user by using the Azure portal
72
74
73
75
- To add a user at the subscription level, open the subscription page.
74
76
- To add a user at the lab level, open the resource group that has the lab, and select the lab from the list of resources.
@@ -79,7 +81,7 @@ Azure permissions propagate from parent scope to child scope. Owners of an Azure
79
81
80
82

81
83
82
-
1. On the **Add Role Assignment** page, select the **Owner**, **Contributor**, or **User** role, and then select **Next**.
84
+
1. On the **Add Role Assignment** page, select the **Owner**, **Contributor**, or **DevTest Labs User** role, and then select **Next**.
83
85
84
86

85
87
@@ -89,6 +91,7 @@ Azure permissions propagate from parent scope to child scope. Owners of an Azure
89
91
90
92
1. Select **Review + assign**, and after reviewing the details, select **Review + assign** again.
0 commit comments