Skip to content

Commit 3b238ea

Browse files
committed
touchups
1 parent be1b4ed commit 3b238ea

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

articles/devtest-labs/devtest-lab-create-template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ In this article, you learn how to create an Azure DevTest Labs virtual machine (
2323

2424
## Create the custom image
2525

26-
To create a custom image for DevTest Labs from a VHD or VHDX file, follow these steps:
26+
To create a custom image for DevTest Labs from a VHD file, follow these steps:
2727

2828
1. In the [Azure portal](https://go.microsoft.com/fwlink/p/?LinkID=525040), go to the lab that has the uploaded VHD file.
2929
1. On the lab **Overview** page, select **Configuration and policies** in the left navigation.

articles/devtest-labs/devtest-lab-set-lab-policy.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ This policy limits the VM sizes that users can create in the lab. The default po
5252
<a name="set-virtual-machines-per-user"></a>
5353
### Virtual machines per user
5454

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**.
5656

5757
1. On the lab's **Configuration and policies** page, select **Virtual machines per user** from the left navigation.
5858
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
6969

7070
### Virtual machines per lab
7171

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**.
7373

7474
1. On the lab's **Configuration and policies** page, select **Virtual machines per lab** from the left navigation.
7575
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
8080

8181
:::image type="content" source="./media/devtest-lab-set-lab-policy/max-vms-per-lab.png" alt-text="Screenshot showing VMs per lab.":::
8282

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

8585
<a name="set-auto-shutdown"></a>
8686
### Autoshutdown
@@ -96,7 +96,7 @@ Autoshutdown helps minimize lab waste by shutting down lab VMs at a specific tim
9696

9797
:::image type="content" source="./media/devtest-lab-set-lab-policy/auto-shutdown.png" alt-text="Screenshot showing Auto shutdown.":::
9898

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

101101
1. Select the VM from **My virtual machines** on the lab **Overview** page.
102102
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
109109
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**.
110110

111111
> [!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.
113113
114114
1. On the lab's **Configuration and policies** page, select **Auto-start** from the left navigation.
115115
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
131131
1. On the lab's **Configuration and policies** page, select **Auto shutdown policy** from the left navigation.
132132
1. Select one of the following options:
133133

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.
136136
- **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.
137137

138138
1. Select **Save**.
-14.5 KB
Loading

articles/devtest-labs/samples-powershell.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
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.
44
ms.topic: sample
55
ms.custom: devx-track-azurepowershell, UpdateFrequency2
66
ms.author: rosemalcolm
@@ -37,7 +37,7 @@ To use the script, replace the parameter values under the `# Values to change` c
3737
This script uses the following commands:
3838

3939
- [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.
4141

4242
```powershell
4343
# Values to change
@@ -67,7 +67,7 @@ This script uses the following commands:
6767

6868
- [Get-AzProviderOperation](/powershell/module/az.resources/get-azprovideroperation): Lists all the available operations for the `Microsoft.DevTestLab` resource provider.
6969
- [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.
7171
- [New-AzRoleAssignment](/powershell/module/az.resources/new-azroleassignment): Assigns the custom role to the specified user at the specified scope.
7272

7373
```powershell
@@ -359,15 +359,15 @@ Set-PolicyChanges $lab $policyChanges
359359

360360
## Create a custom image from a VHD file
361361

362-
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.
363363

364364
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.
365365

366366
This script uses the following commands:
367367

368368
- [Get-AzResource](/powershell/module/az.resources/get-azresource): Gets the lab and lab storage account resources.
369369
- [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.
371371

372372
```powershell
373373
# Values to change

articles/devtest-labs/tutorial-use-custom-lab.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ ms.custom: UpdateFrequency2
1010
#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.
1111
---
1212

13-
# Access, claim, and connect to a DevTest labs VM
13+
# Access, claim, and connect to a DevTest Labs VM
1414

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

1717
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.
1818

0 commit comments

Comments
 (0)