Skip to content

Commit 4cc988d

Browse files
committed
some acrolinx & fixes
1 parent af78250 commit 4cc988d

File tree

5 files changed

+34
-26
lines changed

5 files changed

+34
-26
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ description: Use the Azure portal to create an Azure DevTest Labs virtual machin
44
ms.topic: how-to
55
ms.author: rosemalcolm
66
author: RoseHJM
7-
ms.date: 03/26/2025
7+
ms.date: 03/28/2025
88
ms.custom: UpdateFrequency2
99

10-
#customer intent: As a lab user, I want to add artifacts to my VMs so I can use them to run scripts or commands, install tools or applications, or take other actions on my VMs.
10+
#customer intent: As a lab user, I want to create lab VM custom images by using VHD files, so I can easily provide a variety of images to lab users for creating VMs.
11+
1112
---
1213

1314
# Create a custom image for Azure DevTest Labs virtual machines from VHD files
@@ -48,9 +49,9 @@ To create a custom image for DevTest Labs from a VHD or VHDX file, follow these
4849

4950
After creation, the custom image is stored in the lab's storage account, and appears in the list of VM base images for the lab. Lab users can create new VMs based on the custom image.
5051

51-
![Screenshot that shows the Custom images available in the list of base images.](media/devtest-lab-create-template/custom-image-available-as-base.png)
52+
:::image type="content" source="media/devtest-lab-create-template/custom-image-available-as-base.png" alt-text="Screenshot that shows the Custom images available in the list of base images.":::
5253

53-
## Next steps
54+
## Related content
5455

5556
- [Add a VM to your lab](devtest-lab-add-vm.md)
5657
- [Compare custom images and formulas in DevTest Labs](devtest-lab-comparing-vm-base-image-types.md)

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

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@ description: Learn how to define lab policies such as VM sizes, maximum VMs per
44
ms.topic: how-to
55
ms.author: rosemalcolm
66
author: RoseHJM
7-
ms.date: 03/27/2025
7+
ms.date: 03/28/2025
88
ms.custom: UpdateFrequency2
9+
10+
#customer intent: As a lab administrator, I want to be able to set policies like allowed numbers of VMs per user and shutdown schedules, so I can control lab costs and improve manageability.
911
---
1012

1113
# Manage lab policies in Azure DevTest Labs
1214

13-
This article describes how Azure DevTest Labs administrators can manage lab policies to control lab costs, minimize waste, and improve managability. Lab policies include:
15+
This article describes how Azure DevTest Labs administrators can manage lab policies to control lab costs, minimize waste, and improve manageability. Lab policies you can set include:
1416

15-
- Internal support
1617
- Allowed virtual machine (VM) sizes
1718
- Maximum VMs per user
1819
- Maximum VMs per lab
@@ -22,7 +23,7 @@ This article describes how Azure DevTest Labs administrators can manage lab poli
2223

2324
## Prerequisites
2425

25-
**Contributor** or **Owner** level permissions to the lab.
26+
**Contributor** or **Owner** level permissions in the lab.
2627

2728
## Set lab policies
2829

@@ -34,6 +35,7 @@ On the **Configuration and policies** page, select the policy you want to config
3435

3536
:::image type="content" source="./media/devtest-lab-set-lab-policy/policies-menu.png" alt-text="Screenshot that shows a lab's Configuration and Policies options.":::
3637

38+
<a name="set-allowed-virtual-machine-sizes"></a>
3739
### Allowed virtual machine sizes
3840

3941
This policy specifies the VM sizes that users can create in the lab.
@@ -45,6 +47,7 @@ This policy specifies the VM sizes that users can create in the lab.
4547

4648
:::image type="content" source="./media/devtest-lab-set-lab-policy/allowed-vm-sizes.png" alt-text="Screenshot showing Allowed VM sizes.":::
4749

50+
<a name="set-virtual-machines-per-user"></a>
4851
### Virtual machines per user
4952

