Skip to content

Commit 257238e

Browse files
Merge pull request #228979 from RoseHJM/dtl-remove-faq
DTL remove FAQ
2 parents 2f8b9e5 + b1fdf1c commit 257238e

24 files changed

+197
-465
lines changed

.openpublishing.redirection.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10808,6 +10808,11 @@
1080810808
"redirect_url": "/azure/devtest-labs/add-artifact-repository",
1080910809
"redirect_document_id": false
1081010810
},
10811+
{
10812+
"source_path_from_root": "/articles/devtest-labs/devtest-lab-faq.md",
10813+
"redirect_url": "/azure/devtest-labs/",
10814+
"redirect_document_id": false
10815+
},
1081110816
{
1081210817
"source_path_from_root": "/articles/lab-services/devtest-lab-add-claimable-vm.md",
1081310818
"redirect_url": "/azure/devtest-labs/devtest-lab-add-claimable-vm",

articles/devtest-labs/TOC.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,8 @@
253253
href: troubleshoot-vm-environment-creation-failures.md
254254
- name: Troubleshoot issues when applying artifacts
255255
href: devtest-lab-troubleshoot-apply-artifacts.md
256+
- name: Troubleshoot VM deployment failures
257+
href: troubleshoot-vm-deployment-failures.md
256258
- name: Monitor
257259
items:
258260
- name: View activity logs
@@ -283,5 +285,3 @@
283285
href: https://azure.microsoft.com/pricing/details/devtest-lab/
284286
- name: DevTest Labs Developer Community
285287
href: https://aka.ms/dtl/communityforum
286-
- name: Frequently asked questions
287-
href: devtest-lab-faq.yml

articles/devtest-labs/deliver-proof-concept.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ Learn about Azure and DevTest Labs by using the following resources:
5050
- Alternatively, you can use a [Visual Studio subscription](https://azure.microsoft.com/pricing/member-offers/visual-studio-subscriptions) for the pilot deployment, and take advantage of free Azure credits.
5151

5252
- You can also create and use a [free Azure account](https://azure.microsoft.com/free/search/?&OCID=AID719825_SEM_g4lyBqgB&lnkd=Bing_Azure_Brand&msclkid=ecc4275a31b61375749e7a5322c20de8&dclid=CMGW5-m78-ICFaLt4QodmUwGtQ) for the pilot.
53+
54+
- To use Windows client OS images (Windows 7 or a later version) for your development or testing in Azure, take one of the following steps:
55+
- [Buy an MSDN subscription](https://www.visualstudio.com/products/how-to-buy-vs).
56+
- If you have an Enterprise Agreement, create an Azure subscription with the [Enterprise Dev/Test offer](https://azure.microsoft.com/offers/ms-azr-0148p).
57+
58+
For more information about the Azure credits for each MSDN offering, see [Monthly Azure credit for Visual Studio subscribers](https://azure.microsoft.com/pricing/member-offers/msdn-benefits-details/).
59+
5360

5461
### Enroll all users in Azure AD
5562

articles/devtest-labs/devtest-lab-add-devtest-user.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ The DevTest Labs User role can take the following actions in DevTest Labs:
5858
5959
## Add Owners, Contributors, or DevTest Labs Users
6060

61-
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).
61+
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)](/windows-server/identity/ad-ds/manage/understand-microsoft-accounts).
6262

6363
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, labs, and lab VMs and resources. Subscription owners can add Owners, Contributors, and DevTest Labs Users to labs in the subscription.
6464

articles/devtest-labs/devtest-lab-add-vm.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,16 @@ Or, if you chose **Make this machine claimable** during VM creation, select **Cl
8282

8383
:::image type="content" source="./media/devtest-lab-add-vm/portal-lab-vm-creation-status.png" alt-text="Lab VM creation status page.":::
8484

85+
When you create a VM in DevTest Labs, you're given permission to access that VM. You can view the VM both on the labs page and on the **Virtual Machines** page. Users assigned to the **DevTest Labs Owner** role can see all VMs that were created in the lab on the lab's **All Virtual Machines** page. However, users who have the **DevTest Labs User** role are not automatically granted read access to VM resources that other users have created. So, those VMs are not displayed on the **Virtual Machines** page.
86+
87+
## Move existing Azure VMs into a DevTest Labs lab
88+
To copy your existing VMs to DevTest Labs:
89+
90+
1. Copy the VHD file of your existing VM by using a [Windows PowerShell script](https://github.com/Azure/azure-devtestlab/blob/master/samples/DevTestLabs/Scripts/CopyVirtualMachines/CopyAzVHDFromVMToLab.ps1).
91+
2. Create the [custom image](devtest-lab-create-template.md) inside your DevTest Labs lab.
92+
3. Create a VM in the lab from your custom image.
93+
94+
8595
<a name="add-artifacts-after-installation"></a>
8696
## Next steps
8797

articles/devtest-labs/devtest-lab-attach-detach-data-disk.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.date: 03/29/2022
99

1010
# Attach or detach a data disk for a lab virtual machine in Azure DevTest Labs
1111

12-
This article explains how to attach and detach a lab virtual machine (VM) data disk in Azure DevTest Labs. You can create, attach, detach, and reattach [data disks](../virtual-machines/managed-disks-overview.md) for lab VMs that you own. This functionality is useful for managing storage or software separately from individual VMs.
12+
This article explains how to attach and detach a lab virtual machine (VM) data disk in Azure DevTest Labs. You can create, attach, detach, and reattach multiple [data disks](../virtual-machines/managed-disks-overview.md) for lab VMs that you own. This functionality is useful for managing storage or software separately from individual VMs.
1313

1414
## Prerequisites
1515

articles/devtest-labs/devtest-lab-comparing-vm-base-image-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ms.date: 08/26/2021
1111
Both [custom images](devtest-lab-create-template.md) and [formulas](devtest-lab-manage-formulas.md) can be used as bases for [creating new lab virtual machines (VMs)](devtest-lab-add-vm.md). The key distinction between custom images and formulas is that a custom image is simply an image based on a virtual hard drive (VHD). A formula is
1212
an image based on a VHD plus preconfigured settings. Preconfigured settings can include VM size, virtual network, subnet, and artifacts. These preconfigured settings are set up with default values that you can override at the time of VM creation.
1313

14-
In this article, you'll learn the pros and cons of using custom images versus using formulas. You can also read [How to create a custom image from a VM](devtest-lab-create-custom-image-from-vm-using-portal.md) and the [DevTest Labs FAQ](devtest-lab-faq.yml).
14+
In this article, you'll learn the pros and cons of using custom images versus using formulas. You can also read [How to create a custom image from a VM](devtest-lab-create-custom-image-from-vm-using-portal.md) and [Compare custom images and formulas in DevTest Labs](devtest-lab-comparing-vm-base-image-types.md).
1515

1616
## Custom image benefits
1717
Custom images provide a static, immutable way to create VMs from the environment you want.

articles/devtest-labs/devtest-lab-delete-lab-vm.md

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,40 @@ To delete a VM from a lab:
4343

4444
1. To check deletion status, select the **Notifications** icon on the Azure menu bar.
4545

46+
47+
## Automate the process of deleting all the VMs in a lab
48+
49+
As a lab owner, you can delete VMs from your lab in the Azure portal. You also can delete all the VMs in your lab by using a PowerShell script. In the following example, under the **values to change** comment, modify the parameter values. You can retrieve the `subscriptionId`, `labResourceGroup`, and `labName` values from the lab pane in the Azure portal.
50+
51+
```powershell
52+
# Delete all the VMs in a lab.
53+
54+
# Values to change:
55+
$subscriptionId = "<Enter Azure subscription ID here>"
56+
$labResourceGroup = "<Enter lab's resource group here>"
57+
$labName = "<Enter lab name here>"
58+
59+
# Sign in to your Azure account.
60+
Connect-AzAccount
61+
62+
# Select the Azure subscription that has the lab. This step is optional
63+
# if you have only one subscription.
64+
Select-AzSubscription -SubscriptionId $subscriptionId
65+
66+
# Get the lab that has the VMs that you want to delete.
67+
$lab = Get-AzResource -ResourceId ('subscriptions/' + $subscriptionId + '/resourceGroups/' + $labResourceGroup + '/providers/Microsoft.DevTestLab/labs/' + $labName)
68+
69+
# Get the VMs from that lab.
70+
$labVMs = Get-AzResource | Where-Object {
71+
$_.ResourceType -eq 'microsoft.devtestlab/labs/virtualmachines' -and
72+
$_.Name -like "$($lab.Name)/*"}
73+
74+
# Delete the VMs.
75+
foreach($labVM in $labVMs)
76+
{
77+
Remove-AzResource -ResourceId $labVM.ResourceId -Force
78+
}
79+
```
4680
## Delete a lab
4781

4882
When you delete a lab from a resource group, DevTest Labs automatically deletes:
@@ -63,7 +97,7 @@ To delete a lab:
6397
![Screenshot of the Delete button on the lab Overview page.](media/devtest-lab-delete-lab-vm/delete-button.png)
6498

6599
1. On the **Are you sure you want to delete it?** page, under **Type the lab name**, type the lab name, and then select **Delete**.</br>
66-
The deletion of the lab and all it's resources is permanent, and cannot be undone.
100+
The deletion of the lab and all its resources is permanent, and cannot be undone.
67101

68102
![Screenshot of the lab deletion confirmation page.](media/devtest-lab-delete-lab-vm/confirm-delete.png)
69103

0 commit comments

Comments
 (0)