Skip to main content

students

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

Overview

Namestudents
TypeResource
Idazure_extras.education.students

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
nametextThe name of the resource
billingAccountNametextfield from the properties object
billingProfileNametextfield from the properties object
budgettextfield from the properties object
effective_datetextfield from the properties object
emailtextfield from the properties object
expiration_datetextfield from the properties object
first_nametextfield from the properties object
invoiceSectionNametextfield from the properties object
last_nametextfield from the properties object
roletextfield from the properties object
statustextfield from the properties object
studentAliastextfield from the properties object
subscription_aliastextfield from the properties object
subscription_idtextfield from the properties object
subscription_invite_last_sent_datetextfield from the properties object
system_datatextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

NameAccessible byRequired ParamsDescription
getSELECTbillingAccountName, billingProfileName, invoiceSectionName, studentAliasGet the details for a specific student in the specified lab by student alias
listSELECTbillingAccountName, billingProfileName, invoiceSectionNameGet 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.

SELECT examples

Get a list of details about students that are associated with the specified lab.

SELECT
id,
name,
billingAccountName,
billingProfileName,
budget,
effective_date,
email,
expiration_date,
first_name,
invoiceSectionName,
last_name,
role,
status,
studentAlias,
subscription_alias,
subscription_id,
subscription_invite_last_sent_date,
system_data,
type
FROM azure_extras.education.vw_students
WHERE billingAccountName = '{{ billingAccountName }}'
AND billingProfileName = '{{ billingProfileName }}'
AND invoiceSectionName = '{{ invoiceSectionName }}';

INSERT example

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

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

DELETE example

Deletes the specified students resource.

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