Skip to content

Commit 86b7a05

Browse files
authored
Merge pull request #219772 from ntrogh/als-creator-role
[Azure Lab Services] Added troubleshooting for unauthorized lab access
2 parents aa63ca4 + f9cbeb6 commit 86b7a05

6 files changed

+36
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
ms.service: lab-services
3+
ms.topic: include
4+
author: ntrogh
5+
ms.author: nicktrog
6+
ms.date: 11/29/2022
7+
---
8+
9+
### Lab creation fails with `You are not authorized to access this resource`
10+
11+
When you create a new lab plan, it might take a few minutes for the permissions to propagate to the lab level. You can assign the Lab Creator role at the resource group level to prevent this behavior:
12+
13+
1. In the [Azure portal](https://portal.azure.com), go to the resource group that contains the lab plan.
14+
1. Select **Access control (IAM)** from the left navigation.
15+
1. Select **Add** > **Add role assignment**.
16+
1. Assign the **Lab Creator** role to the user account.

articles/lab-services/quick-create-lab-plan-portal.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ When no longer needed, you can delete the resource group, lab plan, and all rela
5757
1. At the top of the page for the resource group, select **Delete resource group**.
5858
1. A page will open warning you that you're about to delete resources. Type the name of the resource group and select **Delete** to finish deleting the resources and the resource group.
5959

60+
## Troubleshooting
61+
62+
[!INCLUDE [Troubleshoot not authorized error](./includes/lab-services-troubleshoot-not-authorized.md)]
63+
6064
## Next steps
6165

6266
In this quickstart, you created a resource group and a lab plan.

articles/lab-services/quick-create-lab-portal.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ On the tile for the lab, select three dots (...) in the corner, and then select
6666

6767
On the **Delete lab** dialog box, select **Delete** to continue with the deletion.
6868

69+
## Troubleshooting
70+
71+
[!INCLUDE [Troubleshoot not authorized error](./includes/lab-services-troubleshoot-not-authorized.md)]
72+
6973
## Next steps
7074

7175
In this quickstart, you created a lab with Azure Lab Services. To learn more about advanced options for labs, see [Tutorial: Create and publish a lab](tutorial-setup-lab.md).

articles/lab-services/tutorial-create-lab-with-advanced-networking.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,10 @@ If you're not going to continue to use this application, delete the virtual netw
308308
1. Select **Delete resource group**.
309309
1. To confirm the deletion, type the name of the resource group
310310

311+
## Troubleshooting
312+
313+
[!INCLUDE [Troubleshoot not authorized error](./includes/lab-services-troubleshoot-not-authorized.md)]
314+
311315
## Next steps
312316

313317
>[!div class="nextstepaction"]

articles/lab-services/tutorial-setup-lab-plan.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ The following steps illustrate how to use the Azure portal to create a lab plan
5151

5252
[!INCLUDE [Add Lab Creator role](./includes/lab-services-add-lab-creator.md)]
5353

54+
## Troubleshooting
55+
56+
[!INCLUDE [Troubleshoot not authorized error](./includes/lab-services-troubleshoot-not-authorized.md)]
57+
5458
## Next steps
5559

5660
In this tutorial, you created a lab plan and gave lab creation permissions to an educator. To learn about how to create a lab as an educator, advance to the next tutorial:

articles/lab-services/tutorial-setup-lab.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,10 @@ By default, the **Restrict access** option, found on the **Users** page, is turn
172172

173173
For more information about managing usage of student VMs, see [How to configure student usage](how-to-configure-student-usage.md).
174174

175+
## Troubleshooting
176+
177+
[!INCLUDE [Troubleshoot not authorized error](./includes/lab-services-troubleshoot-not-authorized.md)]
178+
175179
## Next steps
176180

177181
In this tutorial, you created a lab for your class in Azure. To learn how a student can access a VM in the lab using the registration link, advance to the next tutorial.

0 commit comments

Comments
 (0)