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/devtest-lab-set-lab-policy.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ This policy limits the VM sizes that users can create in the lab. The default po
52
52
<aname="set-virtual-machines-per-user"></a>
53
53
### Virtual machines per user
54
54
55
-
This policy specifies the maximum number of VMs and VMs using premium disks that an individual lab user can claim or create. The default policy setting is **Off**.
55
+
These two policies specify the maximum number of VMs and VMs using premium disks that an individual lab user can claim or create. The default setting for both policies is **Off**.
56
56
57
57
1. On the lab's **Configuration and policies** page, select **Virtual machines per user** from the left navigation.
58
58
1. On the **Virtual machines per user** page, under **Limit the number of virtual machines**, select **On** or **Off** to enable or disable the policy.
@@ -69,7 +69,7 @@ If a user tries to create or claim a VM after the user limit is met, an error me
69
69
70
70
### Virtual machines per lab
71
71
72
-
This policy specifies the maximum number of VMs that all users can create in the current lab. The default policy setting is **Off**.
72
+
These two policies specify the maximum number of VMs and VMs using premium disks that all users can create in the current lab. The default setting for both policies is **Off**.
73
73
74
74
1. On the lab's **Configuration and policies** page, select **Virtual machines per lab** from the left navigation.
75
75
1. On the **Virtual machines per lab** page, under **Limit the number of virtual machines**, select **On** or **Off** to enable or disable the policy.
@@ -80,7 +80,7 @@ This policy specifies the maximum number of VMs that all users can create in the
80
80
81
81
:::image type="content" source="./media/devtest-lab-set-lab-policy/max-vms-per-lab.png" alt-text="Screenshot showing VMs per lab.":::
82
82
83
-
If a user tries to create or claim a VM after the lab limit is met, an error message indicates that the VM can't be created or claimed.
83
+
If a user tries to create a VM after the lab limit is met, an error message indicates that the VM can't be created.
84
84
85
85
<aname="set-auto-shutdown"></a>
86
86
### Autoshutdown
@@ -96,7 +96,7 @@ Autoshutdown helps minimize lab waste by shutting down lab VMs at a specific tim
96
96
97
97
:::image type="content" source="./media/devtest-lab-set-lab-policy/auto-shutdown.png" alt-text="Screenshot showing Auto shutdown.":::
98
98
99
-
By default, autoshutdown applies to all lab VMs. If allowed by [autoshutdown policy](#autoshutdown-policy), lab users can override lab autoshutdown settings for their own individual lab VMs as follows:
99
+
By default, the autoshutdown schedule applies to all lab VMs. If allowed by [autoshutdown policy](#autoshutdown-policy), lab users can override lab autoshutdown settings for their own individual VMs. To set a shutdown schedule for an individual VM:
100
100
101
101
1. Select the VM from **My virtual machines** on the lab **Overview** page.
102
102
1. On the home page for the VM, select **Auto-shutdown** from the **Operations** section of the left navigation.
@@ -109,7 +109,7 @@ For more information about autoshutdown and sending notifications, see [Configur
109
109
Autostart policy helps you minimize waste by specifying a specific time of day and days of the week to start up lab VMs. The default policy setting is **No**.
110
110
111
111
> [!IMPORTANT]
112
-
> This policy isn't automatically applied to lab VMs. To apply this setting to VMs, open the VM's page and change its **Auto-start** setting.
112
+
> This policy isn't automatically applied to lab VMs. To apply this setting to individual VMs, open the VM's page and change its **Auto-start** setting.
113
113
114
114
1. On the lab's **Configuration and policies** page, select **Auto-start** from the left navigation.
115
115
1. Select **Yes** or **No** to enable or disable the policy.
@@ -131,8 +131,8 @@ If you set an autoshutdown schedule for lab VMs, you can also set a policy to le
131
131
1. On the lab's **Configuration and policies** page, select **Auto shutdown policy** from the left navigation.
132
132
1. Select one of the following options:
133
133
134
-
-**User sets a schedule and can opt out**: Lab users can override or opt out of lab autoshutdown. Lab users can override the lab schedule times, and they don't have to set any autoshutdown for their VMs. This setting is the default.
135
-
-**User sets a schedule and cannot opt out**: Lab users can override the lab shutdown schedule for their VMs, but they can't opt out of autoshutdown. This option ensures that every VM in the lab is on some autoshutdown schedule.
134
+
-**User sets a schedule and can opt out**: Lab users can override or opt out of lab autoshutdown. Lab users can override the lab autoshutdown schedule time, or set no autoshutdown for their VMs. This setting is the default.
135
+
-**User sets a schedule and cannot opt out**: Lab users can set the shutdown time for their own VMs, but they can't opt out of autoshutdown entirely. This option ensures that every VM in the lab is on some autoshutdown schedule.
136
136
-**User has no control over the schedule set by lab administrator**: Lab users can't override or opt out of the lab autoshutdown schedule. They can set up autoshutdown notifications for their own VMs.
Copy file name to clipboardExpand all lines: articles/devtest-labs/samples-powershell.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Azure PowerShell Samples
3
-
description: Use these Azure PowerShell scripts to do DevTest Labs activities like adding lab users, creating custom lab roles, and allowing specific lab VM sizes and Marketplace images.
3
+
description: Use these Azure PowerShell scripts for DevTest Labs activities like adding users, creating custom roles, and setting lab policies.
@@ -37,7 +37,7 @@ To use the script, replace the parameter values under the `# Values to change` c
37
37
This script uses the following commands:
38
38
39
39
-[Get-AzADUser](/powershell/module/az.resources/get-azaduser): Gets the user object from Microsoft Entra ID.
40
-
-[New-AzRoleAssignment](/powershell/module/az.resources/new-azroleassignment): Assigns the specified role to the specified user at the specified scope.
40
+
-[New-AzRoleAssignment](/powershell/module/az.resources/new-azroleassignment): Assigns the **DevTest Labs User** role to the specified user at the specified scope.
41
41
42
42
```powershell
43
43
# Values to change
@@ -67,7 +67,7 @@ This script uses the following commands:
67
67
68
68
-[Get-AzProviderOperation](/powershell/module/az.resources/get-azprovideroperation): Lists all the available operations for the `Microsoft.DevTestLab` resource provider.
69
69
-[Get-AzRoleDefinition](/powershell/module/az.resources/get-azroledefinition): Lists all the allowed actions for the **DevTest Labs User** role.
70
-
-[New-AzRoleDefinition](/powershell/module/az.resources/new-azroledefinition): Creates the new custom role.
70
+
-[New-AzRoleDefinition](/powershell/module/az.resources/new-azroledefinition): Creates the new **Policy Contributor**custom role.
71
71
-[New-AzRoleAssignment](/powershell/module/az.resources/new-azroleassignment): Assigns the custom role to the specified user at the specified scope.
This sample PowerShell script creates a custom image in DevTest Labs from a VHD file. This script requires a Windows VHD file uploaded to the lab's Azure Storage account, and uses a deployment template from the public [DevTest Labs template repository](https://github.com/Azure/azure-devtestlab/tree/master/samples/DevTestLabs/QuickStartTemplates/201-dtl-create-customimage-from-vhd).
362
+
This sample PowerShell script creates a DevTest Labs custom image from a VHD file by using a deployment template from the public [DevTest Labs template repository](https://github.com/Azure/azure-devtestlab/tree/master/samples/DevTestLabs/QuickStartTemplates/201-dtl-create-customimage-from-vhd). This script requires a Windows VHD file uploaded to the lab's Azure Storage account.
363
363
364
364
To use the script, replace the parameter values under the `# Values to change` comment with your own values. You can get the `subscriptionId`, `labRg`, and `labName` values from the lab's main page in the Azure portal. Get the `vhdUri` value from the Azure Storage container where you uploaded the VHD file.
365
365
366
366
This script uses the following commands:
367
367
368
368
-[Get-AzResource](/powershell/module/az.resources/get-azresource): Gets the lab and lab storage account resources.
369
369
-[Get-AzStorageAccountKey](/powershell/module/az.storage/get-azstorageaccountkey): Gets the access keys for the lab storage account.
370
-
-[New-AzResourceGroupDeployment](/powershell/module/az.resources/new-azresourcegroupdeployment): Deploys the custom image and resource group based on a template.
370
+
-[New-AzResourceGroupDeployment](/powershell/module/az.resources/new-azresourcegroupdeployment): Deploys the custom image and resource group based on the template.
Copy file name to clipboardExpand all lines: articles/devtest-labs/tutorial-use-custom-lab.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,9 @@ ms.custom: UpdateFrequency2
10
10
#customer intent: As a lab user, I want to be able to claim ownership and connect to lab VMs, so I can use preconfigured VMs to do my work.
11
11
---
12
12
13
-
# Access, claim, and connect to a DevTest labs VM
13
+
# Access, claim, and connect to a DevTest Labs VM
14
14
15
-
When you create a virtual machine (VM) in Azure DevTest labs, you automatically own the VM. You can connect to the VM and see it listed in **My VMs** on the Azure portal lab page.
15
+
When you create a virtual machine (VM) in Azure DevTest Labs, you automatically own the VM. You can connect to the VM and see it listed in **My VMs** on the Azure portal lab page.
16
16
17
17
As a lab user, you can also claim ownership of existing claimable lab VMs. Once you claim a VM, you see it listed in **My VMs** and can connect to and manage it as your own VM.
0 commit comments