Skip to main content

labs

Creates, updates, deletes, gets or lists a labs resource.

Overview

Namelabs
TypeResource
Idazure_extras.education.labs

Fields

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
namestringThe name of the resource
propertiesobjectLab detail result properties.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

NameAccessible byRequired ParamsDescription
getSELECTbillingAccountName, billingProfileName, invoiceSectionNameGet the details for a specific lab associated with the provided billing account name, billing profile name, and invoice section name.
listSELECTbillingAccountName, billingProfileName, invoiceSectionNameGet the details for a specific lab associated with the provided billing account name, billing profile name, and invoice section name.
list_allSELECTbillingAccountName, billingProfileNameGet a list of labs associated with the provided billing account name and billing profile name.
create_or_updateINSERTbillingAccountName, billingProfileName, invoiceSectionNameCreate a new lab or update a previously created lab.
deleteDELETEbillingAccountName, billingProfileName, invoiceSectionNameDelete a specific lab associated with the provided billing account name, billing profile name, and invoice section name. Note all students must be removed from the lab in order to delete the lab.
generate_invite_codeEXECbillingAccountName, billingProfileName, invoiceSectionNameGenerate invite code for a lab

SELECT examples

Get a list of labs associated with the provided billing account name and billing profile name.

SELECT
id,
name,
properties,
systemData,
type
FROM azure_extras.education.labs
WHERE billingAccountName = '{{ billingAccountName }}'
AND billingProfileName = '{{ billingProfileName }}';

INSERT example

Use the following StackQL query and manifest file to create a new labs resource.

/*+ create */
INSERT INTO azure_extras.education.labs (
billingAccountName,
billingProfileName,
invoiceSectionName,
properties
)
SELECT
'{{ billingAccountName }}',
'{{ billingProfileName }}',
'{{ invoiceSectionName }}',
'{{ properties }}'
;

DELETE example

Deletes the specified labs resource.

/*+ delete */
DELETE FROM azure_extras.education.labs
WHERE billingAccountName = '{{ billingAccountName }}'
AND billingProfileName = '{{ billingProfileName }}'
AND invoiceSectionName = '{{ invoiceSectionName }}';