Azure Lab Services REST API Send Invitation Email

asked 2020-02-13T18:45:04.45+00:00
David Downing 741 Reputation points

Hello,

I'm trying to use a REST API to send an invitation to the users. From "Users" there is an "Invite All" link... I'm trying to automate this.

Thank you,
David

Azure Lab Services
Azure Lab Services
An Azure service that is used to set up labs for classrooms, trials, development and testing, and other scenarios.
215 questions
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. answered 2020-02-19T20:10:49.903+00:00
    Samara Soucy - MSFT 21 Reputation points

    As with the other questions (1) (2) this can be accomplished using the 2019-01-01-preview version of the API that is not in the documentation. As with the others, as a preview feature, the endpoint could change without notice.

    I've discussed this with the product team, and they are working on an API update that will be a later API version than 2019-01-01. Once those updates are ready, the documentation will be updated with that newer version.

    URL:

    POST https://management.azure.com/subscriptions/{TenantID}/resourcegroups/{ResourceGroup}/providers/microsoft.labservicesl/labaccounts/{LabAccountName}/labs/{LabName}/sendEmail?api-version=2019-01-01-preview  
    

    Body for this one is fairly simple:

    {  
        "emailAddresses": ["{email 1}", "{email 2}"],  
        "extraMessage": "{custom message}"  
    }