5053
This policy specifies the maximum number of VMs that an individual lab user can claim or create.
@@ -98,6 +101,7 @@ By default, autoshutdown applies to all lab VMs. If allowed by [autoshutdown pol
98101

99102
For more information about autoshutdown and sending notifications, see [Configure autoshutdown for labs and VMs in DevTest Labs](devtest-lab-auto-shutdown.md).
100103

104+
<a name="set-autostart"></a>
101105
### Autostart
102106

103107
Autostart policy helps you minimize waste by specifying a specific time of day and days of the week to start up lab VMs.
@@ -114,6 +118,7 @@ Autostart policy helps you minimize waste by specifying a specific time of day a
114118

115119
For more information and details about autostart policy, see [Start up lab virtual machines automatically](devtest-lab-auto-startup-vm.yml).
116120

121+
<a name="set-auto-shutdown-policy"></a>
117122
### Autoshutdown policy
118123

119124
If you set autoshutdown for lab VMs, you can also set a policy to let lab users override the lab autoshutdown settings for their own VMs. You can set autoshutdown policy to allow lab users full control, partial control, or no control over their own VMs' autoshutdown activity.
9.29 KB
Loading

articles/devtest-labs/samples-powershell.md

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,31 @@
11
---
22
title: Azure PowerShell Samples
3-
description: Use these Azure PowerShell scripts for DevTest Labs activities like adding lab users, creating and assigning 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 lab users, creating custom lab roles, and allowing specific lab VM sizes and Marketplace images.
44
ms.topic: sample
55
ms.custom: devx-track-azurepowershell, UpdateFrequency2
66
ms.author: rosemalcolm
77
author: RoseHJM
8-
ms.date: 03/27/2025
8+
ms.date: 03/28/2025
9+
10+
#customer intent: As a lab administrator, I want to run Azure PowerShell scripts to add users, roles, VM sizes, and Marketplace images, so I can easily customize the lab to meet our needs.
911
---
1012

11-
# Azure PowerShell samples for Azure Lab Services
13+
# Azure PowerShell samples for Azure DevTest Labs
1214

1315
This article includes the following sample Azure PowerShell scripts for Azure DevTest Labs:
1416

1517
- [Add an external user to a lab](#add-an-external-user-to-a-lab)
16-
- [Create a custom role in a lab](#create-a-custom-role-in-a-lab)
17-
- [Set allowed virtual machine (VM) sizes for a lab](#set-allowed-virtual-machine-sizes)
18+
- [Create and assign a custom role in a lab](#create-and-assign-a-custom-lab-user-role)
19+
- [Set allowed virtual machine (VM) sizes for a lab](#set-allowed-vm-sizes)
1820
- [Add Marketplace images to a lab](#add-a-marketplace-image-to-a-lab)
1921
- [Create a custom image from a virtual hard drive (VHD)](#create-a-custom-image-from-a-vhd-file)
2022

2123
## Prerequisites
2224

23-
- Adding or assigning users or roles requires **Owner** role in a lab, or **Owner** or **User Access Administrator** role in the Azure subscription that contains the lab.
24-
- Setting allowed lab VM sizes, adding a Marketplace image, or creating a custom image require at least **Contributor** role in the lab or the Azure subscription.
25-
- Azure PowerShell. You can use [Azure Cloud Shell](/azure/cloud-shell/quickstart) or [install PowerShell locally](/powershell/azure/install-azure-powershell).
26-
- In Cloud Shell, select the **PowerShell** experience.
25+
- To add or assign users or roles: **Owner** role in a lab, or **Owner** or **User Access Administrator** role in the Azure subscription that contains the lab.
26+
- To set allowed lab VM sizes, add a Marketplace image, or create a custom image: At least **Contributor** role in the lab or the Azure subscription.
27+
- All scripts require Azure PowerShell. You can use [Azure Cloud Shell](/azure/cloud-shell/quickstart) or [install PowerShell locally](/powershell/azure/install-azure-powershell).
28+
- In Cloud Shell, select the **PowerShell** environment.
2729
- For a local PowerShell installation, run `Update-Module -Name Az` to get the latest version of Azure PowerShell, and run [Connect-AzAccount](/powershell/module/az.accounts/connect-azaccount) to sign in to Azure. If you have multiple Azure subscriptions, use `Set-AzContext -SubscriptionId "<SubscriptionId>"` to provide the subscription ID you want to use.
2830

2931
## Add an external user to a lab
@@ -52,14 +54,14 @@ Select-AzSubscription -SubscriptionId $subscriptionId
5254
# Get the user object.
5355
$adObject = Get-AzADUser -SearchString $userDisplayName
5456
55-
# Assigns the role.
57+
# Assign the role.
5658
$labId = ('/subscriptions/' + $subscriptionId + '/resourceGroups/' + $labResourceGroup + '/providers/Microsoft.DevTestLab/labs/' + $labName)
5759
New-AzRoleAssignment -ObjectId $adObject.Id -RoleDefinitionName 'DevTest Labs User' -Scope $labId
5860
```
5961

6062
## Create and assign a custom lab user role
6163

62-
This sample PowerShell script creates a custom role that allows lab users to modify lab policies, and assigns the new role to an external user. The user to assign must be in the organization's Microsoft Entra ID.
64+
This sample PowerShell script creates a custom role that allows lab users to modify lab policies, and assigns the new role to an external user. The user to assign must be in the organization's Microsoft Entra ID.
6365

6466
To use the script, replace the parameter values under the `# Values to change` comment with your own values. You can get the `subscriptionId`, `rgName`, and `labName` values from the lab's main page in the Azure portal.
6567

@@ -365,7 +367,7 @@ Set-PolicyChanges $lab $policyChanges
365367

366368
## Create a custom image from a VHD file
367369

368-
This sample PowerShell script creates a custom image in DevTest Labs from a Windows VHD file. The script requires a VHD file to be uploaded to the Azure Storage account for the lab.
370+
This sample PowerShell script creates a custom image in DevTest Labs from a VHD file. The script requires a Windows VHD file to be uploaded to the Azure Storage account for the lab.
369371

370372
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.
371373

@@ -382,9 +384,9 @@ This script uses the following commands:
382384
$subscriptionId = '<Azure subscription ID>'
383385
$labRg = '<Lab resource group name>'
384386
$labName = '<Lab name>'
385-
$vhdUri = '<VHD URI>'
387+
$vhdUri = '<URI for the uploaded VHD>'
386388
$customImageName = '<Name for the custom image>'
387-
$customImageDescription = '<Description for the custom image'
389+
$customImageDescription = '<Description for the custom image>'
388390
389391
# Select the Azure subscription.
390392
Select-AzSubscription -SubscriptionId $subscriptionId

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ description: Learn how to claim, unclaim, delete, and connect to a DevTest Labs
44
ms.topic: tutorial
55
ms.author: rosemalcolm
66
author: RoseHJM
7-
ms.date: 03/26/2025
7+
ms.date: 03/28/2025
88
ms.custom: UpdateFrequency2
99

10-
#customer intent: As a lab user, I want to be able to claim ownership and connect to lab VMs so I can use available VMs to do my work.
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.
1111
---
1212

1313
# Claim and connect to a DevTest labs VM
@@ -53,7 +53,7 @@ To connect to a VM, it must be running. An unclaimed claimable VM is stopped. Wh
5353

5454
:::image type="content" source="./media/tutorial-use-custom-lab/my-virtual-machines.png" alt-text="Screenshot of VM under My virtual machines.":::
5555

56-
1. If available, select **Connect via Bastion** from the context menu. In the **Connect via Bastion** pane, select whether to open the VM in a new window, enter the VM username and password, and then select **Connect**..
56+
1. If available, select **Connect via Bastion** from the context menu. In the **Connect via Bastion** pane, select whether to open the VM in a new window, enter the VM username and password, and then select **Connect**.
5757
1. If **Connect via Bastion** isn't available:
5858
- For a Windows VM, select **Connect via RDP**, and follow instructions at [Connect to a Windows VM in your lab](connect-windows-virtual-machine.md).
5959
- For a Linux VM, select **Connect via Azure CLI** or **Connect via Native SSH**, and follow instructions at [Connect to a Linux VM in your lab](connect-linux-virtual-machine.md).
@@ -81,7 +81,7 @@ After you're done using the VM, you can unclaim it so someone else can claim it,
8181

8282
## Delete a lab VM
8383

84-
When you're done using a VM, you can delete it unless someone else has claimed it. To delete an individual lab VM, follow these steps:
84+
When you're done using a VM, you can delete it unless someone else claims it. To delete an individual lab VM, follow these steps:
8585

8686
1. Select the ellipsis **...** next to the VM in the **My virtual machines** list or on the **Claimable virtual machines** page, and select **Delete** from the context menu.
8787
1. On the **Are you sure you want to delete it** page, select **Delete**.

0 commit comments

Comments
 (0)