Skip to main content

students

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

Overview

Namestudents
TypeResource
Idazure_extras.education.students

Fields

The following fields are returned by SELECT queries:

student detail.

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
namestringThe name of the resource
propertiesobjectGet student response properties.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbillingAccountName, billingProfileName, invoiceSectionName, studentAliasGet the details for a specific student in the specified lab by student alias
listselectbillingAccountName, billingProfileName, invoiceSectionNameincludeDeletedGet a list of details about students that are associated with the specified lab.
create_or_updateinsertbillingAccountName, billingProfileName, invoiceSectionName, studentAliasCreate and add a new student to the specified lab or update the details of an existing student in a lab. Note the student must have a valid tenant to accept the lab after they have been added to lab.
deletedeletebillingAccountName, billingProfileName, invoiceSectionName, studentAliasDelete the specified student based on the student alias.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
billingAccountNamestringThe ID that uniquely identifies a billing account.
billingProfileNamestringThe ID that uniquely identifies a billing profile.
invoiceSectionNamestringThe ID that uniquely identifies an invoice section.
studentAliasstringStudent alias.
includeDeletedbooleanMay be used to show deleted items.

SELECT examples

Get the details for a specific student in the specified lab by student alias

SELECT
id,
name,
properties,
systemData,
type
FROM azure_extras.education.students
WHERE billingAccountName = '{{ billingAccountName }}' -- required
AND billingProfileName = '{{ billingProfileName }}' -- required
AND invoiceSectionName = '{{ invoiceSectionName }}' -- required
AND studentAlias = '{{ studentAlias }}' -- required
;

INSERT examples

Create and add a new student to the specified lab or update the details of an existing student in a lab. Note the student must have a valid tenant to accept the lab after they have been added to lab.

INSERT INTO azure_extras.education.students (
data__properties,
billingAccountName,
billingProfileName,
invoiceSectionName,
studentAlias
)
SELECT
'{{ properties }}',
'{{ billingAccountName }}',
'{{ billingProfileName }}',
'{{ invoiceSectionName }}',
'{{ studentAlias }}'
RETURNING
id,
name,
properties,
systemData,
type
;

DELETE examples

Delete the specified student based on the student alias.

DELETE FROM azure_extras.education.students
WHERE billingAccountName = '{{ billingAccountName }}' --required
AND billingProfileName = '{{ billingProfileName }}' --required
AND invoiceSectionName = '{{ invoiceSectionName }}' --required
AND studentAlias = '{{ studentAlias }}' --required
;