Can I run Claim any on the lab and get in response the claimed VM information?

Mirit Sadon 21 Reputation points Microsoft Employee
2023-02-09T06:17:08.8733333+00:00

Can I run Claim any on the lab and get in response the vm information? current return value now is just the status of the request.

I want to use the lab as a pool of machines to run workloads on in a test environment.

each run is using the same user so I can't just run claim any and then go and search what was claimed.

Invoke-AzureRmResourceAction -ResourceId $v.ResourceId -Action "ClaimAnyVm" -Force | Out-Null

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

1 answer

Sort by: Most helpful
  1. KarishmaTiwari-MSFT 20,207 Reputation points Microsoft Employee
    2023-02-15T07:46:14.31+00:00

    Hi Mirit Sadon ,

    I got the confirmation from the Product team that -

    ClaimAny is a LRO (Long running operation). We don’t know which VM gets claimed at the time the request is made. So, the response does not have the VM details. Documentation here.

    If this helps clarifying your ask, please 'Accept Answer'. If you have further questions, let me know in the 'comments' or you can connect with me via Teams.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.