Azure DevTest Labs Create VMs under multiple subscriptions

Eben Krapfl 1 Reputation point
2022-05-09T21:07:56.477+00:00

I am curious if there is any way to setup Azure DevTest Labs to utilize different Azure subscriptions when creating VMs.

The use case I am asking for is for a small company where all of the developers have Visual Studio Enterprise subscriptions with monthly Azure credits allotted to them. We would like to setup DevTest Labs with some sort of "quick VMs" for devs to be able to spin up and use for day to day development and building. This seems like it is one of the purposes of DevTest Labs, as I understand it. But what I would like is to be able setup the DevTest Lab with all of the shared machine setup and things, and then have devs create the VMs using their own subscriptions (and their own Azure credits). Is that possible? It seems like DevTest Labs doesn't allow you a way to choose a subscription (or even a resource group, for that matter) at VM creation time. Am I missing something?

Thanks,
Eben

Azure DevTest Labs
Azure DevTest Labs
An Azure service that is used for provisioning development and test environments.
252 questions
{count} votes

1 answer

Sort by: Most helpful
  1. kobulloc-MSFT 22,556 Reputation points Microsoft Employee
    2022-05-13T06:51:18.76+00:00

    Hello, @Eben Krapfl !

    Scenario
    A small company where all of the developers have Visual Studio Enterprise subscriptions with monthly Azure credits allotted to them. What is the best way to spin up "quick VMs" for devs on different subscriptions?

    Recommendation
    Have the devs create Compute VMs using custom images:
    https://learn.microsoft.com/en-us/azure/virtual-machines/windows/capture-image-resource

    While DevTest Labs does have the ability to create VMs using Azure Compute Gallery (formerly Shared Image Gallery), each dev would need to create a separate DevTest Labs resource for themselves and consume the images provided through Azure Compute Gallery. While this would work, it's not an ideal solution and the better route would be to simply create Compute VM resources using custom images.

    Depending on your needs, you can also use Azure Compute Gallery which allows for more than 20 simultaneous deployments:
    https://learn.microsoft.com/en-us/azure/virtual-machines/shared-image-galleries

    0 comments No comments