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:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
budgetobjectStudent Budget. Required.
effectiveDatestring (date-time)Date student was added to the lab.
emailstringStudent Email. Required.
expirationDatestring (date-time)Date this student is set to expire from the lab. Required.
firstNamestringFirst Name. Required.
lastNamestringLast Name. Required.
rolestringStudent Role. Required. Known values are: "Student" and "Admin". (Student, Admin)
statusstringStudent Lab Status. Known values are: "Active", "Disabled", "Expired", "Pending", and "Deleted". (Active, Disabled, Expired, Pending, Deleted)
subscriptionAliasstringSubscription alias.
subscriptionIdstringSubscription Id.
subscriptionInviteLastSentDatestring (date-time)subscription invite last sent date.
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
getselectbilling_account_name, billing_profile_name, invoice_section_name, student_aliasGet the details for a specific student in the specified lab by student alias.
listselectbilling_account_name, billing_profile_name, invoice_section_nameincludeDeletedGet a list of details about students that are associated with the specified lab.
create_or_updateinsertbilling_account_name, billing_profile_name, invoice_section_name, student_aliasCreate 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.
create_or_updatereplacebilling_account_name, billing_profile_name, invoice_section_name, student_aliasCreate 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.
deletedeletebilling_account_name, billing_profile_name, invoice_section_name, student_aliasDelete 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
billing_account_namestringThe name of the billing account. Required.
billing_profile_namestringThe name of the billing profile. Required.
invoice_section_namestringThe name of the invoice section. Required.
student_aliasstringThe student alias. Required.
includeDeletedbooleanMay be used to show deleted items. Default value is None.

SELECT examples

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

SELECT
id,
name,
budget,
effectiveDate,
email,
expirationDate,
firstName,
lastName,
role,
status,
subscriptionAlias,
subscriptionId,
subscriptionInviteLastSentDate,
systemData,
type
FROM azure_extras.education.students
WHERE billing_account_name = '{{ billing_account_name }}' -- required
AND billing_profile_name = '{{ billing_profile_name }}' -- required
AND invoice_section_name = '{{ invoice_section_name }}' -- required
AND student_alias = '{{ student_alias }}' -- 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 (
properties,
billing_account_name,
billing_profile_name,
invoice_section_name,
student_alias
)
SELECT
'{{ properties }}',
'{{ billing_account_name }}',
'{{ billing_profile_name }}',
'{{ invoice_section_name }}',
'{{ student_alias }}'
RETURNING
id,
name,
properties,
systemData,
type
;

REPLACE 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.

REPLACE azure_extras.education.students
SET
properties = '{{ properties }}'
WHERE
billing_account_name = '{{ billing_account_name }}' --required
AND billing_profile_name = '{{ billing_profile_name }}' --required
AND invoice_section_name = '{{ invoice_section_name }}' --required
AND student_alias = '{{ student_alias }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Delete the specified student based on the student alias.

DELETE FROM azure_extras.education.students
WHERE billing_account_name = '{{ billing_account_name }}' --required
AND billing_profile_name = '{{ billing_profile_name }}' --required
AND invoice_section_name = '{{ invoice_section_name }}' --required
AND student_alias = '{{ student_alias }}' --required
;