Forum Discussion
Blocking access to a lab after the course has ended.
- Jan 17, 2023
You could set the quota for all students to 0 hours and make sure there are no further scheduled time. (https://learn.microsoft.com/azure/lab-services/how-to-configure-student-usage#set-quotas-for-users, https://learn.microsoft.com/azure/lab-services/how-to-configure-student-usage#set-additional-quotas-for-specific-users) This would prevent students from accessing the VM because they will be out of quota/homework/async time to use the VM. *If* later need to access the VM, you can then reset the password and access using the virtual machine pool page.
If you want to automate this, there are several SDKs including one for .NET, SDK, or you can call the REST APIs directly.
Hope that helps,
Elizabeth
You could set the quota for all students to 0 hours and make sure there are no further scheduled time. (https://learn.microsoft.com/azure/lab-services/how-to-configure-student-usage#set-quotas-for-users, https://learn.microsoft.com/azure/lab-services/how-to-configure-student-usage#set-additional-quotas-for-specific-users) This would prevent students from accessing the VM because they will be out of quota/homework/async time to use the VM. *If* later need to access the VM, you can then reset the password and access using the virtual machine pool page.
If you want to automate this, there are several SDKs including one for .NET, SDK, or you can call the REST APIs directly.
Hope that helps,
Elizabeth